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

Public Member Functions

 get_all_works ($limit_from=NULL, $limit_results=NULL, $order_by=NULL, $order_by_direction=NULL, $filter_sql= '')
 Function to return all pending works.
 count_all_works ($filter_sql= '')
 Counts all rejected works.
 get_all_pending_works_by_user ($user_id)
 Function to return all pending works of user.
 get_all_rejected_works_by_user ($user_id)
 Function to return all rejected works of user.
 get_all_approved_works_by_user ($user_id)
 Function to return all approved works of user.
 get_all_works_by_job_report_id ($job_report_id)
 Function to return all works belongs to work report.
 get_suggest_amount ()
 Only returns suggest amount of work.

Protected Attributes

 $belongs_to

Member Function Documentation

Job_Model::count_all_works (   $filter_sql = '')

Counts all rejected works.

Author
Michal Kliment
Parameters
array$filter_values
Returns
number
Job_Model::get_all_approved_works_by_user (   $user_id)

Function to return all approved works of user.

Author
Michal Kliment
Parameters
number$user_id
Returns
Mysql_Results
Job_Model::get_all_pending_works_by_user (   $user_id)

Function to return all pending works of user.

Author
Michal Kliment
Parameters
number$user_id
Returns
Mysql_Result
Job_Model::get_all_rejected_works_by_user (   $user_id)

Function to return all rejected works of user.

Author
Michal Kliment
Parameters
number$user_id
Returns
Mysql_Result
Job_Model::get_all_works (   $limit_from = NULL,
  $limit_results = NULL,
  $order_by = NULL,
  $order_by_direction = NULL,
  $filter_sql = '' 
)

Function to return all pending works.

Author
Michal Kliment
Parameters
number$limit_from
number$limit_results
string$order_by
string$order_by_direction
array$filter_values
Returns
Mysql_Result
Job_Model::get_all_works_by_job_report_id (   $job_report_id)

Function to return all works belongs to work report.

Author
Michal Kliment
Parameters
number$job_report_id
Returns
Mysql_Result
Job_Model::get_suggest_amount ( )

Only returns suggest amount of work.

Author
Michal Kliment
Returns
integer

Member Data Documentation

Job_Model::$belongs_to
protected
Initial value:
array
(
'user', 'added_by' => 'user',
'approval_template', 'job_report',
'previous_rejected_work' => 'job'
)

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