UCMType

Implements \Joomla\CMS\UCM\UCM

UCM Class for handling content types

property-read
since

3.1

Methods

__construct

Class constructor

__construct(string $alias = null, \JDatabaseDriver $database = null, \Joomla\CMS\Application\BaseApplication $application = null) 
since

3.1

Arguments

$alias

stringThe alias for the item

$database

\JDatabaseDriverThe database object

$application

\Joomla\CMS\Application\BaseApplicationThe application object

__get

Magic method to get the name of the field mapped to a ucm field (core_something).

__get(string $ucmField) : string
since

3.2

Arguments

$ucmField

stringThe name of the field in JTableCorecontent

Response

stringThe name mapped to the $ucmField for a given content type

fieldmapExpand

Method to expand the field mapping

fieldmapExpand(boolean $assoc = false) : mixed
since

3.2

Arguments

$assoc

booleanTrue to return an associative array.

Response

mixedArray or object with field mappings. Defaults to object.

getType

Get the Content Type

getType(integer $pk = null) : object
since

3.1

Arguments

$pk

integerThe primary key of the alias type

Response

objectThe UCM Type data

getTypeByAlias

Get the Content Type from the alias

getTypeByAlias(string $typeAlias = null) : object
since

3.2

Arguments

$typeAlias

stringThe alias for the type

Response

objectThe UCM Type data

getTypeByTable

Get the Content Type from the table class name

getTypeByTable(string $tableName) : mixed
since

3.2

Arguments

$tableName

stringThe table for the type

Response

mixedThe UCM Type data if found, false if no match is found

getTypeId

Retrieves the UCM type ID

getTypeId(string $alias = null) : mixed
since

3.1

Arguments

$alias

stringThe string of the type alias

Response

mixedThe ID of the requested type or false if type is not found

Properties

type

The UCM Type

since

3.1

Type(s)

\Joomla\CMS\UCM\UCMType

db

The Database object

since

3.1

Type(s)

\JDatabaseDriver

alias

The alias for the content type

since

3.1

Type(s)

string

core_content_id

Type(s)

string

core_type_alias

Type(s)

string

core_title

Type(s)

string

core_alias

Type(s)

string

core_body

Type(s)

string

core_state

Type(s)

string

core_checked_out_time

Type(s)

string

core_checked_out_user_id

Type(s)

string

core_access

Type(s)

string

core_params

Type(s)

string

core_metadata

Type(s)

string

core_created_user_id

Type(s)

string

core_created_by_alias

Type(s)

string

core_created_time

Type(s)

string

core_modified_user_id

Type(s)

string

core_modified_time

Type(s)

string

core_language

Type(s)

string

core_publish_up

Type(s)

string

core_publish_down

Type(s)

string

core_content_item_id

Type(s)

string

asset_id

Type(s)

string

core_images

Type(s)

string

core_urls

Type(s)

string

core_hits

Type(s)

string

core_version

Type(s)

string

core_ordering

Type(s)

string

core_metakey

Type(s)

string

core_metadesc

Type(s)

string

core_catid

Type(s)

string

core_xreference

Type(s)

string

core_typeid

Type(s)

string