IDBField Interface Reference
[Interfaces]
Interface for DB Field. More...
Public Member Functions |
|
convert_result ($value) | |
Transform result from SELECT to native.
|
|
format ($value) | |
Reformat passed value to DB
format. |
|
format_select () | |
Allow replacements for field in select from
clause. |
|
format_where ($value) | |
Format for use in WHERE clause. |
|
get_field_default () | |
Returns the default value for this field.
|
|
get_field_name () | |
Returns name. |
|
get_null_allowed () | |
Returns true, if null values are allowed.
|
|
has_default_value () | |
Returns true, if field has default value.
|
|
read_from_array ($arr) | |
Reads value from array (e.g $_POST) and
converts it into something meaningfull. |
|
set_connection ($connection) | |
Set connection of field. |
|
set_table ($table) | |
Set table field belongs to. |
|
validate ($value) | |
Returns true, if the value passed fits the
fields restrictions. |
Detailed Description
Interface for DB Field.
Definition at line 9 of file idbfield.cls.php.
Member Function Documentation
IDBField::convert_result | ( | $ | value | ) |
Transform result from SELECT to native.
- Parameters:
-
mixed $value
- Returns:
- mixed
Implemented in DBField, DBFieldBool, DBFieldDateTime, DBFieldSerialized, and DBFieldSet.
IDBField::format | ( | $ | value | ) |
Reformat passed value to DB format.
- Parameters:
-
mixed $value
- Returns:
- string
Implemented in DBField, and DBFieldDateTime.
IDBField::format_select | ( | ) |
Allow replacements for field in select from clause.
Implemented in DBField, DBFieldBool, DBFieldDateTime, DBFieldSet, and DBFieldTime.
IDBField::format_where | ( | $ | value | ) |
Format for use in WHERE clause.
- Parameters:
-
mixed $value
- Returns:
- string
Implemented in DBField, and DBFieldDateTime.
IDBField::get_field_default | ( | ) |
Returns the default value for this field.
- Returns:
- mixed
Implemented in DBField, DBFieldDateTime, DBFieldInt, and DBFieldSerialized.
IDBField::get_field_name | ( | ) |
IDBField::get_null_allowed | ( | ) |
IDBField::has_default_value | ( | ) |
Returns true, if field has default value.
Implemented in DBField, and DBFieldInt.
IDBField::read_from_array | ( | $ | arr | ) |
Reads value from array (e.g $_POST) and converts it into something meaningfull.
Implemented in DBField, DBFieldBool, and DBFieldFloat.
IDBField::set_connection | ( | $ | connection | ) |
Set connection of field.
- Parameters:
-
string|IDBDriver $connection
- Returns:
- void
Implemented in DBField.
IDBField::set_table | ( | $ | table | ) |
IDBField::validate | ( | $ | value | ) |
Returns true, if the value passed fits the fields restrictions.
- Parameters:
-
mixed $value
- Returns:
- Status
Implemented in DBField, DBFieldBlob, DBFieldDateTime, DBFieldEnum, DBFieldFloat, DBFieldInt, DBFieldSerialized, DBFieldSet, and DBFieldText.
The documentation for this interface was generated from the following file:
- gyro/core/lib/interfaces/idbfield.cls.php