\CMS_Content_Manager_Editoral

Editoral Content manager

Summary

Methods
Properties
Constants
apply()
transitions()
getStates()
addHistory()
createContentFilter()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$STATE_MACHINE
N/A

Properties

$STATE_MACHINE

$STATE_MACHINE : 

State machine of the manager

Type

Methods

apply()

apply(  $content, String  $action, Boolean  $save = false) : \CMS_Content

Apply action on content

Each content must follow CRUD actions in life cycle. Here is default action list:

  • create
  • read
  • update
  • delete

Parameters

$content
String $action
Boolean $save

to save or not the content

Returns

\CMS_Content

transitions()

transitions(  $content) : array

Returns possible transitions for given content

Returns possible transitions respect to currecnt state of given content.

Parameters

$content

Returns

array —

array of transitions

getStates()

getStates() 

State machine of the manager

addHistory()

addHistory(string  $signal,   $event) 

Parameters

string $signal
$event

createContentFilter()

createContentFilter(  $request) 

{@inheritdoc}

Parameters

$request