function update($show, $arg) { if ($arg == 'done') { $page = $this->getcurrentPage(); Renderer::getinstance()->setoption('plugin_trackback_pingurlrdf', $this->getpingurlrdf($page)); $list = $this->getlist($page); if (count($list) > 0) { $smarty = $this->getSmarty(); $smarty->assign('pagename', $page->getpagename()); $smarty->assign('trackback', $list); $this->setbody($smarty->fetch('list.tpl.htm')); } } }
/** * アプリケーションの実行。 */ function run() { try { //コントローラの本体処理実行前動作 foreach (Command::getCommands() as $cmd) { $cmd->doing(); } foreach (Plugin::getPlugins() as $plugin) { $plugin->doing(); } //本体処理実行 $ret = $this->controller->run(); //コントローラの本体処理実行後動作 foreach (Command::getCommands() as $cmd) { $cmd->done(); } foreach (Plugin::getPlugins() as $plugin) { $plugin->done(); } //レンダリング Renderer::getinstance()->render($ret); } catch (MyException $exc) { $text['title'] = 'error'; $text['body'] = $exc->getMessage(); Renderer::getinstance()->render($text); } }
function do_block($page, $param1, $param2) { $theme = htmlspecialchars(trim($param1)); Renderer::getinstance()->settheme($theme); return ''; }
function done() { if ($this->noindex) { Renderer::getinstance()->setheaderoption('command_noindex', '<meta name="robots" content="noindex">'); } }