UCMType
Implements \Joomla\CMS\UCM\UCMUCM 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
string
The alias for the item- $database
\JDatabaseDriver
The database object- $application
\Joomla\CMS\Application\BaseApplication
The 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
string
The name of the field in JTableCorecontent
Response
string
The 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
boolean
True to return an associative array.
Response
mixed
Array or object with field mappings. Defaults to object.
getType
Get the Content Type
getType(integer $pk = null) : object
since |
3.1 |
---|
Arguments
- $pk
integer
The primary key of the alias type
Response
object
The UCM Type data
getTypeByAlias
Get the Content Type from the alias
getTypeByAlias(string $typeAlias = null) : object
since |
3.2 |
---|
Arguments
- $typeAlias
string
The alias for the type
Response
object
The UCM Type data
getTypeByTable
Get the Content Type from the table class name
getTypeByTable(string $tableName) : mixed
since |
3.2 |
---|
Arguments
- $tableName
string
The table for the type
Response
mixed
The 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
string
The string of the type alias
Response
mixed
The ID of the requested type or false if type is not found
Properties
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_featured
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