function update($show, $arg) { $list = FuzzyLink::getinstance()->getpagelist($this->getcurrentPage()->getpagename()); $smarty = $this->getSmarty(); foreach ($list as $page) { if (!$page->equals($this->getcurrentPage())) { //現在のページは除外する。 $smarty->append('pagelist', $page->getpagename()); } } $this->setbody($smarty->fetch('maybe.tpl.htm')); }
public static function parse(&$str, $context) { $exp = FuzzyLink::getinstance()->getexpression(); if ($exp != '' && mb_ereg("^{$exp}", $str, $m)) { $str = _substr($str, strlen($m[0])); return new T_FuzzyLink($m[0], $context); } return null; }