Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

This is the external API for blogs.

Copyright: 2018 Juan Leyva
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 291 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: external  - X-Ref

This is the external API for blogs.

validate_access_and_filters($rawwsfilters)   X-Ref
Validate access to the blog and the filters to apply when listing entries.

param: array  $rawwsfilters array containing the filters in WS format
return: array  context, filters to apply and the calculated courseid and user

get_entries_parameters()   X-Ref
Returns description of get_entries() parameters.

return: external_function_parameters

get_entries($filters = array()   X-Ref
Return blog entries.

param: array $filters the parameters to filter the blog listing
param: int $page the blog page to return
param: int $perpage the number of posts to return per page
return: array with the blog entries and warnings

get_entries_returns()   X-Ref
Returns description of get_entries() result value.

return: external_description

view_entries_parameters()   X-Ref
Returns description of view_entries() parameters.

return: external_function_parameters

view_entries($filters = array()   X-Ref
Trigger the blog_entries_viewed event.

param: array $filters the parameters used in the filter of get_entries
return: array with status result and warnings

view_entries_returns()   X-Ref
Returns description of view_entries() result value.

return: external_description