Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Represents multiple availability messages. More...
Public Member Functions | |
__construct ($root, $andoperator, $treehidden, array $items) | |
Constructor. More... | |
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) |