Properties

$id

$id : integer

internal id

Type

integer

$uuid

$uuid : string

CEO UUID

Type

string

$attachment_uuid

$attachment_uuid : string

CEO attachment UUID

Type

string

$base_name

$base_name : string

Base base_name

Type

string

$extension

$extension : string

extension

Type

string

$preview_extension

$preview_extension : string

The preview file's extension

Type

string

$title

$title : string

title

Type

string

$content

$content : string

content

Type

string

$source

$source : string

source

Type

string

$click_through

$click_through : string

click through url

Type

string

$type

$type : string

type

Type

string

$height

$height : integer

height

Type

integer

$width

$width : integer

width

Type

integer

$status

$status : boolean

Publication status

Type

boolean

$weight

$weight : integer

Weight

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

$svg_preview

$svg_preview : string

Generated SGV preview

Type

string

$metadata

$metadata : object

Metadata object

Type

object

$ceo_id

$ceo_id : integer

Internal CEO ID

Type

integer

$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

$seo_title

$seo_title : string

SEO title

Type

string

$seo_description

$seo_description : string

SEO description

Type

string

$seo_image

$seo_image : string

SEO image url

Type

string

$transcoded

$transcoded : integer

Transcoded status

Type

integer

$adapter

$adapter : 

Type

$parentGallery

$parentGallery : 

Type

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

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

getWidthFromHeight()

getWidthFromHeight(  $height) 

Parameters

$height

getHeightFromWidth()

getHeightFromWidth(  $width) 

Parameters

$width

getCanonicalUrl()

getCanonicalUrl() 

getFriendlyUrl()

getFriendlyUrl() 

getCustomUrl()

getCustomUrl(  $opts = array()) 

Parameters

$opts

getOriginalUrl()

getOriginalUrl() 

getPreviewSvg()

getPreviewSvg() 

getPreviewName()

getPreviewName() 

getOriginalName()

getOriginalName() 

getAdapter()

getAdapter() 

getPreviewStyle()

getPreviewStyle(  $args = array()) 

Parameters

$args

isGalleryMember()

isGalleryMember() 

getParentGallery()

getParentGallery() 

getAltData()

getAltData() 

buildUrl()

buildUrl(  $path,   $opts = array()) 

Parameters

$path
$opts

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array

getMediaBucket()

getMediaBucket()