Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Static Public Member Functions | |
static | fetch_notifications ($contextid) |
Returns the list of notifications against the current session. | |
static | fetch_notifications_parameters () |
Returns description of fetch_notifications() parameters. | |
static | fetch_notifications_returns () |
Returns description of fetch_notifications() result value. | |
static | format_string_parameters ($stringparams) |
Format the received string parameters to be sent to the core get_string() function. | |
static | get_component_strings ($component, $lang=null) |
Return all lang strings of a component - call to core get_component_strings(). | |
static | get_component_strings_parameters () |
Returns description of get_component_strings parameters. | |
static | get_component_strings_returns () |
Returns description of get_component_strings() result value. | |
static | get_fragment ($component, $callback, $contextid, $args=null) |
Get a HTML fragment for inserting into something. | |
static | get_fragment_parameters () |
Returns description of get_fragment parameters. | |
static | get_fragment_returns () |
Returns description of get_fragment() result value. | |
static | get_string ($stringid, $component='moodle', $lang=null, $stringparams=array()) |
Return a core get_string() call. | |
static | get_string_parameters () |
Returns description of get_string parameters. | |
static | get_string_returns () |
Returns description of get_string() result value. | |
static | get_strings ($strings) |
Return multiple call to core get_string() | |
static | get_strings_parameters () |
Returns description of get_string parameters. | |
static | get_strings_returns () |
Returns description of get_string() result value. | |
static | get_user_dates ($contextid, $contextlevel, $instanceid, $timestamps) |
Format an array of timestamps. | |
static | get_user_dates_parameters () |
Returns description of get_user_dates parameters. | |
static | get_user_dates_returns () |
Returns description of get_user_dates() result value. | |
static | update_inplace_editable ($component, $itemtype, $itemid, $value) |
Update any component's editable value assuming that component implements necessary callback. | |
static | update_inplace_editable_parameters () |
Parameters for function update_inplace_editable() | |
static | update_inplace_editable_returns () |
Return structure for update_inplace_editable() | |
|
static |
|
static |
Returns description of fetch_notifications() parameters.
external_function_parameters |
|
static |
Returns description of fetch_notifications() result value.
core_external\external_description |
|
static |
Format the received string parameters to be sent to the core get_string() function.
array | $stringparams |
object|string |
|
static |
Return all lang strings of a component - call to core get_component_strings().
string | $component | component name |
array |
|
static |
Returns description of get_component_strings parameters.
external_function_parameters |
|
static |
Returns description of get_component_strings() result value.
core_external\external_description |
|
static |
Get a HTML fragment for inserting into something.
Initial use is for inserting mforms into a page using AJAX. This web service is designed to be called only via AJAX and not directly. Callbacks that are called by this web service are responsible for doing the appropriate security checks to access the information returned. This only does minimal validation on the context.
string | $component | Name of the component. |
string | $callback | Function callback name. |
int | $contextid | Context ID this fragment is in. |
array | $args | optional arguments for the callback. |
array | HTML and JavaScript fragments for insertion into stuff. |
|
static |
Returns description of get_fragment parameters.
external_function_parameters |
|
static |
Returns description of get_fragment() result value.
core_external\external_description |
|
static |
Return a core get_string() call.
string | $identifier | string identifier |
string | $component | string component |
array | $stringparams | the string params |
string |
|
static |
Returns description of get_string parameters.
external_function_parameters |
|
static |
Returns description of get_string() result value.
core_external\external_description |
|
static |
Return multiple call to core get_string()
array | $strings | strings to translate |
array |
|
static |
Returns description of get_string parameters.
external_function_parameters |
|
static |
Returns description of get_string() result value.
core_external\external_description |
|
static |
Format an array of timestamps.
int | null | $contextid | The contenxt id |
string | null | $contextlevel | The context level |
int | null | $instanceid | The instnace id for the context level |
array | $timestamps | Timestamps to format |
array |
|
static |
Returns description of get_user_dates parameters.
external_function_parameters |
|
static |
Returns description of get_user_dates() result value.
core_external\external_description |
|
static |
Update any component's editable value assuming that component implements necessary callback.
string | $component | |
string | $itemtype | |
string | $itemid | |
string | $value |
|
static |
Parameters for function update_inplace_editable()
external_function_parameters |
|
static |
Return structure for update_inplace_editable()
core_external\external_description |