コード例 #1
0
ファイル: BaseController.class.php プロジェクト: imbzd/sessdw
 public function __construct()
 {
     parent::__construct();
     //加载语言包
     $this->_loadLang();
     //输出系统配置
     $this->_assignConfig();
     //输出系统参数
     $this->_assignSystem();
     //输出框架参数
     $this->_assignAny();
     //记录请求日志
     $this->_accessLog();
 }
コード例 #2
0
ファイル: BaseController.class.php プロジェクト: imbzd/sessdw
 public function __construct()
 {
     parent::__construct();
     //加载语言包
     $this->_loadLang();
     //输出系统配置
     $this->_assignConfig();
     //输出系统参数
     $this->_assignSystem();
     //输出框架参数
     $this->_assignAny();
     //记录请求日志
     $this->_accessLog();
     //获取登录信息
     $this->_GSUserinfo();
     //输出导航栏目navflag标识
     $this->assign('navflag', $this->navflag);
 }
コード例 #3
0
ファイル: RestController.class.php プロジェクト: imbzd/sessdw
 /**
  * 架构函数
  * @access public
  */
 public function __construct()
 {
     // 资源类型检测
     if ('' == __EXT__) {
         // 自动检测资源类型
         $this->_type = $this->getAcceptType();
     } elseif (!in_array(__EXT__, $this->allowType)) {
         // 资源类型非法 则用默认资源类型访问
         $this->_type = $this->defaultType;
     } else {
         $this->_type = __EXT__;
     }
     // 请求方式检测
     $method = strtolower(REQUEST_METHOD);
     if (!in_array($method, $this->allowMethod)) {
         // 请求方式非法 则用默认请求方法
         $method = $this->defaultMethod;
     }
     $this->_method = $method;
     parent::__construct();
 }
コード例 #4
0
ファイル: BaseController.class.php プロジェクト: imbzd/sessdw
 public function __construct()
 {
     parent::__construct();
     //加载语言包
     $this->_loadLang();
     //输出系统配置
     $this->_assignConfig();
     //输出系统参数
     $this->_assignSystem();
     //输出框架参数
     $this->_assignAny();
     //记录请求日志
     $this->_accessLog();
     //获取登录信息
     $this->_GSUserinfo();
     //输出导航栏目navflag标识
     $this->assign('navflag', $this->navflag);
     //获取作业数量(未完成)
     $undoneworknum = D('Work')->getUndoneWorkNum($this->userinfo['userid']);
     $this->assign('undoneworknum', $undoneworknum);
 }
コード例 #5
0
ファイル: OrgController.class.php プロジェクト: imbzd/sessdw
 public function __construct()
 {
     parent::__construct();
 }