Phang  2.1
 All Classes Files Functions Variables Pages
Functions
ui.php File Reference

Functions to help with the UI. More...

Functions

 format_field ($value, $ui_model_field)
 Format a field according to UI field data.
 get_form_field ($name, $value=null, $form_type=null, $required=false)
 Get form field (uses UI field data).
 ui_logout ()
 Logout - destroy session and cookie data.
 ui_set_user ($_user)
 Set user data to session.
 ui_get_user ()
 Get user data from session.
 ui_get_user_id ()
 Get user ID.
 ui_get_user_access ()
 Get user access type.
 ui_set_user_setting ($name, $value)
 Set user setting to session.
 ui_unset_user_setting ($name)
 Retrieve user setting from session.
 ui_has_field_access ($ui_model_field, $view='')
 Checks whether a user has access to a field.
 ui_get ($table_name, $id=null)
 gets a single record from a model
 ui_first ($table_name, $where=array(), $order_by=array(), $limit=array())
 gets a single record from a model
 ui_all ($table_name, $where=array(), $order_by=array(), $limit=array())
 gets multiple records from a model

Detailed Description

Functions to help with the UI.

Author:
James Tierney / Fifteen Digital Developers Ltd