src/Liip/Drupal/Modules/Registry/Database/MySql.php
public function getContent($limit = 0)
    {
        $this->registry[$this->section] = parent::getContent();

        if (empty($this->registry[$this->section])) {

            $sql = sprintf('SELECT * FROM `%s`;', $this->mysql->quote($this->section));
            $result = $this->mysql->query($sql);

            if (false === $result) {

                $this->throwException(
                    'Failed to fetch information from the registry: ',
                    $this->mysql->errorInfo()
                );
            }

            $this->registry[$this->section] = $this->processResult($result->fetchAll(\PDO::FETCH_ASSOC));
        }

        return $this->registry[$this->section];
    }
public function getContent($limit = 0)
    {
        $this->registry[$this->section] = parent::getContent();

        if (empty($this->registry[$this->section])) {

            $sql = sprintf('SELECT * FROM `%s`;', $this->mysql->quote($this->section));
            $result = $this->mysql->query($sql);

            if (false === $result) {

                $this->throwException(
                    'Failed to fetch information from the registry: ',
                    $this->mysql->errorInfo()
                );
            }

            $this->registry[$this->section] = $this->processResult($result->fetchAll(\PDO::FETCH_ASSOC));
        }

        return $this->registry[$this->section];
    }
public function getContent ( $ limit = 0 ) { $ this -> registry [ $ this -> section ] = parent :: getContent ( ) ; if ( empty ( $ this -> registry [ $ this -> section ] ) ) { $ sql = sprintf ( 'SELECT * FROM `%s`;' , $ this -> mysql -> quote ( $ this -> section ) ) ; $ result = $ this -> mysql -> query ( $ sql ) ; if ( false === $ result ) { $ this -> throwException ( 'Failed to fetch information from the registry: ' , $ this -> mysql -> errorInfo ( ) ) ; } $ this -> registry [ $ this -> section ] = $ this -> processResult ( $ result -> fetchAll ( \ PDO :: FETCH_ASSOC ) ) ; } return $ this -> registry [ $ this -> section ] ; }
Provides the current content of the registry.


NOTICE:
Setting $limit to anything else than 0 (zero) currently not have any affect on the amount of returned results.
This functionality is due to be implemented.


@param integer $limit  Amount of documents to be returned in result set. If set to 0 (zero) all documents of the result set will be returned. Defaults to 0.

@throws \Liip\Drupal\Modules\Registry\RegistryException
@return array
Provides the current content of the registry .