function toString() { return PukiWikiPlugin::do_plugin_convert($this->name, $this->param); }
function do_plugin_inline($name, $args, $body) { global $digest; // digestを退避 $_digest = $digest; $aryargs = $args !== '' ? PukiWikiFunc::csv_explode(',', $args) : array(); $aryargs[] =& $body; PukiWikiPlugin::do_plugin_init($name); $retvar = call_user_func_array('plugin_' . $name . '_inline', $aryargs); // digestを復元 $digest = $_digest; if ($retvar === FALSE) { return htmlspecialchars("&{$name}" . ($args ? "({$args})" : '') . ';'); } return $retvar; }
function toString() { $body = $this->body == '' ? '' : PukiWikiFunc::make_link($this->body); // プラグイン呼び出し if (PukiWikiPlugin::exist_plugin_inline($this->name)) { $str = PukiWikiPlugin::do_plugin_inline($this->name, $this->param, $body); if ($str !== FALSE) { return $str; } } // プラグインが存在しないか、変換にク敗 $body = $body == '' ? ';' : "\\{{$body}};"; return PukiWikiConfig::applyRules(htmlspecialchars('&' . $this->plain) . $body); }