Arikaim CMS

ContentType
in package
implements ContentTypeInterface

AbstractYes

Content type abstract class

Table of Contents

Interfaces

ContentTypeInterface
Content type interface

Properties

$actionHandlers  : array<string|int, mixed>
Set action handlers
$category  : string|null
Category
$fields  : array<string|int, mixed>
Content fields
$name  : string
Content type name
$searchableFields  : array<string|int, mixed>|null
Searchable field names
$title  : string|null
Content type title
$titleFields  : array<string|int, mixed>
Field names used in content lists.

Methods

__construct()  : mixed
Constructor
getActionHandlers()  : array<string|int, mixed>
Get action handlers list
getActions()  : array<string|int, mixed>
Resolve action handlers (create array with actions object)
getCategory()  : string|null
Get content type category
getClass()  : string
Get class name
getField()  : FieldInterface|null
Get field
getFieldNames()  : array<string|int, mixed>
Get field names
getFields()  : array<string|int, mixed>
Get content type fields
getName()  : string
Get content type name
getSearchableFieldNames()  : array<string|int, mixed>
Get searchable field names
getTitle()  : string|null
Get content type title
getTitleFields()  : array<string|int, mixed>
Get title fields
setActionHandlers()  : void
Set action handlers
setSearchableFields()  : void
Set searchable field names
setTitle()  : void
Set title
setTitleFields()  : void
Set title fields
addActionHandler()  : void
Add action class
addField()  : void
Add field
define()  : void
Definie content type
setCategory()  : void
Set category
setName()  : void
Set name

Properties

$actionHandlers

Set action handlers

protected array<string|int, mixed> $actionHandlers = []

$category

Category

protected string|null $category = null

$fields

Content fields

protected array<string|int, mixed> $fields = []

$searchableFields

Searchable field names

protected array<string|int, mixed>|null $searchableFields = null

$title

Content type title

protected string|null $title = null

$titleFields

Field names used in content lists.

protected array<string|int, mixed> $titleFields = ['title']

Methods

__construct()

Constructor

public __construct() : mixed

getActionHandlers()

Get action handlers list

public getActionHandlers() : array<string|int, mixed>
Return values
array<string|int, mixed>

getActions()

Resolve action handlers (create array with actions object)

public getActions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCategory()

Get content type category

public getCategory() : string|null
Return values
string|null

getClass()

Get class name

public getClass() : string
Return values
string

getFieldNames()

Get field names

public getFieldNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFields()

Get content type fields

public getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getName()

Get content type name

public getName() : string
Return values
string

getSearchableFieldNames()

Get searchable field names

public getSearchableFieldNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTitle()

Get content type title

public getTitle() : string|null
Return values
string|null

getTitleFields()

Get title fields

public getTitleFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

setActionHandlers()

Set action handlers

public setActionHandlers(array<string|int, mixed> $handlers) : void
Parameters
$handlers : array<string|int, mixed>

setSearchableFields()

Set searchable field names

public setSearchableFields(array<string|int, mixed> $fieldNames) : void
Parameters
$fieldNames : array<string|int, mixed>

setTitle()

Set title

public setTitle(string $title) : void
Parameters
$title : string

setTitleFields()

Set title fields

public setTitleFields(array<string|int, mixed> $fieldNames) : void
Parameters
$fieldNames : array<string|int, mixed>

addActionHandler()

Add action class

protected addActionHandler(string $class) : void
Parameters
$class : string

addField()

Add field

protected addField(string $name, string $type[, string|null $title = null ]) : void
Parameters
$name : string
$type : string
$title : string|null = null

define()

Definie content type

protected abstract define() : void

setCategory()

Set category

protected setCategory(string|null $category) : void
Parameters
$category : string|null

setName()

Set name

protected setName(string $name) : void
Parameters
$name : string

        
On this page

Search results