class Noop extends Module implements MetaPropertyInterface

Noop is the default meta property. It's pretty much just used as a place holder and a test interface. You probably shouldn't use this.

Methods

string
getType()

React type

boolean
validate(MetaProperty $prop)

Validate the property value

mixed
sanitize(mixed $value)

Clean the submitted input

object
beforeSave(MetaProperty $prop)

Called by parent model's beforeSave method

object
afterSave(MetaProperty $prop)

Called by parent model's afterSave method

Array
toArray(MetaProperty $prop, array $return)

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

Details

at line line 17
string getType()

React type

Return Value

string 'TextMetaProperty'

at line line 22
boolean validate(MetaProperty $prop)

Validate the property value

Parameters

MetaProperty $prop property

Return Value

boolean

at line line 32
mixed sanitize(mixed $value)

Clean the submitted input

Parameters

mixed $value

Return Value

mixed

at line line 38
object beforeSave(MetaProperty $prop)

Called by parent model's beforeSave method

Parameters

MetaProperty $prop &$prop property

Return Value

object Self

at line line 44
object afterSave(MetaProperty $prop)

Called by parent model's afterSave method

Parameters

MetaProperty $prop &$prop property

Return Value

object Self

at line line 49
Array toArray(MetaProperty $prop, array $return)

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

Parameters

MetaProperty $prop The property
array $return The pre-processed array to return

Return Value

Array Array with modifications