UCMType

Implements UCM

UCM Class for handling content types

property-read string
since

3.1

package

Application

Methods

__construct

Class constructor

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

3.1

Arguments

alias

stringThe alias for the item

database

\Joomla\Database\DatabaseDriverThe database object

application

\Joomla\Application\AbstractApplicationThe application object

Response

mixed

__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(bool assoc = false) : mixed
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(int pk = null) : object
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(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)

UCMType

db

The Database object

since

3.1

Type(s)

\Joomla\Database\DatabaseDriver

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_typeid

Type(s)

string