/** * Generate and set output to client * * @access public */ function output() { if ($this->inPopup) { $this->content = PopupWindowHelper::popupEmbed($this->content); } $this->embed($this->content, $this->hide_banner, $this->hide_footer, $this->hide_body); }
/** * Render the page body * @return string */ public function render() { if (claro_is_in_a_course()) { $this->assign('courseToolList', new CurrentCourseToolListBlock()); } if (!$this->claroBodyHidden) { $this->assign('claroBodyStart', true); $this->assign('claroBodyEnd', true); } else { $this->assign('claroBodyStart', false); $this->assign('claroBodyEnd', false); } // automatic since $this->content already exists // $this->assign('content', $this->getContent() ); if ($this->inPopup) { $this->hideCourseTitleAndTools(); $output = PopupWindowHelper::popupEmbed(parent::render()); } else { $output = parent::render(); } return $output; }