Holds field properties. More...
Public Member Functions | |
| __construct ($properties) | |
| Class constructor. | |
| is_primary_key () | |
| Check if the field is the primary key. | |
Public Member Functions inherited from Base | |
| __call ($function, $params) | |
| The 'magic' call method will get/set for us invoked when the interpreter can not find a method the user is asking for. | |
| set_parameters ($arguments) | |
| Set variables from an array to member fields requires $this->optional_arguments or $this->required_arguments to have been set by the subclass. | |
Public Attributes | |
| $h2o_safe = true | |
| can be used in h2o | |
Protected Attributes | |
| $db_type = '' | |
| Database column type (as defined in /lib/constants/db.php) | |
| $length = '' | |
| Length of field. | |
| $form_type = '' | |
| HTML form element type (as defined in /lib/constants/form.php) | |
| $lookup_table = '' | |
| Lookup table name. | |
| $lookup_model = '' | |
| Data model of lookup table (if applicable) | |
| $label = '' | |
| Field label. | |
| $description = '' | |
| Field description. | |
| $validation = array() | |
| Callback functions to check the field contents before submitting a form. | |
| $access = '' | |
| array: view => list of acces types | |
| $field_name = '' | |
| Field name. | |
| $is_primary_key = false | |
| Primary key field. | |
| $required = false | |
| Required field. | |
| $group = '' | |
| Group (for grouping fields) | |
Protected Attributes inherited from Base | |
| $optional_arguments = array() | |
| Array of options that can be set to variables. | |
| $required_arguments = array() | |
| Array of options that need to be set to variables. | |
Holds field properties.
| Db_Model_Field::__construct | ( | $properties | ) |
Class constructor.
1.8.1.1