Properties

$id

$id : integer

internal id

Type

integer

$uuid

$uuid : string

CEO UUID

Type

string

$slug

$slug : string

Base slug

Type

string

$headline

$headline : string

Headline

Type

string

$subhead

$subhead : string

Subhed

Type

string

$abstract

$abstract : string

Abstract

Type

string

$content

$content : string

Parsed story content

Type

string

$infobox

$infobox : string

Infobox

Type

string

$short_token

$short_token : string

Short token

Type

string

$template

$template : string

Path to special template

Type

string

$status

$status : boolean

Publication status

Type

boolean

$media_id

$media_id : integer

Dominant Media

Type

integer

$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

$published_at

$published_at : \Ceo\Models\datetime

Published timestamp

Type

\Ceo\Models\datetime

$metadata

$metadata : object

Metadata object

Type

object

$normalized_tags

$normalized_tags : 

Normalized tags

Type

$ssts_id

$ssts_id : integer

SSTS id

Type

integer

$ssts_path

$ssts_path : string

SSTS path

Type

string

$ceo_id

$ceo_id : integer

Internal CEO ID

Type

integer

$seo_title

$seo_title : string

SEO title

Type

string

$seo_description

$seo_description : string

SEO description

Type

string

$seo_url

$seo_url : string

SEO image url

Type

string

Methods

getSearchTitle()

getSearchTitle() : string

Determine the search title for an item

Returns

string

getSearchType()

getSearchType() : string

Determine the model type

Returns

string

getSearchDate()

getSearchDate() : \Ceo\Traits\DateTime

Determine the display time

Returns

\Ceo\Traits\DateTime —

Carbon

getSearchPreview()

getSearchPreview() : string

Determine the preview text

Returns

string

getSearchUrl()

getSearchUrl() : string

Determine the canonical url

Returns

string

getSearchPreviewUrl()

getSearchPreviewUrl() : mixed

Determine the preview image, if there is one FALSE otherwise

Returns

mixed —

STRING or BOOLEAN

getSeoTitle()

getSeoTitle() : string

Determine the SEO title for an item

Returns

string

getSeoDescription()

getSeoDescription() : string

Determine SEO description

Returns

string

getSeoImage()

getSeoImage() : string

Determine SEO image

Returns

string

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() 

wherePublished()

wherePublished() 

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

getIsPublished()

getIsPublished() 

getShortUrl()

getShortUrl() 

getCanonicalUrl()

getCanonicalUrl() 

getFriendlyUrl()

getFriendlyUrl() 

toArray()

toArray(  $props = null) 

Parameters

$props

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array