public function on_sbas_where_i_am(ACL $ACL, Array $rights)
    {
        $this->sbas_restrictions = true;
        $databoxes = array_keys($ACL->get_granted_sbas($rights));

        if (count($this->sbas_ids) > 0)
            $this->sbas_ids = array_intersect($this->sbas_ids, $databoxes);
        else
            $this->sbas_ids = $databoxes;

        $this->total = $this->page = $this->total_page = null;

        return $this;
    }
public function on_sbas_where_i_am(ACL $ACL, Array $rights)
    {
        $this->sbas_restrictions = true;
        $databoxes = array_keys($ACL->get_granted_sbas($rights));

        if (count($this->sbas_ids) > 0)
            $this->sbas_ids = array_intersect($this->sbas_ids, $databoxes);
        else
            $this->sbas_ids = $databoxes;

        $this->total = $this->page = $this->total_page = null;

        return $this;
    }
public function on_sbas_where_i_am ( ACL $ ACL , Array $ rights ) { $ this -> sbas_restrictions = true ; $ databoxes = array_keys ( $ ACL -> get_granted_sbas ( $ rights ) ) ; if ( count ( $ this -> sbas_ids ) > 0 ) $ this -> sbas_ids = array_intersect ( $ this -> sbas_ids , $ databoxes ) ; else $ this -> sbas_ids = $ databoxes ; $ this -> total = $ this -> page = $ this -> total_page = null ; return $ this ; }
Restrict users on database with provided rights

@param ACL   $ACL
@param array $rights

@return $this
Restrict users on database with provided rights