\Ceo\Core\ModelsMetaProperty

Meta Property Model

Summary

Methods
Properties
Constants
getResultsetClass()
hasProperty()
setRelated()
initialize()
validation()
beforeSave()
afterSave()
afterFetch()
getSource()
find()
findFirst()
toArray()
$id
$content_id
$container_id
$version
$value
$field
$type
No constants found
toArrayRelated()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : integer

ID

Type

integer

$content_id

$content_id : integer

Parent content ID

Type

integer

$container_id

$container_id : integer

Parent content ID

Type

integer

$version

$version : integer

Parent version number

Type

integer

$value

$value : string

Meta property value

Type

string

$field

$field : string

Meta property field

Type

string

$type

$type : string

Meta property type, maps to React component

Type

string

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

initialize()

initialize() 

initializer

validation()

validation() 

beforeSave()

beforeSave() 

afterSave()

afterSave() 

afterFetch()

afterFetch() 

getSource()

getSource() : string

Returns table name mapped in the model.

Returns

string

find()

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

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

Parameters

mixed $parameters

Returns

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

findFirst()

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

Allows to query the first record that match the specified conditions

Parameters

mixed $parameters

Returns

\Ceo\Core\Models\Urls

toArray()

toArray(  $columns = NULL) 

Parameters

$columns

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array