Properties

$id

$id : integer

internal id

Type

integer

$uuid

$uuid : string

CEO UUID

Type

string

$slug

$slug : string

Base slug

Type

string

$title

$title : string

Title

Type

string

$channel_id

$channel_id : integer

Parent channel ID

Type

integer

$field_data

$field_data : string

Field data, stored as JSON

Type

string

$created_at

$created_at : \Ceo\Models\datetime

Created timestamp

Type

\Ceo\Models\datetime

$modified_at

$modified_at : \Ceo\Models\datetime

Last modified timestamp

Type

\Ceo\Models\datetime

$sort_order

$sort_order : array

Sort order

Type

array

$ceo_id

$ceo_id : integer

Internal CEO ID

Type

integer

$_fieldStack

$_fieldStack : 

Type

Methods

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

beforeSave()

beforeSave() 

afterSave()

afterSave() 

afterFetch()

afterFetch() 

getMetadata()

getMetadata(  $k) 

Parameters

$k

toCompat()

toCompat(  $useKlass = null) : object

Returns a base CEO model as a Gryphon compatible one.

{% set article = fetch('article').order('published_at desc').find() %}
{{ article[0].toCompat().url }}

Parameters

$useKlass

Returns

object

initialize()

initialize() 

getSource()

getSource() 

beforeCreate()

beforeCreate() 

getFields()

getFields() : array

Fetch and transform field data.

Returns

array —

of Entryfield Objects

find()

find(mixed  $parameters = null) : \Ceo\Models\ResultSet

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

Parameters

mixed $parameters

Returns

\Ceo\Models\ResultSet

findFirst()

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

Allows to query the first record that match the specified conditions

Parameters

mixed $parameters

Returns

\Ceo\Models\ResultSet

getCanonicalUrl()

getCanonicalUrl() 

getFriendlyUrl()

getFriendlyUrl() 

toArray()

toArray(  $props = null,   $asChild = false) 

Parameters

$props
$asChild

orderedFields()

orderedFields() 

__call()

__call(  $key,   $args = array()) 

Parameters

$key
$args

__toString()

__toString() : string

If the entry is called as a string, simply return the UUID

Returns

string

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array

handleField()

handleField(  $field) 

Parameters

$field