/** * @brief 由子类的construct函数调用,初始化$this->objHook对象 * * @param string $actionName action名字符串与配置文件对应 * @see 各子类的__construct() * @author chenyijie * @date 2012/10/15 19:49:12 **/ protected function actionConstruct($actionName) { $arrHook = Saf_SmartMain::getHook(); if (count($arrHook) > 0 && isset($arrHook[$actionName])) { $hookClassName = $arrHook[$actionName]; if (class_exists($hookClassName)) { $this->objHook = new $hookClassName(); } else { Saf_SmartMain::setSafLog("class (" . $hookClassName . ") does not exist", 2); } } }