UCMType

Implements UCM

UCM Class for handling content types

property-read string
since

3.1

package

Joomla CMS

Methods

__construct

Class constructor

__construct( alias = null, \Joomla\Database\DatabaseDriver database = null, \Joomla\Application\AbstractApplication application = null) : 
since

3.1

Arguments

alias

stringThe alias for the item

database

DatabaseDriverThe database object

application

AbstractApplicationThe application object

Response

mixed

__get

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

__get( ucmField) : 
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( assoc = false) : 
since

3.2

Arguments

assoc

boolTrue to return an associative array.

Response

mixedArray or object with field mappings. Defaults to object.

getType

Get the Content Type

getType( pk = null) : 
since

3.1

Arguments

pk

intThe primary key of the alias type

Response

objectThe UCM Type data

getTypeByAlias

Get the Content Type from the alias

getTypeByAlias( typeAlias = null) : 
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( tableName) : 
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( alias = null) : 
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

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_typeid

Type(s)

string

type

The UCM Type

since

3.1

Type(s)

UCMType

db

The Database object

since

3.1

Type(s)

DatabaseDriver

alias

The alias for the content type

since

3.1

Type(s)

string