Airnotifier helper manager class.
More...
|
static | enable_device ($deviceid, $enable) |
| Enables or disables a registered user device so it can receive Push notifications. More...
|
|
|
string const | AIRNOTIFIER_PUBLICURL = 'https://messages.moodle.net' |
| The Airnotifier public instance URL.
|
|
Airnotifier helper manager class.
- Copyright
- 2012 Jerome Mouneyrac jerom.nosp@m.e@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ enable_device()
static message_airnotifier_manager::enable_device |
( |
|
$deviceid, |
|
|
|
$enable |
|
) |
| |
|
static |
Enables or disables a registered user device so it can receive Push notifications.
- Parameters
-
int | $deviceid | the device id |
bool | $enable | true to enable it, false to disable it |
- Return values
-
bool | true if the device was enabled, false in case of error |
- Since
- Moodle 3.2
◆ get_user_devices()
message_airnotifier_manager::get_user_devices |
( |
|
$appname, |
|
|
|
$userid = null |
|
) |
| |
Return the user devices for a specific app.
- Parameters
-
string | $appname | the app name . |
int | $userid | if empty take the current user. |
- Return values
-
◆ include_device_ajax()
message_airnotifier_manager::include_device_ajax |
( |
| ) |
|
Include the relevant javascript and language strings for the device toolbox YUI module.
- Return values
-
◆ is_system_configured()
message_airnotifier_manager::is_system_configured |
( |
| ) |
|
Tests whether the airnotifier settings have been configured.
- Return values
-
boolean | true if airnotifier is configured |
◆ request_accesskey()
message_airnotifier_manager::request_accesskey |
( |
| ) |
|
Request and access key to Airnotifier.
- Return values
-
mixed | The access key or false in case of error |
The documentation for this class was generated from the following file: