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

Public Member Functions

 get_all_items_by_template_id ($template_id)
 Function to return all approval template items belongs to approval template.
 get_lowest_priority_of_template ($template_id)
 Function to return the lowest priority of approval template.
 get_highest_priority_of_template ($template_id)
 Function to return the highest priority of approval template.
 check_user_vote_rights ($object, $object_type, $user_id, $suggest_amount)
 Function to check if user have rights to vote.
 get_aro_groups_by_approval_template_id ($template_id, $suggest_amount=0, $user_id=0)
 Returns all group assigned to approval.
 get_aro_group_by_approval_template_id_and_user_id ($template_id, $user_id, $suggest_amount=0)
 Returns aro group assigned to user and approval.
 get_aro_ids_by_approval_template_id ($template_id, $suggest_amount=0)
 Returns all aro ids assigned to approval.

Protected Attributes

 $belongs_to = array('approval_template', 'approval_type')

Member Function Documentation

Approval_template_item_Model::check_user_vote_rights (   $object,
  $object_type,
  $user_id,
  $suggest_amount 
)

Function to check if user have rights to vote.

Author
Ondřej Fibich
Parameters
object$objectJob or Request
integer$object_typeVote_Model::WORK or Vote_Model::REQUEST
integer$user_id
double$suggest_amount
Returns
boolean
Approval_template_item_Model::get_all_items_by_template_id (   $template_id)

Function to return all approval template items belongs to approval template.

Author
Michal Kliment
Parameters
number$template_id
Returns
Mysql_Result object
Approval_template_item_Model::get_aro_group_by_approval_template_id_and_user_id (   $template_id,
  $user_id,
  $suggest_amount = 0 
)

Returns aro group assigned to user and approval.

Author
Michal Kliment
Parameters
number$template_id
number$user_id
number$suggest_amount
Returns
Mysql_Result object
Approval_template_item_Model::get_aro_groups_by_approval_template_id (   $template_id,
  $suggest_amount = 0,
  $user_id = 0 
)

Returns all group assigned to approval.

Author
Michal Kliment
Parameters
number$template_id
number$suggest_amount
number$user_id
Returns
Mysql_Result object
Approval_template_item_Model::get_aro_ids_by_approval_template_id (   $template_id,
  $suggest_amount = 0 
)

Returns all aro ids assigned to approval.

Author
Michal Kliment
Parameters
number$template_id
number$suggest_amount
Returns
Mysql_Result object
Approval_template_item_Model::get_highest_priority_of_template (   $template_id)

Function to return the highest priority of approval template.

Author
Michal Kliment
Parameters
number$template_id
Returns
number
Approval_template_item_Model::get_lowest_priority_of_template (   $template_id)

Function to return the lowest priority of approval template.

Author
Michal Kliment
Parameters
number$template_id
Returns
number

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