|
url_select | $additionalnavitems |
| $additionalnavitems Any additional custom navigation elements to be injected into template.
|
|
string | $description |
| $description The description to be displayed.
|
|
bool | $hidecompletion |
| $hidecompletion Whether to show completion criteria, if available, or not
|
|
bool | $hideheader |
| $hideheader Whether or not to show the header
|
|
bool | $hideoverflow |
| $hideoverflow Whether to show the overflow data or not
|
|
moodle_page | $page |
| $page The current page we are looking at
|
|
string | $title |
| $title The title to be displayed in the header.
|
|
stdClass | $user |
| $user The user we are dealing with
|
|
◆ __construct()
core\output\activity_header::__construct |
( |
moodle_page | $page, |
|
|
stdClass | $user ) |
Constructor for activity_header.
- Parameters
-
◆ disable()
core\output\activity_header::disable |
( |
| ) |
|
Disable the activity header completely.
Use this if the page has some custom content, headings to be displayed.
◆ export_for_template()
core\output\activity_header::export_for_template |
( |
renderer_base | $output | ) |
|
◆ get_heading_level()
core\output\activity_header::get_heading_level |
( |
int | $defaultlevel = 2 | ) |
|
Get the heading level for a given heading depending on whether the theme's activity header displays a heading (usually the activity name).
- Parameters
-
int | $defaultlevel | The default heading level when the activity header does not display a heading. |
- Return values
-
◆ is_title_allowed()
core\output\activity_header::is_title_allowed |
( |
| ) |
|
Checks if the theme has specified titles to be displayed.
First checks if the current layout has the notitle option set. If it is, uses that option to decide whether the title is displayed. If not, then checks whether the theme has the notitle option set and uses that. If neither is set, the title is allowed by default.
- Return values
-
◆ set_additionalnavitems()
core\output\activity_header::set_additionalnavitems |
( |
url_select | $value | ) |
|
Sets the additionalnavitems class member variable.
- Parameters
-
◆ set_attrs()
core\output\activity_header::set_attrs |
( |
array | $config | ) |
|
Bulk set class member variables.
Only updates variables which have corresponding setters
- Parameters
-
mixed[] | $config | Array of variables to set, with keys being their name. Valid names/types as follows: 'hidecompletion' => bool 'additionalnavitems' => url_select 'hideoverflow' => bool 'title' => string 'description' => string |
◆ set_description()
core\output\activity_header::set_description |
( |
string | $value | ) |
|
Sets the description class member variable.
- Parameters
-
◆ set_hidecompletion()
core\output\activity_header::set_hidecompletion |
( |
bool | $value | ) |
|
Sets the hidecompletion class member variable.
- Parameters
-
◆ set_hideoverflow()
core\output\activity_header::set_hideoverflow |
( |
bool | $value | ) |
|
Sets the hideoverflow class member variable.
- Parameters
-
◆ set_title()
core\output\activity_header::set_title |
( |
string | $value | ) |
|
Sets the title class member variable.
- Parameters
-
◆ $description
string core\output\activity_header::$description |
|
protected |
$description The description to be displayed.
Defaults to activityrecord intro.
◆ $title
string core\output\activity_header::$title |
|
protected |
$title The title to be displayed in the header.
Defaults to activityrecord name.
The documentation for this class was generated from the following file:
- lib/classes/output/activity_header.php