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

Public Member Functions

 __construct ()
 Constructor, only test if finance is enabled.
 show_by_member ($member_id=NULL)
 Function to show tariffs of member For each fee type shows independent grid.
 add ($member_id=NULL, $fee_type_id=NULL)
 Function to add new tariffs If member is set, adds new tariff to this member If fee type is set, adds new tariffs only for fees of this type.
 edit ($members_fee_id=NULL)
 Function to edit tariff.
 delete ($members_fee_id=NULL)
 Function to delete tariffs.
 valid_from ($input=NULL)
 Callback function to validate form field.
 valid_to ($input=NULL)
 Callback function to validate to field.
- 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 fee_name_field ($item, $name)
 Callback function to render fee's name.
static status_field ($item, $name)
 Callback function to render images for status field.

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

Member Function Documentation

Members_fees_Controller::add (   $member_id = NULL,
  $fee_type_id = NULL 
)

Function to add new tariffs If member is set, adds new tariff to this member If fee type is set, adds new tariffs only for fees of this type.

Author
Michal Kliment
Parameters
number$member_idid of member, to which adds new tariff (optional)
number$fee_type_idid fee type (optional)
Members_fees_Controller::delete (   $members_fee_id = NULL)

Function to delete tariffs.

Author
Michal Kliment
Parameters
integer$members_fee_id
Members_fees_Controller::edit (   $members_fee_id = NULL)

Function to edit tariff.

Author
Michal Kliment
Parameters
number$members_fee_idid of members fee to edit
static Members_fees_Controller::fee_name_field (   $item,
  $name 
)
staticprotected

Callback function to render fee's name.

Author
Michal Kliment
Parameters
$item
$name
Members_fees_Controller::show_by_member (   $member_id = NULL)

Function to show tariffs of member For each fee type shows independent grid.

Author
Michal Kliment
Parameters
number$member_idif of member to show his tariff

Finds all fees belongs to member and stores it in 2-dimensional array First index is fee type, second fee It's for later rendering of grids

static Members_fees_Controller::status_field (   $item,
  $name 
)
staticprotected

Callback function to render images for status field.

Author
Michal Kliment
Parameters
object$item
string$name
Members_fees_Controller::valid_from (   $input = NULL)

Callback function to validate form field.

Author
Michal Kliment
Parameters
object$input
Members_fees_Controller::valid_to (   $input = NULL)

Callback function to validate to field.

Author
Michal Kliment
Parameters
$input

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