|
Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250711) (5f47dc23ffc)
|
Renderable for the main page header. More...
Public Member Functions | |
| __construct ($heading=null, $headinglevel=1, $imagedata=null, $additionalbuttons=null, $prefix=null) | |
| Constructor. | |
Public Attributes | |
| array | $additionalbuttons |
| $additionalbuttons Additional buttons for the header e.g. | |
| string | $heading |
| $heading Main heading. | |
| int | $headinglevel |
| $headinglevel Main heading 'h' tag level. | |
| string null | $imagedata |
| $imagedata HTML code for the picture in the page header. | |
| string | $prefix |
| $prefix A string that is before the title. | |
Protected Member Functions | |
| format_button_images () | |
| Adds an array element for a formatted image. | |
Renderable for the main page header.
| context_header::__construct | ( | $heading = null, | |
| $headinglevel = 1, | |||
| $imagedata = null, | |||
| $additionalbuttons = null, | |||
| $prefix = null ) |
Constructor.
| string | $heading | Main heading data. |
| int | $headinglevel | Main heading 'h' tag level. |
| string | null | $imagedata | HTML code for the picture in the page header. |
| string | $additionalbuttons | Buttons for the header e.g. Messaging button for the user header. |
| string | $prefix | Text that precedes the heading. |
| array context_header::$additionalbuttons |
$additionalbuttons Additional buttons for the header e.g.
Messaging button for the user header. array elements - title => alternate text for the image, or if no image is available the button text. url => Link for the button to head to. Should be a moodle_url. image => location to the image, or name of the image in /pix/t/{image name}. linkattributes => additional attributes for the element. page => page object. Don't include if the image is an external image.