External API for airnotifier web services.
More...
External API for airnotifier web services.
- 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
- Since
- Moodle 2.7
◆ are_notification_preferences_configured()
static message_airnotifier_external::are_notification_preferences_configured |
( |
| $userids | ) |
|
|
static |
Check if the users have notification preferences configured for the airnotifier plugin.
- Parameters
-
array | $userids | Array of user ids |
- Since
- Moodle 2.7
◆ are_notification_preferences_configured_parameters()
static message_airnotifier_external::are_notification_preferences_configured_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters.
- Since
- Moodle 2.7
◆ are_notification_preferences_configured_returns()
static message_airnotifier_external::are_notification_preferences_configured_returns |
( |
| ) |
|
|
static |
Returns description of method result value.
- Return values
-
external_single_structure | |
- Since
- Moodle 2.7
◆ enable_device()
static message_airnotifier_external::enable_device |
( |
| $deviceid, |
|
|
| $enable ) |
|
static |
Enables or disables a registered user device so it can receive Push notifications.
- Parameters
-
integer | $deviceid | the device id |
bool | $enable | whether to enable the device |
- Return values
-
array | warnings and success status |
- Exceptions
-
- Since
- Moodle 3.2
◆ enable_device_parameters()
static message_airnotifier_external::enable_device_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters.
- Since
- Moodle 3.2
◆ enable_device_returns()
static message_airnotifier_external::enable_device_returns |
( |
| ) |
|
|
static |
Returns description of method result value.
- Return values
-
external_single_structure | |
- Since
- Moodle 3.2
◆ get_user_devices()
static message_airnotifier_external::get_user_devices |
( |
| $appid, |
|
|
| $userid = 0 ) |
|
static |
Return the list of mobile devices that are registered in Moodle for the given user.
- Parameters
-
string | $appid | app unique id (usually a reversed domain) |
integer | $userid | the user id, 0 for current user |
- Return values
-
array | warnings and devices |
- Exceptions
-
- Since
- Moodle 3.2
◆ get_user_devices_parameters()
static message_airnotifier_external::get_user_devices_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters.
- Since
- Moodle 3.2
◆ get_user_devices_returns()
static message_airnotifier_external::get_user_devices_returns |
( |
| ) |
|
|
static |
Returns description of method result value.
- Return values
-
external_single_structure | |
- Since
- Moodle 3.2
◆ is_system_configured()
static message_airnotifier_external::is_system_configured |
( |
| ) |
|
|
static |
Tests whether the airnotifier settings have been configured.
- Since
- Moodle 2.7
◆ is_system_configured_parameters()
static message_airnotifier_external::is_system_configured_parameters |
( |
| ) |
|
|
static |
Returns description of method parameters.
- Since
- Moodle 2.7
◆ is_system_configured_returns()
static message_airnotifier_external::is_system_configured_returns |
( |
| ) |
|
|
static |
Returns description of method result value.
- Return values
-
external_single_structure | |
- Since
- Moodle 2.7
The documentation for this class was generated from the following file: