public function isDataboxAvailable(\databox $databox)
    {
        if (!$this->isRestricted()) {
            return true;
        }

        return in_array($databox->get_sbas_id(), $this->availableDataboxes, true);
    }
public function isDataboxAvailable(\databox $databox)
    {
        if (!$this->isRestricted()) {
            return true;
        }

        return in_array($databox->get_sbas_id(), $this->availableDataboxes, true);
    }
public function isDataboxAvailable ( \ databox $ databox ) { if ( ! $ this -> isRestricted ( ) ) { return true ; } return in_array ( $ databox -> get_sbas_id ( ) , $ this -> availableDataboxes , true ) ; }
Returns true if a databox is available given a configuration.

@param \databox $databox

@return bool
Returns true if a databox is available given a configuration .