UCMType
Implements UCMUCM Class for handling content types
property-read string | |
---|---|
since |
3.1 |
package |
Joomla CMS |
Methods
__construct
Class constructor
__construct(string alias = null, \Joomla\Database\DatabaseDriver database = null, \Joomla\Application\AbstractApplication application = null) : mixed
since |
3.1 |
---|
Arguments
- alias
string
The alias for the item- database
\Joomla\Database\DatabaseDriver
The database object- application
\Joomla\Application\AbstractApplication
The 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
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(bool assoc = false) : mixed
since |
3.2 |
---|
Arguments
- assoc
bool
True to return an associative array.
Response
mixed
Array or object with field mappings. Defaults to object.
getType
Get the Content Type
getType(int pk = null) : object
since |
3.1 |
---|
Arguments
- pk
int
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
db
The Database object
since |
3.1 |
---|
Type(s)
\Joomla\Database\DatabaseDriver