lib/SecurityOne.php
public function deserialize($array) {
        $this->user=@$array['user'];
        $this->fullName=@$array['name'];
        $this->uid=@$array['uid'];
        $this->group=@$array['group'];
        $this->role=@$array['role'];
        $this->status=@$array['status'];
        /* optional fields */
        $this->email=@$array['email'];
        $this->iduser=@$array['iduser'];
        $this->extraFields=@$array['extrafields'];
    }
public function deserialize($array) {
        $this->user=@$array['user'];
        $this->fullName=@$array['name'];
        $this->uid=@$array['uid'];
        $this->group=@$array['group'];
        $this->role=@$array['role'];
        $this->status=@$array['status'];
        /* optional fields */
        $this->email=@$array['email'];
        $this->iduser=@$array['iduser'];
        $this->extraFields=@$array['extrafields'];
    }
public function deserialize ( $ array ) { $ this -> user = @ $ array [ 'user' ] ; $ this -> fullName = @ $ array [ 'name' ] ; $ this -> uid = @ $ array [ 'uid' ] ; $ this -> group = @ $ array [ 'group' ] ; $ this -> role = @ $ array [ 'role' ] ; $ this -> status = @ $ array [ 'status' ] ; /* optional fields */ $ this -> email = @ $ array [ 'email' ] ; $ this -> iduser = @ $ array [ 'iduser' ] ; $ this -> extraFields = @ $ array [ 'extrafields' ] ; }
Set the current user by using an associative array
@param $array=['user'=>'','name'=>'','uid'=>'','group'=>[],role=>''
,'status'=>0,'email'=>'','iduser'=>0,'extrafields'=>[]]
Set the current user by using an associative array