Back to Joomla project (class list)

Class UCMType - list of methods

UCM Class for handling content types

Extends

Package: Joomla\CMS\UCM
Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/UCM/UCMType.php
Project: Joomla

Method Summary

public
(mixed $alias = null, \Joomla\Database\DatabaseDriver $database = null, \Joomla\Application\AbstractApplication $application = null)

Class constructor
Parameters
  • string $alias The alias for the item
  • \Joomla\Database\DatabaseDriver $database The database object
  • \Joomla\Application\AbstractApplication $application The application object
Since
  • 3.1
Show source code of this method: __construct Source Code

public object
(mixed $pk = null)

Get the Content Type
Parameters
  • int $pk The primary key of the alias type
Returns
  • object The UCM Type data
Since
  • 3.1
Show source code of this method: getType Source Code

public object
(mixed $typeAlias = null)

Get the Content Type from the alias
Parameters
  • string $typeAlias The alias for the type
Returns
  • object The UCM Type data
Since
  • 3.2
Show source code of this method: getTypeByAlias Source Code

public mixed
(mixed $tableName)

Get the Content Type from the table class name
Parameters
  • string $tableName The table for the type
Returns
  • mixed The UCM Type data if found, false if no match is found
Since
  • 3.2
Show source code of this method: getTypeByTable Source Code

public mixed
(mixed $alias = null)

Retrieves the UCM type ID
Parameters
  • string $alias The string of the type alias
Returns
  • mixed The ID of the requested type or false if type is not found
Since
  • 3.1
Show source code of this method: getTypeId Source Code

public mixed
(mixed $assoc = false)

Method to expand the field mapping
Parameters
  • bool $assoc True to return an associative array.
Returns
  • mixed Array or object with field mappings. Defaults to object.
Since
  • 3.2
Show source code of this method: fieldmapExpand Source Code

public string
(mixed $ucmField)

Magic method to get the name of the field mapped to a ucm field (core_something).
Parameters
  • string $ucmField The name of the field in JTableCorecontent
Returns
  • string The name mapped to the $ucmField for a given content type
Since
  • 3.2
Show source code of this method: __get Source Code

Properties Summary

public \Joomla\CMS\UCM\UCMType
$type
The UCM Type
Since
  • 3.1
protected \Joomla\Database\DatabaseDriver
$db
The Database object
Since
  • 3.1
protected string
$alias
The alias for the content type
Since
  • 3.1

Tags Summary

ready-only string
$core_content_id
ready-only string
$core_type_alias
ready-only string
$core_title
ready-only string
$core_alias
ready-only string
$core_body
ready-only string
$core_state
ready-only string
$core_checked_out_time
ready-only string
$core_checked_out_user_id
ready-only string
$core_access
ready-only string
$core_params
ready-only string
$core_featured
ready-only string
$core_metadata
ready-only string
$core_created_user_id
ready-only string
$core_created_by_alias
ready-only string
$core_created_time
ready-only string
$core_modified_user_id
ready-only string
$core_modified_time
ready-only string
$core_language
ready-only string
$core_publish_up
ready-only string
$core_publish_down
ready-only string
$core_content_item_id
ready-only string
$asset_id
ready-only string
$core_images
ready-only string
$core_urls
ready-only string
$core_hits
ready-only string
$core_version
ready-only string
$core_ordering
ready-only string
$core_metakey
ready-only string
$core_metadesc
ready-only string
$core_catid
ready-only string
$core_typeid
Since
3.1