class UCMContent extends UCMBase

Base class for implementing UCM

Properties

array $ucmData The UCM data array

Methods

__construct( TableInterface $table = null, string $alias = null, UCMType $type = null)

Instantiate UCMContent.

getType()

Get the UCM Content type.

from UCMBase
array
mapBase( array $original, UCMType $type = null)

Method to map the base ucm fields

from UCMBase
boolean
save( array $original = null, UCMType $type = null)

Method to save the data

boolean
delete( mixed $pk, UCMType $type = null)

Delete content from the Core Content table

array
mapData( array $original, UCMType $type = null)

Map the original content to the Core Content fields

integer
getPrimaryKey( string $typeId, integer $contentItemId)

Get the value of the primary key from #__ucm_base

Details

__construct( TableInterface $table = null, string $alias = null, UCMType $type = null)

Instantiate UCMContent.

Parameters

TableInterface $table The table object
string $alias The alias string
UCMType $type The type object

UCMType getType()

Get the UCM Content type.

Return Value

UCMType The UCM content type

array mapBase( array $original, UCMType $type = null)

Method to map the base ucm fields

Parameters

array $original Data array
UCMType $type UCM Content Type

Return Value

array Data array of UCM mappings

boolean save( array $original = null, UCMType $type = null)

Method to save the data

Parameters

array $original The original data to be saved
UCMType $type The UCM Type object

Return Value

boolean true

boolean delete( mixed $pk, UCMType $type = null)

Delete content from the Core Content table

Parameters

mixed $pk The string/array of id's to delete
UCMType $type The content type object

Return Value

boolean True if success

array mapData( array $original, UCMType $type = null)

Map the original content to the Core Content fields

Parameters

array $original The original data array
UCMType $type Type object for this data

Return Value

array $ucmData The mapped UCM data

integer getPrimaryKey( string $typeId, integer $contentItemId)

Get the value of the primary key from #__ucm_base

Parameters

string $typeId The ID for the type
integer $contentItemId Value of the primary key in the legacy or secondary table

Return Value

integer The integer of the primary key