UCMBase

Implements UCM

Base class for implementing UCM

since

3.1

package

Joomla CMS

Methods

__construct

Instantiate the UCMBase.

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

3.1

Arguments

alias

stringThe alias string

type

UCMTypeThe type object

Response

mixed

getType

Get the UCM Content type.

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

3.1

Response

UCMTypeThe UCM content type

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

UCMTypeUCM Content Type

Response

array<string|int, mixed>Data array of UCM mappings

store

Store data to the appropriate table

store(mixed||string|int data, \Joomla\CMS\Table\TableInterface table = null,  primaryKey = null) : 
since

3.1

throws

Exception

Arguments

data

array<string|int, mixed>Data to be stored

table

TableInterfaceTable Object

primaryKey

stringThe primary key name

Response

boolTrue on success

Properties

type

The UCM type object

since

3.1

Type(s)

UCMType

alias

The alias for the content table

since

3.1

Type(s)

string