当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminbaseAction::_initialize方法代码示例

本文整理汇总了PHP中AdminbaseAction::_initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminbaseAction::_initialize方法的具体用法?PHP AdminbaseAction::_initialize怎么用?PHP AdminbaseAction::_initialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AdminbaseAction的用法示例。


在下文中一共展示了AdminbaseAction::_initialize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: D

 function _initialize()
 {
     parent::_initialize();
     $this->posts_obj = D("Posts");
     $this->terms_obj = D("Terms");
     $this->terms_relationship = D("TermRelationships");
 }
开发者ID:Nightchen0521,项目名称:cmf,代码行数:7,代码来源:PostAction.class.php

示例2:

 function _initialize()
 {
     parent::_initialize();
     $this->filepath = YOURPHP_PATH . 'Template/' . $this->sysConfig['DEFAULT_THEME'] . '/';
     $_GET['folder'] = str_replace('../', "", $_GET['folder']);
     $_REQUEST['file'] = str_replace('./', "", $_REQUEST['file']);
 }
开发者ID:bossyuetao,项目名称:yuephp,代码行数:7,代码来源:TemplateAction.class.php

示例3: _initialize

 protected function _initialize()
 {
     parent::_initialize();
     $this->Role = D("Role");
     $this->Role_user = M("Role_user");
     $this->User = D("User");
     //判断是否是门店用户登录
     $singleMendian = false;
     $this->role_id = session("roleid");
     $this->mendian = 0;
     if ($this->role_id != 1) {
         $condition['id'] = $this->role_id;
         $thisRole = $this->Role->where($condition)->find();
         $newMendian = $thisRole['mendian'];
         if ($newMendian != 0) {
             $this->mendian = $newMendian;
             $this->singleMendian = true;
             $this->isMendianAdmin = $thisRole['role_type'] == 1 ? true : false;
         }
     }
     if ($this->singleMendian && !$this->isMendianAdmin) {
         $this->error("您没有权限审核!");
     }
     if ($this->isMendianAdmin) {
         $role = $this->Role->where(array('mendian' => $this->mendian))->select();
         $role_id_list = array();
         foreach ($role as $key => $value) {
             $role_id_list[] = $value['id'];
         }
         $user = $this->User->where(array('role_id' => array('IN', $role_id_list)))->select();
         foreach ($user as $key => $value) {
             $this->mendian_user_id[] = $value['id'];
         }
     }
 }
开发者ID:NeilFee,项目名称:vipxinbaigo,代码行数:35,代码来源:CheckAction.class.php

示例4: D

 function _initialize()
 {
     parent::_initialize();
     $this->modelfield = D("Model_field");
     //字段类型存放目录
     $this->fields = C("SHUIPF_FIELDS_PATH");
 }
开发者ID:NeilFee,项目名称:vipxinbaigo,代码行数:7,代码来源:FieldAction.class.php

示例5:

 function _initialize()
 {
     parent::_initialize();
     $this->Tplpath = TMPL_PATH . '/Home/' . $this->sysConfig['DEFAULT_THEME'] . '/';
     //$this->Flashpath = TMPL_PATH.$this->sysConfig['DEFAULT_THEME'].'/Public/flash/';
     $this->Xmlpath = TMPL_PATH . '/Home/' . $this->sysConfig['DEFAULT_THEME'] . '/Public/xml/';
 }
开发者ID:yunsite,项目名称:yourphpcms,代码行数:7,代码来源:SlideAction.class.php

示例6: _initialize

 public function _initialize()
 {
     parent::_initialize();
     //取得分类信息
     $typedata = M("Terms")->where(array("module" => "censor"))->select();
     $this->assign("typedata", $typedata);
 }
开发者ID:NeilFee,项目名称:vipxinbaigo,代码行数:7,代码来源:CensorAction.class.php

示例7:

 function _initialize()
 {
     parent::_initialize();
     $this->filepath = TMPL_PATH . 'Home/' . $this->sysConfig['DEFAULT_THEME'] . '/';
     $this->publicpath = TMPL_PATH . 'Home/' . $this->sysConfig['DEFAULT_THEME'] . '/Public/';
     $this->tplpath = TMPL_PATH . 'Home/';
 }
开发者ID:anywn3773,项目名称:gzsrex,代码行数:7,代码来源:ThemeAction.class.php

