Properties

$id

$id : integer

ID

Type

integer

$uuid

$uuid : string

UUID

Type

string

$type

$type : string

User-definable type

Type

string

$version

$version : integer

Version number (not ID)

Type

integer

$from_version

$from_version : integer

Version number export was generated from

Type

integer

$is_dirty

$is_dirty : boolean

Dirty state, 1 = dirty (un-merged), 0 = clean (merged)

Type

boolean

$content_id

$content_id : integer

Parent content ID

Type

integer

$content

$content : string

Content

Type

string

$created_at

$created_at : string

Created timestamp

Type

string

$modified_at

$modified_at : string

Modified timestamp

Type

string

$workflow_id

$workflow_id : integer

Workflow ID

Type

integer

$print_locked

$print_locked : boolean

Print locked

Type

boolean

$print_locked_user

$print_locked_user : string

Print locked user

Type

string

$issue_id

$issue_id : integer

Print issue

Type

integer

$assignee_id

$assignee_id : integer

Print assignee

Type

integer

$workflow_section_id

$workflow_section_id : integer

Print workflow section

Type

integer

$user_id

$user_id : integer

Editing user

Type

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

getSource()

getSource() : string

Returns table name mapped in the model.

Returns

string

find()

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

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

Parameters

mixed $parameters

Returns

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

findFirst()

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

Allows to query the first record that match the specified conditions

Parameters

mixed $parameters

Returns

\Ceo\Core\Models\Content

toArray()

toArray(array  $ops = false) : array

Array override

Parameters

array $ops

Options for generation

Returns

array

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array