Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
mod_assign\output\assign_header Class Reference

This file contains the definition for the renderable assign header. More...

Inheritance diagram for mod_assign\output\assign_header:
renderable

Public Member Functions

 __construct (stdClass $assign, $context, $showintro, $coursemoduleid, $subpage='', $preface='', $postfix='', moodle_url $subpageurl=null, bool $activity=false)
 Constructor.
 

Public Attributes

bool $activity
 $activity optional show activity text.
 
stdClass $assign
 The assign record.
 
mixed $context
 context|null the context record.
 
int $coursemoduleid
 coursemoduleid The course module id.
 
string $postfix
 $postfix Optional postfix (text to show after the intro).
 
string $preface
 $preface Optional preface (text to show before the heading).
 
bool $showintro
 $showintro Show or hide the intro.
 
string $subpage
 $subpage Optional subpage (extra level in the breadcrumbs).
 
moodle_url null $subpageurl
 $subpageurl link for the sub page
 

Detailed Description

This file contains the definition for the renderable assign header.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

mod_assign\output\assign_header::__construct ( stdClass $assign,
$context,
$showintro,
$coursemoduleid,
$subpage = '',
$preface = '',
$postfix = '',
moodle_url $subpageurl = null,
bool $activity = false )

Constructor.

Parameters
stdClass$assignThe assign database record.
context | null$contextThe course module context.
bool$showintroShow or hide the intro.
int$coursemoduleidThe course module id.
string$subpageAn optional sub page in the navigation.
string$prefaceAn optional preface to show before the heading.
string$postfixAn optional postfix to show after the intro.
moodle_url | null$subpageurlAn optional sub page URL link for the subpage.
bool$activityOptional show activity text if true.

Member Data Documentation

◆ $assign

stdClass mod_assign\output\assign_header::$assign

The assign record.


◆ $context

mixed mod_assign\output\assign_header::$context

context|null the context record.



The documentation for this class was generated from the following file: