예제 #1
0
 function init()
 {
     parent::init();
     $this->onlyEditable($this->api->getAccessLevel());
     /*
             if($this->api->auth){
        $al=$this->api->auth->get('access_level');
     
        if($al==0){
            $this->addCondition('email',$this->api->auth->get('email'));
            $this->getField('email')->readonly(true);
            $this->getField('access_level')->destroy();
        }
        elseif($al==9){
            $d=explode('@',$this->api->auth->get('email'));
            $this->addCondition('domain',$d[1]);
        }elseif($al!=99){
            throw $this->exception('Unknown user level')
                ->addMoreInfo('users level',$al);
        }
             }
     */
 }
예제 #2
0
파일: Model_Client.php 프로젝트: atk4/data
 public function init()
 {
     parent::init();
     $this->addField('order', ['default' => '10']);
 }
예제 #3
0
 function init()
 {
     parent::init();
     $this->addCondition('access_level', 9);
 }
예제 #4
0
파일: WebsiteUser.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->addCondition('type', 'WebsiteUser');
 }
예제 #5
0
파일: Me.php 프로젝트: vikash124/atk4-web
 function init()
 {
     parent::init();
     $this->addCondition('id', $this->api->getUserID());
 }
예제 #6
0
파일: AdminUser.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->addCondition('type', 'AdminUser');
 }
예제 #7
0
파일: Active.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->addCondition('status', 'Active');
 }
예제 #8
0
파일: SuperUser.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->addCondition('scope', 'SuperUser');
 }