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


PHP Member::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($record = null, $isSingleton = false)
 {
     parent::__construct($record, $isSingleton);
     // we're explicitly setting our ID to -1. This is detected by the
     // permission service management code for public permission application
     $this->ID = -1;
 }
开发者ID:nyeholt,项目名称:silverstripe-restrictedobjects,代码行数:7,代码来源:PublicMember.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->isLogin();
     //登录验证
     $this->memberdata = $this->model($this->membermodel[$this->memberinfo['modelid']]['tablename']);
     $this->view->assign('navigation', array('edit' => array('name' => lang('m-inf-0'), 'url' => url('member/info/edit')), 'avatar' => array('name' => lang('m-inf-1'), 'url' => url('member/info/avatar')), 'password' => array('name' => lang('m-inf-2'), 'url' => url('member/info/password')), 'oauth' => array('name' => lang('m-inf-3'), 'url' => url('member/info/oauth')), 'favorite' => array('name' => lang('m-inf-4'), 'url' => url('member/info/favorite'))));
 }
开发者ID:rainbow88,项目名称:hummel,代码行数:8,代码来源:InfoController.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->isLogin();
     //登录验证
     if (!$this->memberinfo['status']) {
         $this->memberMsg(lang('m-con-0'));
     }
     //判断审核
     $this->nav = $navigation = array();
     $this->tree = $this->instance('tree');
     $this->form = $this->getFormMember();
     $this->group = $this->membergroup[$this->memberinfo['groupid']];
     $this->cmodel = $this->get_model();
     $this->emodel = $this->cache->get('model_member_extend');
     $this->tree->config(array('id' => 'catid', 'parent_id' => 'parentid', 'name' => 'catname'));
     if ($this->cmodel) {
         //内容模型菜单
         foreach ($this->cmodel as $t) {
             //投稿权限验证
             if ($this->memberPost($t['setting']['auth'])) {
                 continue;
             }
             $navigation[$t['modelid']] = array('name' => $t['modelname'], 'url' => url('member/content/', array('modelid' => $t['modelid'])));
             if (empty($this->nav)) {
                 $this->nav = url('member/content/', array('modelid' => $t['modelid']));
             }
         }
     }
     if ($this->form) {
         //表单模型菜单
         foreach ($this->form as $t) {
             $navigation[$t['tablename']] = array('name' => $t['joinname'] . $t['modelname'], 'url' => url('member/content/form', array('modelid' => $t['modelid'])));
             if (empty($this->nav)) {
                 $this->nav = url('member/content/form', array('modelid' => $t['modelid']));
             }
         }
     }
     if ($this->emodel) {
         //会员扩展模型菜单
         foreach ($this->emodel as $t) {
             //管理权限或者投稿权限验证
             if (!$t['setting']['member']['admin'] && $this->memberPost($t['setting']['auth'])) {
                 continue;
             }
             $navigation[$t['modelid']] = array('name' => $t['modelname'], 'url' => url('member/content/extend', array('modelid' => $t['modelid'])));
             if (empty($this->nav)) {
                 $this->nav = url('member/content/extend', array('modelid' => $t['modelid']));
             }
         }
     }
     $navigation['verify'] = array('name' => lang('a-mod-137'), 'url' => url('member/content/verify'));
     $navigation['attachment'] = array('name' => lang('m-con-5'), 'url' => url('member/content/attachment'));
     if (empty($this->nav)) {
         $this->nav = url('member/content/verify');
     }
     $this->view->assign('navigation', $navigation);
 }
开发者ID:rainbow88,项目名称:hummel,代码行数:58,代码来源:ContentController.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $model = $this->cache->get('model_member_extend');
     $this->modelid = (int) $this->get('modelid');
     $this->model = $model[$this->modelid];
     $this->touserid = (int) $this->get('touserid');
     if (empty($this->model)) {
         $this->msg(lang('a-mod-4'));
     }
     $this->table = $this->model($model[$this->modelid]['tablename']);
 }
开发者ID:rainbow88,项目名称:hummel,代码行数:12,代码来源:ExtendController.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->isLogin();
     //登录验证//判断审核
     if (!$this->memberinfo['status']) {
         $this->memberMsg(lang('m-con-0'));
     }
     $this->pms = $this->model('member_pms');
     $inbox = $this->pms->count('member_pms', 'id', 'hasview=0 AND toid=' . $this->memberinfo['id']);
     //未读收件箱短信条数
     $this->view->assign('navigation', array('send' => array('name' => lang('m-pms-0'), 'url' => url('member/pms/send')), 'inbox' => array('name' => lang('m-pms-1'), 'url' => url('member/pms/inbox')), 'outbox' => array('name' => lang('m-pms-2'), 'url' => url('member/pms/outbox'))));
     $this->view->assign('inbox', $inbox);
 }
开发者ID:rainbow88,项目名称:hummel,代码行数:14,代码来源:PmsController.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:kennyhonghui,项目名称:zhuoxi,代码行数:4,代码来源:LoginController.php

示例7: __construct

 /**
  * Creates a new routine
  *
  * @param  lang.mirrors.TypeMirror $mirror
  * @param  php.ReflectionMethod $reflect
  */
 public function __construct($mirror, $reflect)
 {
     parent::__construct($mirror, $reflect);
     $this->parameters = new Parameters($this, $reflect);
 }
开发者ID:xp-forge,项目名称:mirrors,代码行数:11,代码来源:Routine.class.php

示例8: __construct

 public function __construct(Evolution $evolution)
 {
     parent::__construct($evolution);
     $this->setGeneSize($this->getSudokuSize4());
 }
开发者ID:danlex,项目名称:gann,代码行数:5,代码来源:MemberSudoku.php

示例9: __construct

 public function __construct(Evolution $evolution)
 {
     parent::__construct($evolution);
     $geneSize = strlen($evolution->getTarget());
     $this->setGeneSize($geneSize);
 }
开发者ID:danlex,项目名称:gann,代码行数:6,代码来源:MemberHelloWorld.php


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