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

Public Member Functions

 __construct ($name, $options)
 find_users ($search)

Data Fields

const MAX_USERS_PER_PAGE = 100

Protected Member Functions

 get_options ()

Protected Attributes

 $serviceid
 $displayallowedusers

Detailed Description

Definition at line 31 of file lib.php.


Constructor & Destructor Documentation

__construct ( name,
options 
)

Constructor. Each subclass must have a constructor with this signature.

Parameters:
string$namethe control name/id for use in the HTML.
array$optionsother options needed to construct this selector. You must be able to clone a userselector by doing new get_class($us)($us->get_name(), $us->get_options());

Reimplemented from user_selector_base.

Definition at line 40 of file lib.php.


Member Function Documentation

find_users ( search)

Find allowed or not allowed users of a service (depend of $this->displayallowedusers) object $DB

Parameters:
<type>$search
Returns:
array

the following SQL retrieve all users that are allowed to the serviceid

the following SQL retrieve all users that are not allowed to the serviceid

Reimplemented from user_selector_base.

Definition at line 57 of file lib.php.

Here is the call graph for this function:

get_options ( ) [protected]

This options are automatically used by the AJAX search object $CFG

Returns:
object options pass to the constructor when AJAX search call a new selector

Reimplemented from user_selector_base.

Definition at line 119 of file lib.php.


Field Documentation

$displayallowedusers [protected]

Definition at line 35 of file lib.php.

$serviceid [protected]

Definition at line 34 of file lib.php.

const MAX_USERS_PER_PAGE = 100

Definition at line 32 of file lib.php.


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