UCMBase

Implements \Joomla\CMS\UCM\UCM

Base class for implementing UCM

since

3.1

Methods

__construct

Instantiate the UCMBase.

__construct(string $alias = null, \Joomla\CMS\UCM\UCMType $type = null) 
since

3.1

Arguments

$alias

stringThe alias string

$type

\Joomla\CMS\UCM\UCMTypeThe type object

getType

Get the UCM Content type.

getType() : \Joomla\CMS\UCM\UCMType
since

3.1

Response

\Joomla\CMS\UCM\UCMTypeThe UCM content type

mapBase

Method to map the base ucm fields

mapBase(array $original, \Joomla\CMS\UCM\UCMType $type = null) : array
since

3.1

Arguments

$original

arrayData array

$type

\Joomla\CMS\UCM\UCMTypeUCM Content Type

Response

arrayData array of UCM mappings

store

Store data to the appropriate table

store(array $data, \Joomla\CMS\Table\TableInterface $table = null, string $primaryKey = null) : boolean
since

3.1

throws

\Exception

Arguments

$data

arrayData to be stored

$table

\Joomla\CMS\Table\TableInterfaceTable Object

$primaryKey

stringThe primary key name

Response

booleanTrue on success

Properties

type

The UCM type object

since

3.1

Type(s)

\Joomla\CMS\UCM\UCMType

alias

The alias for the content table

since

3.1

Type(s)

string