Properties

$id

$id : integer

Workflow ID

Type

integer

$uuid

$uuid : string

Workflow UUID

Type

string

$slug

$slug : string

Workflow slug

Type

string

$name

$name : string

Workflow name

Type

string

$status

$status : boolean

Workflow status

Type

boolean

$is_web

$is_web : boolean

Workflow is for web

Type

boolean

$is_print

$is_print : boolean

Workflow is for print

Type

boolean

$is_content

$is_content : boolean

Workflow is for content items

Type

boolean

$is_assignment

$is_assignment : boolean

Workflow is for assignment items

Type

boolean

$priority

$priority : \Ceo\Core\Models\signed

Workflow priority

Type

\Ceo\Core\Models\signed — integer

$srn_name

$srn_name : string

SRN Name

Type

string

Methods

getSrn()

getSrn() : string

Return model's SRN. Model should implement a 'srn_name' protected value.

Otherwise, this will pull from the 'getSource' method

Returns

string —

SRN

findFirstBySrn()

findFirstBySrn(string  $srn) : object

Find model by SRN

Parameters

string $srn

complete SRN

Returns

object —

Model object

getResultsetClass()

getResultsetClass() 

hasProperty()

hasProperty(string  $str) : boolean

Determine if the model has a public property.

Useful in determining valid sorting options on the front end.

Parameters

string $str

Property

Returns

boolean

setRelated()

setRelated(string  $relation, mixed  $value = array()) : self

Phalcon has this bug where if you enumerate a relation then try to set it via the magic setter, it won't save.

I think it has something to do with implicit transactions, but I'm not entirely sure...

Parameters

string $relation
mixed $value

Returns

self

initialize()

initialize() 

Initializer

beforeValidation()

beforeValidation() 

validation()

validation() 

getSource()

getSource() : string

Returns table name mapped in the model.

Returns

string

find()

find(mixed  $parameters = null) : array<mixed,\Ceo\Core\Models\Assignment>

Allows to query a set of records that match the specified conditions

Parameters

mixed $parameters

Returns

array<mixed,\Ceo\Core\Models\Assignment>

findFirst()

findFirst(mixed  $parameters = null) : \Ceo\Core\Models\Assignment

Allows to query the first record that match the specified conditions

Parameters

mixed $parameters

Returns

\Ceo\Core\Models\Assignment

toArray()

toArray(array  $ops = false) : array

Array override

Parameters

array $ops

Options for generation

Returns

array

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array