Moodle  2.2.1
http://www.collinsharper.com
role_assign_user_selector_base Class Reference
Inheritance diagram for role_assign_user_selector_base:
Collaboration diagram for role_assign_user_selector_base:

Public Member Functions

 __construct ($name, $options)

Data Fields

const MAX_USERS_PER_PAGE = 100

Protected Member Functions

 get_options ()

Protected Attributes

 $roleid
 $context

Detailed Description

Base class to avoid duplicating code.

Definition at line 987 of file lib.php.


Constructor & Destructor Documentation

__construct ( name,
options 
)
Parameters:
string$namecontrol name
array$optionsshould have two elements with keys groupid and courseid.

Reimplemented from user_selector_base.

Reimplemented in existing_role_holders.

Definition at line 997 of file lib.php.

Here is the call graph for this function:


Member Function Documentation

get_options ( ) [protected]

Note: this function must be implemented if you use the search ajax field (e.g. set $options['file'] = '/admin/filecontainingyourclass.php';)

Returns:
array the options needed to recreate this user_selector.

Reimplemented from user_selector_base.

Definition at line 1010 of file lib.php.


Field Documentation

$context [protected]

Definition at line 991 of file lib.php.

$roleid [protected]

Definition at line 990 of file lib.php.

const MAX_USERS_PER_PAGE = 100

Definition at line 988 of file lib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations