_init()
orm_notify()
type_bool_from_int()
type_bool_to_int()
type_decimal_after()
type_decimal_before()
type_decrypt()
type_encrypt()
type_float_after()
type_float_before()
type_integer()
type_json_decode()
type_json_encode()
type_serialize()
type_set_after()
type_set_before()
type_string()
type_time_decode()
type_time_encode()
type_unserialize()
typecast()
$events
$regex_methods
$type_mappings
$type_methods
$use_locale
Typing observer.
Runs on load or save, and ensures the correct data type of your ORM object properties.
_init()
orm_notify(\Orm\Model $instance, string $event)
type_bool_from_int(bool $var) : int
boolvalue
inttype_bool_to_int(bool $var) : int
boolvalue
inttype_decimal_after(mixed $var, array $settings, array $matches) : float
mixedvalue to typecast
\Orm\InvalidContentType |
|---|
floattype_decimal_before(mixed $var, $settings) : float
type_decrypt(string $var) : mixed
stringvalue
mixedtype_encrypt(mixed $var, array $settings) : string
mixedvalue
arrayany options to be passed
\Orm\InvalidContentType |
|---|
stringtype_float_after(mixed $var) : float
type_float_before(mixed $var, $settings) : float
type_integer(mixed $var, array $settings) : int
mixedvalue to typecast
arrayany options to be passed
\Orm\InvalidContentType |
|---|
inttype_json_decode(string $var, $settings) : mixed
stringvalue
mixedtype_json_encode(mixed $var, array $settings) : string
mixedvalue
arrayany options to be passed
\Orm\InvalidContentType |
|---|
stringtype_serialize(mixed $var, array $settings) : string
mixedvalue
arrayany options to be passed
\Orm\InvalidContentType |
|---|
stringtype_set_after(mixed $var) : array
mixedvalue
arraytype_set_before(mixed $var, array $settings) : string
mixedvalue
arrayany options to be passed
\Orm\InvalidContentType |
|---|
stringtype_string(mixed $var, array $settings) : string
mixedvalue to typecast
arrayany options to be passed
\Orm\InvalidContentType |
|---|
stringtype_time_decode(string $var, array $settings) : \Fuel\Core\Date
type_time_encode(\Fuel\Core\Date $var, array $settings) : int | string
arrayany options to be passed
\Orm\InvalidContentType |
|---|
intstring
type_unserialize(string $var) : mixed
stringvalue
mixedtypecast(string $column, string $value, string $settings, $event_type) : mixed
stringname of the column
stringvalue
stringcolumn settings from the model
\Orm\InvalidContentType |
|---|
mixed$events : array
$regex_methods : array
$type_mappings : array
$type_methods : array
$use_locale