public function getAll()
    {
        if (!$this->getResource()) {
            return [];
        }
        if ($this->useLocalResource) {
            return $this->localResource;
        }

        // If we're attempting to use a global resource but it doesn't exist, we've got a problem.
        if (!isset($GLOBALS[$this->getResource()])) {
            throw new \Parable\GetSet\Exception(
                "Attempting to use global resource '{$this->getResource()}' but resource not available."
            );
        }

        return $GLOBALS[$this->getResource()];
    }
public function getAll()
    {
        if (!$this->getResource()) {
            return [];
        }
        if ($this->useLocalResource) {
            return $this->localResource;
        }

        // If we're attempting to use a global resource but it doesn't exist, we've got a problem.
        if (!isset($GLOBALS[$this->getResource()])) {
            throw new \Parable\GetSet\Exception(
                "Attempting to use global resource '{$this->getResource()}' but resource not available."
            );
        }

        return $GLOBALS[$this->getResource()];
    }
public function getAll ( ) { if ( ! $ this -> getResource ( ) ) { return [ ] ; } if ( $ this -> useLocalResource ) { return $ this -> localResource ; } // If we're attempting to use a global resource but it doesn't exist, we've got a problem. if ( ! isset ( $ GLOBALS [ $ this -> getResource ( ) ] ) ) { throw new \ Parable \ GetSet \ Exception ( "Attempting to use global resource '{$this->getResource()}' but resource not available." ) ; } return $ GLOBALS [ $ this -> getResource ( ) ] ; }
Return all from resource if resource is set.

@return array
@throws \Parable\GetSet\Exception
Return all from resource if resource is set .