Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

File Size: 171 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

category_action_bar:: (4 methods):
  __construct()
  get_category_select()
  get_additional_category_options()
  export_for_template()


Class: category_action_bar  - X-Ref

Class responsible for generating the action bar (tertiary nav) elements in an individual category page

__construct(moodle_page $page, object $category, ?object $course = null, ?string $searchvalue = null)   X-Ref
Constructor category_action_bar

param: moodle_page $page The page object
param: object $category
param: object|null $course The course that we are generating the nav for
param: string|null $searchvalue

get_category_select(\renderer_base $output)   X-Ref
Gets the url_select to be displayed in the participants page if available.

return: object|null The content required to render the url_select
param: \renderer_base $output

get_additional_category_options()   X-Ref
Gets the additional options to be displayed within a 'More' dropdown in the tertiary navigation.
The predefined order defined by UX is:
- Add a course
- Add a sub cat
- Manage course
- Request a course
- Course pending approval

return: array

export_for_template(\renderer_base $output)   X-Ref
Export the content to be displayed on the category page.

return: array Consists of the following:
param: \renderer_base $output