API exposed by tool_mobile, to be used mostly by external functions and the plugin settings.
More...
API exposed by tool_mobile, to be used mostly by external functions and the plugin settings.
- Copyright
- 2016 Juan Leyva
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Since
- Moodle 3.1
◆ get_autologin_key()
static tool_mobile\api::get_autologin_key |
( |
| ) |
|
|
static |
Creates an auto-login key for the current user, this key is restricted by time and ip address.
- Return values
-
- Since
- Moodle 3.2
◆ get_config()
static tool_mobile\api::get_config |
( |
|
$section | ) |
|
|
static |
Returns a list of site configurations, filtering by section.
- Parameters
-
string | $section | section name |
- Return values
-
stdClass | object containing the settings |
◆ get_features_list()
static tool_mobile\api::get_features_list |
( |
| ) |
|
|
static |
Get a list of the Mobile app features.
- Return values
-
array | array with the features grouped by theirs ubication in the app. |
- Since
- Moodle 3.3
◆ get_plugins_supporting_mobile()
static tool_mobile\api::get_plugins_supporting_mobile |
( |
| ) |
|
|
static |
Returns a list of Moodle plugins supporting the mobile app.
- Return values
-
array | an array of objects containing the plugin information |
◆ get_potential_config_issues()
static tool_mobile\api::get_potential_config_issues |
( |
| ) |
|
|
static |
This function check the current site for potential configuration issues that may prevent the mobile app to work.
- Return values
-
array | list of potential issues |
- Since
- Moodle 3.4
◆ get_public_config()
static tool_mobile\api::get_public_config |
( |
| ) |
|
|
static |
Returns a list of the site public settings, those not requiring authentication.
- Return values
-
array | with the settings and warnings |
The documentation for this class was generated from the following file: