コード例 #1
0
ファイル: Form.php プロジェクト: Maxlander/shixi
 /**
  * @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);
 }
コード例 #2
0
ファイル: Email.php プロジェクト: Maxlander/shixi
 /**
  * @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'));
 }
コード例 #3
0
ファイル: SearchFormBuilder.php プロジェクト: Maxlander/shixi
 /**
  * @param SJB_TemplateProcessor $tp
  */
 function registerTags($tp)
 {
     $this->template_processor = $tp;
     $tp->registerPlugin('function', "search", array($this, "tpl_search"));
 }