protected function _setPreHook($m, $mc, $mca) { $prehook = Wekit::V('prehook'); PwHook::preset($prehook['ALL']); PwHook::preset($prehook[Wekit::getLoginUser()->isExists() ? 'LOGIN' : 'UNLOGIN']); if (isset($prehook[$m])) { PwHook::preset($prehook[$m]); } if (isset($prehook[$mc])) { PwHook::preset($prehook[$mc]); } if (isset($prehook[$mca])) { PwHook::preset($prehook[$mca]); } }