Свойство | Тип | Описание | |
---|---|---|---|
$callable | |||
$defaultParams | |||
$storeToDb | |||
$storedValue |
Метод | Описание | |
---|---|---|
__construct ( string $name = null, |
||
getDbValue ( ) | ||
getValue ( array $params = [], boolean $processCallbacks = true ) | Get attribute value | |
setCallable ( $callable ) | Set dynamic attribute function | |
setStoreToDb ( ) | ||
setValue ( null $value = null, boolean $fromDb = false ) | Set attribute value | |
toArray ( $fields = [], $params = [] ) |
Метод | Описание | |
---|---|---|
validate ( &$value ) | Perform validation against given value |
public __construct ( string $name = null, |
||
$name | string | |
$parent | ||
$callable | callable |
public setCallable ( $callable ) | ||
$callable |
protected validate ( &$value ) | ||
$value |