\Ceo\Core\ModelsSetting

Base setting model. To keep the table length from growing arbitrarily long settings are store as base64 encoded json objects.

Items with a protected value of '1' are not editable and must be managed directly in the database. As such, you should probably use that flag sparingly. Srsly.

Summary

Methods
Properties
Constants
getResultsetClass()
hasProperty()
setRelated()
initialize()
beforeUpdate()
getSource()
find()
findFirst()
$id
$uuid
$label
$value
$created_at
$modified_at
$protected
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

$uuid

$uuid : string

UUID

Type

string

$label

$label : string

Label

Type

string

$value

$value : string

Value

Type

string

$created_at

$created_at : \Ceo\Core\Models\datetime

Created time

Type

\Ceo\Core\Models\datetime

$modified_at

$modified_at : \Ceo\Core\Models\datetime

Modified time

Type

\Ceo\Core\Models\datetime

$protected

$protected : boolean

Protected value

Type

boolean

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

Initialize method for model.

beforeUpdate()

beforeUpdate() 

getSource()

getSource() : string

Returns table name mapped in the model.

Returns

string

find()

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

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

Parameters

mixed $parameters

Returns

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

findFirst()

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

Allows to query the first record that match the specified conditions

Parameters

mixed $parameters

Returns

\Ceo\Core\Models\User

toArrayRelated()

toArrayRelated(  $ops,   $array) 

Parameters

$ops
$array