Properties

$id

$id : integer

ID

Type

integer

$uuid

$uuid : string

Parent UUID

Type

string

$slug

$slug : string

Parent slug

Type

string

$title

$title : string

Parent title

Type

string

$title_url

$title_url : string

Parent title_url

Type

string

$version

$version : integer

This version

Type

integer

$abstract

$abstract : string

Parent abstract

Type

string

$content

$content : string

Parent content

Type

string

$created_at

$created_at : string

Parent created_at

Type

string

$modified_at

$modified_at : string

Parent modified_at

Type

string

$published_at

$published_at : string

Parent published_at

Type

string

$state

$state : integer

Parent state

Type

integer

$content_id

$content_id : integer

Parent content ID

Type

integer

$user_id

$user_id : integer

Editing user ID

Type

integer

$workflow_id

$workflow_id : integer

Parent workflow_id

Type

integer

$weight

$weight : integer

Parent weight.

DEPRECATED. Provided for Gryphon compatability

Type

integer

$dominant_attachment_id

$dominant_attachment_id : integer

Dominant attachment reference

Type

integer

$srn_name

$srn_name : string

SRN resource 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() : self

Initializer

Returns

self

getSource()

getSource() : string

Returns table name mapped in the model.

Returns

string

find()

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

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

Parameters

mixed $parameters

Returns

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

findFirst()

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

Allows to query the first record that match the specified conditions

Parameters

mixed $parameters

Returns

\Ceo\Core\Models\Versions

toArray()

toArray(  $ops = false) : array

Preform array translation

Parameters

$ops

Returns

array

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array