\Ceo\Core\MetaPropertiesMetaPropertyInterface

Describes standard meta property interface

Summary

Methods
Constants
getType()
validate()
sanitize()
beforeSave()
afterSave()
toArray()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getType()

getType() : string

React type

Returns

string —

'TextMetaProperty'

validate()

validate(\Ceo\Core\Models\MetaProperty  $prop) : boolean

Validate the property value

Parameters

\Ceo\Core\Models\MetaProperty $prop

property

Returns

boolean

sanitize()

sanitize(mixed  $value) : mixed

Sanitize the property value

Parameters

mixed $value

Returns

mixed

beforeSave()

beforeSave(\Ceo\Core\Models\MetaProperty  $prop) : object

Called by parent model's beforeSave method

Parameters

\Ceo\Core\Models\MetaProperty $prop

Returns

object —

Self

afterSave()

afterSave(\Ceo\Core\Models\MetaProperty  $prop) : object

Called by parent model's afterSave method

Parameters

\Ceo\Core\Models\MetaProperty $prop

Returns

object —

Self

toArray()

toArray(\Ceo\Core\Models\MetaProperty  $prop, Array  $return) : Array

Called by parent model's toArray. Should return the modified array

Parameters

\Ceo\Core\Models\MetaProperty $prop

The property

Array $return

The pre-processed array to return

Returns

Array —

Array with modifications