示例8: D

 function _initialize()
 {
     parent::_initialize();
     $this->dao = D('User');
     $this->usergroup = F('Role');
     $this->assign('usergroup', $this->usergroup);
 }
开发者ID:JavaAFei,项目名称:yun001,代码行数:7,代码来源:UserAction.class.php

示例9: _initialize

 protected function _initialize()
 {
     parent::_initialize();
     import('Url');
     $this->Url = get_instance_of('Url');
     load("@.iconvfunc");
 }
开发者ID:NeilFee,项目名称:vipxinbaigo,代码行数:7,代码来源:CategoryAction.class.php

示例10: D

 function _initialize()
 {
     parent::_initialize();
     $this->goods_obj = D("Goods");
     $this->terms_obj = D("Terms");
     $this->terms_relationship = D("TermRelationships");
 }
开发者ID:it114,项目名称:public,代码行数:7,代码来源:IndexadminAction.class.php

示例11: D

 function _initialize()
 {
     parent::_initialize();
     $this->dao = D('Admin/module');
     $this->Role = F('Role');
     $this->assign('Role', $this->Role);
 }
开发者ID:JavaAFei,项目名称:yun001,代码行数:7,代码来源:ModuleAction.class.php

示例12: C

 function _initialize()
 {
     parent::_initialize();
     //设置生成静态后缀为空,按URL规则生成相应后缀
     C('HTML_FILE_SUFFIX', "");
     //跳转时间
     $this->assign("waitSecond", 2000);
     $this->model = F("Model");
     //栏目ID
     $this->catid = I('request.catid', 0, 'intval');
     //所有的权限 都分为 add(添加) edit(编辑) delete(删除) index(默认操作) listorder(排序) remove(移动文章) push(推送)
     //权限判断  如果方法是以 public_开头的,也不验证权限
     $ADMIN_AUTH_KEY = session(C("ADMIN_AUTH_KEY"));
     //非超级管理员需要进行权限控制
     if (empty($ADMIN_AUTH_KEY) || $ADMIN_AUTH_KEY == false) {
         //如果是public_开头的方法通过验证
         if (strpos(ACTION_NAME, 'public_') === false && ACTION_NAME != "index") {
             //操作
             $action = getCategory($this->catid, 'type') == 0 ? ACTION_NAME : 'init';
             if ($action == "classlist") {
                 $action = "init";
             }
             $priv_datas = M("Category_priv")->where(array('catid' => $this->catid, 'is_admin' => 1, 'roleid' => session('roleid'), 'action' => $action))->select();
             if (!$priv_datas) {
                 $this->error("您没有操作该项的权限!");
             }
         }
     }
     import('Form');
     if (isset($_GET['catid']) && empty($this->model[getCategory($this->catid, 'modelid')]) && getCategory($this->catid, 'type') == 0) {
         $this->error("模型或者栏目不存在!!");
     }
 }
开发者ID:NeilFee,项目名称:vipxinbaigo,代码行数:33,代码来源:ContentAction.class.php

示例13: D

 function _initialize()
 {
     parent::_initialize();
     $this->modelfield = D("Model_field");
     //字段类型存放目录
     $this->fields = C("SHUIPF_FIELDS_PATH");
     $this->assign("show_header", true);
 }
开发者ID:BGCX262,项目名称:ztoa-svn-to-git,代码行数:8,代码来源:Sitemodel_fieldAction.class.php

示例14: unset

 function _initialize()
 {
     parent::_initialize();
     unset($_POST['status']);
     unset($_POST['groupid']);
     unset($_POST['amount']);
     unset($_POST['point']);
 }
开发者ID:anywn3773,项目名称:gzsrex,代码行数:8,代码来源:IndexAction.class.php

示例15: glob

 function _initialize()
 {
     parent::_initialize();
     $this->filepath = TEMPLATE_PATH . "Default/Vote/";
     $this->tp_Vote = str_replace($this->filepath, "", glob($this->filepath . "Index" . DIRECTORY_SEPARATOR . 'vote*'));
     $this->tp_Vote = str_replace("Index" . DIRECTORY_SEPARATOR, "", $this->tp_Vote);
     C('HTML_FILE_SUFFIX', "");
 }
开发者ID:BGCX262,项目名称:ztoa-svn-to-git,代码行数:8,代码来源:VoteAction.class.php


注:本文中的AdminbaseAction::_initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。