>>>>>> 学院 ======= >>>>>>> 学院 >>>>>>> 学院 ======= >>>>>>> merge ======= >>>>>>> merge ======= ======= >>>>>>> 学院 >>>>>>> 学院 // <<<<<<< HEAD // ======= // ======= ======= // xueyuan >>>>>>> merge // // >>>>>>> 学院 >>>>>>> 学院 // // /** * 依据opecode=> Proc模块名称 * @param type $ope * @return string * @author gwang */ public static function getProc($ope) { $r = new \ReflectionClass(__CLASS__); # 新建反射对象 $procs = array_flip($r->getConstants()); # 提取操作码到数组中 if (!isset($procs[$ope])) { # 找不到 return 'err'; # 返回固定的字符串: err } return __NAMESPACE__ . '\\' . $procs[$ope] . 'Proc'; # 拼装处理模块的名称 } // }