コード例 #1
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->layout->startCapture('content');
     Swat::displayInlineJavaScript($this->getInlineJavaScript());
     $this->layout->endCapture();
 }
コード例 #2
0
ファイル: CMEQuizPage.php プロジェクト: nrfredrickson/Cme
 protected function buildInternal()
 {
     parent::buildInternal();
     if ($this->isComplete()) {
         $this->buildQuizResponse();
     } else {
         ob_start();
         $this->displayQuizDetailsIncomplete();
         $content_block = $this->ui->getWidget('quiz_content');
         $content_block->content = ob_get_clean();
         $content_block->content_type = 'text/xml';
     }
 }