protected function buildInternal() { parent::buildInternal(); $this->layout->startCapture('content'); Swat::displayInlineJavaScript($this->getInlineJavaScript()); $this->layout->endCapture(); }
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'; } }