This is the external API for blogs.
More...
This is the external API for blogs.
- Copyright
- 2018 Juan Leyva
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_entries()
static core_blog\external::get_entries |
( |
| $filters = array(), |
|
|
| $page = 0, |
|
|
| $perpage = 10 ) |
|
static |
Return blog entries.
- Parameters
-
array | $filters | the parameters to filter the blog listing |
int | $page | the blog page to return |
int | $perpage | the number of posts to return per page |
- Return values
-
array | with the blog entries and warnings |
- Since
- Moodle 3.6
◆ get_entries_parameters()
static core_blog\external::get_entries_parameters |
( |
| ) |
|
|
static |
Returns description of get_entries() parameters.
- Return values
-
external_function_parameters | |
- Since
- Moodle 3.6
◆ get_entries_returns()
static core_blog\external::get_entries_returns |
( |
| ) |
|
|
static |
Returns description of get_entries() result value.
- Return values
-
- Since
- Moodle 3.6
◆ validate_access_and_filters()
static core_blog\external::validate_access_and_filters |
( |
| $rawwsfilters | ) |
|
|
staticprotected |
Validate access to the blog and the filters to apply when listing entries.
- Parameters
-
array | $rawwsfilters | array containing the filters in WS format |
- Return values
-
array | context, filters to apply and the calculated courseid and user |
- Since
- Moodle 3.6
◆ view_entries()
static core_blog\external::view_entries |
( |
| $filters = array() | ) |
|
|
static |
Trigger the blog_entries_viewed event.
- Parameters
-
array | $filters | the parameters used in the filter of get_entries |
- Return values
-
array | with status result and warnings |
- Since
- Moodle 3.6
◆ view_entries_parameters()
static core_blog\external::view_entries_parameters |
( |
| ) |
|
|
static |
Returns description of view_entries() parameters.
- Return values
-
external_function_parameters | |
- Since
- Moodle 3.6
◆ view_entries_returns()
static core_blog\external::view_entries_returns |
( |
| ) |
|
|
static |
Returns description of view_entries() result value.
- Return values
-
- Since
- Moodle 3.6
The documentation for this class was generated from the following file:
- blog/classes/external.php