_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
bool
value
int
type_bool_to_int(bool $var) : int
bool
value
int
type_decimal_after(mixed $var, array $settings, array $matches) : float
mixed
value to typecast
\Orm\InvalidContentType |
---|
float
type_decimal_before(mixed $var, $settings) : float
type_decrypt(string $var) : mixed
string
value
mixed
type_encrypt(mixed $var, array $settings) : string
mixed
value
array
any options to be passed
\Orm\InvalidContentType |
---|
string
type_float_after(mixed $var) : float
type_float_before(mixed $var, $settings) : float
type_integer(mixed $var, array $settings) : int
mixed
value to typecast
array
any options to be passed
\Orm\InvalidContentType |
---|
int
type_json_decode(string $var, $settings) : mixed
string
value
mixed
type_json_encode(mixed $var, array $settings) : string
mixed
value
array
any options to be passed
\Orm\InvalidContentType |
---|
string
type_serialize(mixed $var, array $settings) : string
mixed
value
array
any options to be passed
\Orm\InvalidContentType |
---|
string
type_set_after(mixed $var) : array
mixed
value
array
type_set_before(mixed $var, array $settings) : string
mixed
value
array
any options to be passed
\Orm\InvalidContentType |
---|
string
type_string(mixed $var, array $settings) : string
mixed
value to typecast
array
any options to be passed
\Orm\InvalidContentType |
---|
string
type_time_decode(string $var, array $settings) : \Fuel\Core\Date
type_time_encode(\Fuel\Core\Date $var, array $settings) : int | string
array
any options to be passed
\Orm\InvalidContentType |
---|
int
string
type_unserialize(string $var) : mixed
string
value
mixed
typecast(string $column, string $value, string $settings, $event_type) : mixed
string
name of the column
string
value
string
column settings from the model
\Orm\InvalidContentType |
---|
mixed
$events : array
$regex_methods : array
$type_mappings : array
$type_methods : array
$use_locale