Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Represents multiple availability messages. More...
Public Member Functions | |
__construct ($root, $andoperator, $treehidden, array $items) | |
Constructor. | |
Represents multiple availability messages.
These are messages like 'Not available until <date>'. This class includes multiple messages so that they can be rendered into a combined display, e.g. using bulleted lists.
The tree structure of this object matches that of the availability restrictions.
core_availability_multiple_messages::__construct | ( | $root, | |
$andoperator, | |||
$treehidden, | |||
array | $items ) |
Constructor.
bool | $root | True if this object represents the root of the tree |
bool | $andoperator | True if items use the AND operator (false = OR) |
bool | $treehidden | True if this part of the tree is marked 'hide entirely' for non-matching users |
array | $items | Array of items (may be string or this type) |