[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/badges/lib/ -> awardlib.php (summary)

Classes to manage manual badge award.

Author: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
Copyright: 2012 onwards Totara Learning Solutions Ltd {@link http://www.totaralms.com/}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 241 lines (8 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 2 classes

badge_potential_users_selector:: (2 methods):
  find_users()
  set_existing_recipients()

badge_existing_users_selector:: (2 methods):
  find_users()
  process_manual_award()

Defines 2 functions

  __construct()
  get_options()

Class: badge_potential_users_selector  - X-Ref

A user selector control for potential users to award badge

find_users($search)   X-Ref
Finds all potential badge recipients

Potential badge recipients are all enroled users
who haven't got a badge from current issuer role.

param: string $search
return: array

set_existing_recipients(array $users)   X-Ref
Sets the existing recipients

param: array $users

Class: badge_existing_users_selector  - X-Ref

A user selector control for existing users to award badge

find_users($search)   X-Ref
Finds all users who already have been awarded a badge by current role

param: string $search
return: array

process_manual_award($recipientid, $issuerid, $issuerrole, $badgeid)   X-Ref
No description

Functions
Functions that are not part of a class:

__construct($name, array $options)   X-Ref
Constructor method

param: string $name
param: array $options

get_options()   X-Ref
Returns an array of options to seralise and store for searches

return: array



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1