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

Public Member Functions

 index ()
 Redirects to show all.
 show_all ($limit_results=50, $order_by= 'id', $order_by_direction= 'asc', $page_word=null, $page=1)
 Function shows all users.
 show_by_member ($member_id=NULL, $limit_results=200, $order_by= 'id', $order_by_direction= 'ASC', $page_word=null, $page=1)
 Function shows users of member.
 delete ($user_id=NULL)
 Function deletes user.
 edit ($user_id=NULL)
 Function edits user.
 show ($user_id=NULL)
 Function shows user.
 add ($member_id=null)
 Function adds user.
 show_work ($work_id=NULL)
 Shows work of user.
 show_work_report ($work_report_id=NULL)
 Shows work report of user.
 show_request ($request_id=NULL)
 Shows request of user.
 change_password ($user_id=null)
 Function changes password of user.
 change_application_password ($user_id=null)
 Function changes application password of user.
 get_users ()
 Gets list of users.
 get_usernames ()
 Gets list of usernames.
 check_password ($input=NULL)
 Checks password.
 valid_username ($input=NULL)
 Check validity of usename.
- Public Member Functions inherited from Controller
 __construct ()
 Contruct of controller, creates singleton or return it.
 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.

Protected Attributes

 $_user_id = false
- Protected Attributes inherited from Controller
 $member_id
 $user_id
 $member_account_id = 1
 $session

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.

Member Function Documentation

Users_Controller::add (   $member_id = null)

Function adds user.

Parameters
integer$member_id
Users_Controller::change_application_password (   $user_id = null)

Function changes application password of user.

Parameters
integer$user_id
Users_Controller::change_password (   $user_id = null)

Function changes password of user.

Parameters
integer$user_id
Users_Controller::check_password (   $input = NULL)

Checks password.

Parameters
object$input
Users_Controller::delete (   $user_id = NULL)

Function deletes user.

Parameters
integer$user_id
Users_Controller::edit (   $user_id = NULL)

Function edits user.

Parameters
integer$user_id
Users_Controller::show (   $user_id = NULL)

Function shows user.

Parameters
integer$user_id
Users_Controller::show_all (   $limit_results = 50,
  $order_by = 'id',
  $order_by_direction = 'asc',
  $page_word = null,
  $page = 1 
)

Function shows all users.

Parameters
integer$limit_results
string$order_by
string$order_by_direction
integer$page_word
integer$page
Users_Controller::show_by_member (   $member_id = NULL,
  $limit_results = 200,
  $order_by = 'id',
  $order_by_direction = 'ASC',
  $page_word = null,
  $page = 1 
)

Function shows users of member.

Parameters
integer$member_id
integer$limit_results
string$order_by
string$order_by_direction
integer$page_word
integer$page
Returns
unknown_type
Users_Controller::show_request (   $request_id = NULL)

Shows request of user.

Author
Michal Kliment
Parameters
integer$work_id
Users_Controller::show_work (   $work_id = NULL)

Shows work of user.

Author
Michal Kliment
Parameters
integer$work_id
Users_Controller::show_work_report (   $work_report_id = NULL)

Shows work report of user.

Author
Michal Kliment
Parameters
integer$work_id
Users_Controller::valid_username (   $input = NULL)

Check validity of usename.

Parameters
object$input

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