Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(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.

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

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.

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