/** * @param SJB_TemplateProcessor $tp */ function registerTags($tp) { $tp->unregisterPlugin('function', 'input'); $tp->unregisterPlugin('function', 'display'); $tp->registerPlugin('function', 'input', array(&$this, 'tpl_input')); $tp->registerPlugin('function', 'display', array(&$this, 'tpl_display')); $this->registerTemplateProcessor($tp); }
/** * @param SJB_TemplateProcessor $tp */ function registerTags(SJB_TemplateProcessor &$tp) { $tp->registerPlugin('block', 'fromName', array(&$this, 'parseLetterFromName')); $tp->registerPlugin('block', 'subject', array(&$this, 'parseLetterSubject')); $tp->registerPlugin('block', 'message', array(&$this, 'parseLetterMessage')); }
/** * @param SJB_TemplateProcessor $tp */ function registerTags($tp) { $this->template_processor = $tp; $tp->registerPlugin('function', "search", array($this, "tpl_search")); }