UCMContent
Extends UCMBaseBase class for implementing UCM
since |
3.1 |
---|---|
package |
Joomla CMS |
Methods
__construct
Instantiate UCMContent.
__construct(\Joomla\CMS\Table\TableInterface table = null, alias = null, \Joomla\CMS\UCM\UCMType type = null) :
since |
3.1 |
---|
Arguments
- table
TableInterface
The table object- alias
string
The type alias- type
UCMType
The type object
Response
mixed
delete
Delete content from the Core Content table
delete( pk, \Joomla\CMS\UCM\UCMType type = null) :
since |
3.1 |
---|
Arguments
- pk
mixed
Array or comma-separated string of ids to delete- type
UCMType
The content type object
Response
bool
True if success
getPrimaryKey
Get the value of the primary key from #__ucm_base
getPrimaryKey( typeId, contentItemId) :
since |
3.1 |
---|
Arguments
- typeId
int
The ID for the type- contentItemId
int
Value of the primary key in the legacy or secondary table
Response
int
The integer of the primary key
getType
Get the UCM Content type.
getType() : \Joomla\CMS\UCM\UCMType
mapBase
Method to map the base ucm fields
mapBase(mixed||string|int original, \Joomla\CMS\UCM\UCMType type = null) : mixed||string|int
since |
3.1 |
---|
Arguments
- original
array<string|int, mixed>
Data array- type
UCMType
UCM Content Type
Response
array<string|int, mixed>
Data array of UCM mappings
mapData
Map the original content to the Core Content fields
mapData(mixed||string|int original, \Joomla\CMS\UCM\UCMType type = null) : array||string|int
since |
3.1 |
---|
Arguments
- original
array<string|int, mixed>
The original data array- type
UCMType
Type object for this data
Response
array<string|int, array<string|int, mixed>>
$ucmData The mapped UCM data
save
Method to save the data
save(mixed||string|int original = null, \Joomla\CMS\UCM\UCMType type = null) :
since |
3.1 |
---|
Arguments
- original
array<string|int, mixed>
The original data to be saved- type
UCMType
The UCM Type object
Response
bool
true
store
Store data to the appropriate table
store(mixed||string|int data, \Joomla\CMS\Table\TableInterface table = null, primaryKey = null) :
since |
3.1 |
---|
Arguments
- data
array<string|int, mixed>
Data to be stored- table
TableInterface
Table Object- primaryKey
bool
Flag that is true for data that are using #__ucm_content as their primary table
Response
bool
true on success
Properties
alias
The alias for the content table
since |
3.1 |
---|
Type(s)
string
ucmData
The UCM data array
since |
3.1 |
---|
Type(s)
array<string|int, array<string|int, mixed>>