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

Ui record model. More...

Inheritance diagram for Ui_Record:
Db_Record Base

List of all members.

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.
- Public Member Functions inherited from Db_Record
 __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.
- Public Member Functions inherited from Base
 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

 $_valid = false
 Is the field valid?
 $_messages = array()
 Messages.
- Public Attributes inherited from Db_Record
 $h2o_safe = true
 can be used in h2o

Additional Inherited Members

- Protected Attributes inherited from Db_Record
 $_exists
 has the record been saved?
 $_table_name = ''
 table name
 $_model_class = ''
 model class name
 $_original_values = array()
 original field values
- 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

Ui record model.


Member Function Documentation

Ui_Record::save ( )

Save the record.

Runs before and after update callbacks.

Reimplemented from Db_Record.


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