Phang  2.1
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | Protected Attributes
Db_Model_Field Class Reference

Holds field properties. More...

Inheritance diagram for Db_Model_Field:
Base Ui_model_field

List of all members.

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.

Detailed Description

Holds field properties.


Constructor & Destructor Documentation

Db_Model_Field::__construct (   $properties)

Class constructor.

  • $properties: field properties

The documentation for this class was generated from the following file: