Static Public Member Functions |
static | get_type_name ($type, $translate=TRUE) |
| Gets mane to a type.
|
static | get_types ($translate=TRUE) |
| Gets possible types of a proposal.
|
static | has_suggest_amount ($type) |
| Indicate whether a request with a type that is given by a param may contains data in suggest_amount attribute.
|
static | get_state_name ($state) |
| Returns state name.
|
Public Attributes |
const | TYPE_SUPPORT = 0 |
| request is made for support (a member what to help with a thing that he do not undestand or he/she is not authorised to do it)
|
const | TYPE_PROPOSAL = 1 |
| request is an proposal on the association that may contains information about proposal cost
|
const | STATE_NEW = 0 |
| new request, one votes about it, can be edited
|
const | STATE_OPEN = 1 |
| open request, approval already started, cannot be edited
|
const | STATE_REJECTED = 2 |
| rejected request
|
const | STATE_APPROVED = 3 |
| approved request
|
Protected Attributes |
| $belongs_to |
Member Function Documentation
Request_Model::count_all_requests |
( |
|
$filter_sql = '' | ) |
|
Counts all requests.
- Author
- Michal Kliment
- Parameters
-
- Returns
- integer
Request_Model::get_all_requests |
( |
|
$limit_from = 0 , |
|
|
|
$limit_results = 50 , |
|
|
|
$order_by = 'id' , |
|
|
|
$order_by_direction = 'ASC' , |
|
|
|
$filter_sql = '' |
|
) |
| |
Returns all requests.
- Parameters
-
integer | $limit_from | |
integer | $limit_results | |
string | $order_by | |
string | $order_by_direction | |
string | $filter_sql | |
- Returns
- MySQL_Iterator
Request_Model::get_all_requests_by_user |
( |
|
$user_id, |
|
|
|
$state = '' |
|
) |
| |
Function to return all requests of user.
- Author
- Michal Kliment
- Parameters
-
- Returns
- Mysql_Result
static Request_Model::get_state_name |
( |
|
$state | ) |
|
|
static |
Returns state name.
- Author
- Michal Kliment
- Parameters
-
- Returns
- string
Request_Model::get_suggest_amount |
( |
| ) |
|
Only returns suggest amount of work.
- Author
- Michal Kliment
- Returns
- integer
static Request_Model::get_type_name |
( |
|
$type, |
|
|
|
$translate = TRUE |
|
) |
| |
|
static |
Gets mane to a type.
- Parameters
-
integer | $type | |
boolean | $translate | Translate types? [default: TRUE] |
- Returns
- string
static Request_Model::get_types |
( |
|
$translate = TRUE | ) |
|
|
static |
Gets possible types of a proposal.
- Parameters
-
boolean | $translate | Translate types? [default: TRUE] |
- Returns
- array
static Request_Model::has_suggest_amount |
( |
|
$type | ) |
|
|
static |
Indicate whether a request with a type that is given by a param may contains data in suggest_amount attribute.
- Parameters
-
integer | $type | Request type constant |
- Returns
- boolean
Member Data Documentation
Request_Model::$belongs_to |
|
protected |
Initial value: array
(
'user', 'approval_template'
)
The documentation for this class was generated from the following file: