Source API for the «PorteTypes_Boolean» class
Type class to interact with "boolean" properties.
Public static methods
- sanitize
-
This method is not yet documented.
- fromDb
-
This method is not yet documented.
- get
-
Return the value of a record property as a boolean.
-
- return
- boolean
- Value associated with the property
- string
- $property, Property
- of the record
- PorteRecord
- $record, Record
- on which to get the property
- set
-
Set a value which will be casted as a boolean type. If value is a string, it accept the values "1" as true and "0" as false. If value is null, it will be casted to "false". Additionnally custom values may force the boolean casting.
Options includes:
- boolean_true: list of values mapping to boolean true
- boolean_false: list of values mapping to boolean false
-
- return
- PorteRecord
- Provided record
- Property
- $property, to
- set
- PorteRecord
- $record, Record
- on which to set the property
- mixed
- $value, Value
- to set
- fromArray
-
This method is not yet documented.
- toArray
-
This method is not yet documented.
- tableUpdate
-
This method is not yet documented.