FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
Approval_type_Model Class Reference
Inheritance diagram for Approval_type_Model:
ORM

Public Member Functions

 get_all_approval_types ($limit_from=0, $limit_results=50, $order_by= 'id', $order_by_direction= 'ASC', $filter_values=array())
 Function to return all aproval types.
 get_state ($approval_type_id=NULL)
 Function to get state of approval type.

Static Public Member Functions

static get_type_name ($type, $translate=TRUE)
 Gets name of a type.
static get_type_names ($translate=TRUE)
 Gets type names.

Public Attributes

const SIMPLE = 1
 Simple type of approval type.
const ABSOLUTE = 2
 Absolute type of approval type.

Protected Attributes

 $belongs_to = array('aro_group')

Member Function Documentation

Approval_type_Model::get_all_approval_types (   $limit_from = 0,
  $limit_results = 50,
  $order_by = 'id',
  $order_by_direction = 'ASC',
  $filter_values = array() 
)

Function to return all aproval types.

Author
Michal Kliment
Parameters
number$limit_from
number$limit_results
string$order_by
string$order_by_direction
array$filter_values
Returns
Mysql_Result object
Approval_type_Model::get_state (   $approval_type_id = NULL)

Function to get state of approval type.

Author
Michal Kliment
Parameters
number$approval_type_id
Returns
number
static Approval_type_Model::get_type_name (   $type,
  $translate = TRUE 
)
static

Gets name of a type.

Parameters
integer$typeType constant
bool$translateTranslate name?
Returns
null|string
static Approval_type_Model::get_type_names (   $translate = TRUE)
static

Gets type names.

Parameters
bool$translateTranslate names?
Returns
array

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