/** * 建構元 */ public function __construct($PMS) { // 必先呼叫父類別建構元 parent::__construct($PMS); // 此處已不須手動註冊模組頁面,由父類別代勞 // 加入語言資源 $this->loadLanguage(); }
public function __construct($PMS) { parent::__construct($PMS); $this->BASEDIR = fullURL(); switch ($this->FEED_UPDATETYPE) { case 1: // MODULEPAGE $this->SELF = $this->BASEDIR . $this->getModulePageURL(); $this->FEED_STATUSFILE = __CLASS__ . '.tmp'; break; case 2: // Update on RegistAfterCommit $this->SELF = $this->BASEDIR . $this->FEED_CACHEFILE; break; } }
public function __construct($PMS) { parent::__construct($PMS); $lang = array('zh_TW' => array('modulename' => '劇情洩漏隱藏', 'neta_notice_label' => '這篇文章可能含有劇情洩漏,要閱讀全文請按下<a href="#">此處</a>展開。', 'postinfo_usage' => '<li><b>要捏他,請在內文使用<span style="color:blue;">%s</span>標籤註明劇情洩漏!</b></li>'), 'en_US' => array('modulename' => 'Hidden Spoilers', 'neta_notice_label' => 'The content may contain spoilers. To view the full article, press <a href="#">HERE</a> to expand.', 'postinfo_usage' => '<li><b>Use <span style="color:blue;">%s</span> tag in content for spoiler alert!</b></li>')); $this->attachLanguage($lang, 'en_US'); }
public function __construct($PMS) { parent::__construct($PMS); $this->attachLanguage(array('zh_TW' => array('modulename' => '討論串列表', 'no_title' => '發文不可以沒有標題喔', 'link' => '主題列表', 'main_title' => '主題一覽', 'page_title' => '列表模式', 'date' => '日期'), 'en_US' => array('modulename' => 'Thread list', 'no_title' => 'We do NOT accept a post which is no title.', 'link' => 'Thread List', 'main_title' => 'Thread overview', 'page_title' => 'List mode', 'date' => 'Date')), 'en_US'); }
public function __construct($PMS) { parent::__construct($PMS); $this->mypage = $this->getModulePageURL(); }
public function __construct($PMS) { parent::__construct($PMS); }
public function __construct($PMS) { parent::__construct($PMS); $this->loadLanguage(); // 載入語言檔 }