public function __construct($PMS) { // 儲存 $PMS 參考 if (self::$PMS == null) { self::$PMS = $PMS; } $this->clazz = get_class($this); // 自動註冊模組頁面 if (method_exists($this, 'ModulePage')) { $PMS->hookModuleMethod('ModulePage', $this->clazz); } }