$belongs_to = array()
[line 70]
Array of models this model belongs to
Array of models this model belongs to
$db =
[line 115]
Database connection
Database connection
Tags:
$display_field = 'title'
[line 107]
Field to display when this table is used in a belongs_to association
Field to display when this table is used in a belongs_to association
$has_and_belongs_to = array()
[line 86]
Array of models with n-m relationships
Array of models with n-m relationships
Tags:
$has_many = array()
[line 63]
Array of models this model has
Array of models this model has
Tags:
$id = null
[line 24]
ID field for table
ID field for table
$one_to_one = array()
[line 78]
Array of models with which we have a one-to-one relationships
Array of models with which we have a one-to-one relationships
Tags:
$table = null
[line 40]
Table to associate this model with.
Table to associate this model with. If no value is set, the pluralized name of the model will be used
$upload = array()
[line 100]
Array of fields to treat as file uploads
Array of fields to treat as file uploads
Example of creating an image upload field:
- var $upload = array('img' => array('maxsize' = 64000, 'type' = array('jpg', 'gif', 'png')));
Tags:
$validation = array()
[line 55]
Validation rules for different fields
Validation rules for different fields
Example:
- var $validation = array(
- 'name' => array('string', array('format' => VALIDATE_ALPHA, 'minlenth' => 1)),
- 'age' => array('number', array('decimal' => '', 'min' => 18, 'max' => 99))
- );
$_fields = array()
[line 32]
Array of table fields
Array of table fields
Tags: