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

Public Member Functions

 __construct ()
 Contruct of controller, creates singleton or return it.
 index ()
 Index redirects to show_all.
 show_all ($limit_results=100, $order_by= 'id', $order_by_direction= 'ASC', $page_word=null, $page=1)
 Function to show all approval types.
 show ($approval_type_id=NULL)
 Function to show approval type.
 add ()
 Function to add new approval type.
 edit ($approval_type_id=NULL)
 Function to edit approval type.
 delete ($approval_type_id=NULL)
 Function to delete approval type.
 valid_majority_percent ($input=NULL)
 Callback function.
 valid_interval ($input=NULL)
 Callback function.
 valid_default_vote ($input=NULL)
 Callback function.
- Public Member Functions inherited from Controller
 is_user_in_group ($aro_group_id, $aro_id)
 Checks if user is in ARO group.
 acl_check_view ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may view all $axo_value object in $axo_section else return false.
 acl_check_edit ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may edit all $axo_value object in $axo_section else return false.
 acl_check_new ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may add all $axo_value object in $axo_section else return false.
 acl_check_delete ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may delete all $axo_value object in $axo_section else return false.
 build_menu ()
 Build menu.
 url ()
 Return URL for controller and method.
 redirect ($uri=NULL, $id=NULL, $glue= '/')
 Redirects to uri according to attribute noredirect.

Static Protected Member Functions

static type_field ($item, $name)
 Callback function to return type as text.
static group_field ($item, $name)
 Callback function to return group as text.
static interval_field ($item, $name)
 Callback function to return interval as number.
static default_vote_field ($item, $name)
 Callback function.
static min_suggest_amount_field ($item, $name)
 Callback function to return minimal suggest amount with system currency.

Additional Inherited Members

- Static Public Member Functions inherited from Controller
static & instance ()
 Singleton instance of Controller.
static error ($message_type, $content=NULL)
 Function shows error of given message number.
static warning ($message_type, $content=NULL)
 Function shows warning of given message number.
- Public Attributes inherited from Controller
const ICON_ERROR = 1
const ICON_GOOD = 2
const ICON_HELP = 3
const ICON_INFO = 4
const ICON_WARNING = 5
 $arr
 $settings = NULL
 $popup = 0
 $dialog = 0
 $noredirect = FALSE
 $user_has_voip = 0
 $ip_address_span = ''
 $unread_user_mails = 0
 $count_of_unclosed_logged_errors = 0
 $devices_down_count = 0
 $user_favourites_pages = NULL
 $axo_doc_access = FALSE
- Protected Member Functions inherited from Controller
 is_preprocesor_enabled ()
 This methods defines whether the preprocessor of MY_Controller is loaded or not.
- Protected Attributes inherited from Controller
 $member_id
 $user_id
 $member_account_id = 1
 $session

Constructor & Destructor Documentation

Approval_types_Controller::__construct ( )

Contruct of controller, creates singleton or return it.

Todo:
in the future the collate should be used according to language system settings

Reimplemented from Controller.

Member Function Documentation

Approval_types_Controller::add ( )

Function to add new approval type.

Author
Michal Kliment
static Approval_types_Controller::default_vote_field (   $item,
  $name 
)
staticprotected

Callback function.

Author
Michal Kliment
Parameters
unknown_type$item
unknown_type$name
Approval_types_Controller::delete (   $approval_type_id = NULL)

Function to delete approval type.

Author
Michal Kliment
Parameters
number$approval_type_id
Approval_types_Controller::edit (   $approval_type_id = NULL)

Function to edit approval type.

Author
Michal Kliment
Parameters
integer$approval_type_id
static Approval_types_Controller::group_field (   $item,
  $name 
)
staticprotected

Callback function to return group as text.

Author
Michal Kliment
Parameters
unknown_type$item
unknown_type$name
static Approval_types_Controller::interval_field (   $item,
  $name 
)
staticprotected

Callback function to return interval as number.

Author
Michal Kliment
Parameters
unknown_type$item
unknown_type$name
static Approval_types_Controller::min_suggest_amount_field (   $item,
  $name 
)
staticprotected

Callback function to return minimal suggest amount with system currency.

Author
Michal Kliment
Parameters
unknown_type$item
unknown_type$name
Approval_types_Controller::show (   $approval_type_id = NULL)

Function to show approval type.

Author
Michal Kliment
Parameters
number$approval_type_id
Approval_types_Controller::show_all (   $limit_results = 100,
  $order_by = 'id',
  $order_by_direction = 'ASC',
  $page_word = null,
  $page = 1 
)

Function to show all approval types.

Author
Michal Kliment
Parameters
number$limit_results
string$order_by
string$order_by_direction
string$page_word
number$page
static Approval_types_Controller::type_field (   $item,
  $name 
)
staticprotected

Callback function to return type as text.

Author
Michal Kliment
Parameters
unknown_type$item
unknown_type$name
Approval_types_Controller::valid_default_vote (   $input = NULL)

Callback function.

Author
Michal Kliment
Parameters
unknown_type$input
Approval_types_Controller::valid_interval (   $input = NULL)

Callback function.

Author
Michal Kliment
Parameters
unknown_type$input
Approval_types_Controller::valid_majority_percent (   $input = NULL)

Callback function.

Author
Michal Kliment
Parameters
unknown_type$nput

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