Exemplo n.º 1
0
 /**
  * Initialises the renderer instance.
  * @param moodle_page $page
  * @param string $target
  * @throws coding_exception
  */
 public function __construct(moodle_page $page, $target) {
     if ($target !== RENDERER_TARGET_MAINTENANCE || $page->pagelayout !== 'maintenance') {
         throw new coding_exception('Invalid request for the maintenance renderer.');
     }
     parent::__construct($page, $target);
 }