Public Member Functions |
|
| render () |
| | Render the record as a string.
|
|
| __toString () |
| | Calls the render() method.
|
|
| get_row ($view='') |
| | Get the record as a row (based on the schema info in core_field).
|
|
| get_data ($view='') |
| | Get the record data as an array.
|
|
| get_hidden_fields ($view='', $options=array()) |
| | Get hidden fields.
|
|
| get_form_fields ($view='', $hidden_fields=false, $options=array()) |
| | Get form fields for the record.
|
|
| get_grouped_fields ($view='', $hidden_fields=false, $options=array()) |
| | Get form fields, grouped according to schema info in core_field.
|
|
| valid () |
| | Is the data in the record valid?
|
|
| validate () |
| | Validate the data in the record.
|
|
| set_values ($values) |
| | Set the record's values.
|
| | save () |
| | Save the record.
|
|
| before_update () |
| | Functions to perform before update, as set in the UI model.
|
|
| after_update () |
| | Functions to perform after update, as set in the UI model.
|
|
| add_message ($message) |
| | Add a message.
|
|
| get_messages () |
| | Get messages.
|
|
| set_messages ($item) |
| | Set messages.
|
|
| __construct ($table_name, $data=null, $exists=false, $options=array()) |
| | Constructor.
|
|
| copy () |
| | Copy constructor.
|
|
| get_table_name () |
| | Get table name.
|
|
| get_original_values ($field=null) |
| | Get the original field values.
|
|
| children ($where=array()) |
| | For recursive (tree) objects, get the record's children records.
|
|
| has_children ($where=array()) |
| | For recursive (tree) objects, find if it has children records.
|
|
| parent () |
| | For recursive (tree) objects, get the record's parent record.
|
|
| root () |
| | For recursive (tree) objects, get the record's root node.
|
|
| many_to_many ($map_table_name) |
| | Returns an array of records linked to the table using a mapping table in a many-to-many relationship.
|
| | get_mapping_table ($table_name) |
| | Returns a mapping table if the supplied table is related to this table in a many-to-many relationship.
|
| | get_model () |
| | Get the record's model object.
|
|
| get_model_class () |
| | Get the model's class.
|
|
| exists () |
| | Has the record been saved?
|
|
| set_exists ($item) |
| | Set the record's exist property to true (the record has been saved).
|
|
| delete () |
| | Delete the record.
|
|
| is_modified ($field_name) |
| | Check if the record has been modified.
|
|
| is_field ($field_name) |
| | Does the field exist?
|
|
| set_field ($field_name, $value=null) |
| | Set the field value.
|
|
| get_value ($field_name) |
| | Get the field value.
|
|
| get_id () |
| | Get the record's ID.
|
|
| one ($table) |
| | Just get one (the first) of a record in a one-to-many or one-to-one relationship with this record.
|
| | __get ($property) |
| | Get the record from a related table.
|
| | __call ($property, $params) |
| | Get the record from a related table.
|
|
| 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.
|