[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/availability/ -> renderer.php (summary)

Renderer for availability display.

Copyright: 2014 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 63 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_availability_renderer:: (1 method):
  multiple_messages()


Class: core_availability_renderer  - X-Ref

Renderer for availability display.

multiple_messages($root, $andoperator, $roothidden, array $messages)   X-Ref
Renders HTML for the result of two or more availability restriction
messages being combined in a list.

The supplied messages should already take account of the 'not' option,
e.g. an example message could be 'User profile field Department must
not be set to Maths'.

This function will not be called unless there are at least two messages.

param: bool $root True if this is a root-level list for an activity
param: bool $andoperator True if the messages are being combined as AND
param: bool $roothidden True if the root level should use 'hidden' message
param: array $messages Messages to render
return: string Combined HTML



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1