src/Liip/Drupal/Modules/Registry/Database/MySql.php
public function getContentByIds(array $identifiers)
    {
        $sql = sprintf(
            'SELECT * FROM %s WHERE entityId IN (`%s`);',
            $this->mysql->quote($this->section),
            implode('`,`', $identifiers)
        );
        $result = $this->mysql->query($sql);

        if (false === $result) {

            $this->throwException(
                'Error occurred while querying the registry: ',
                $this->mysql->errorInfo()
            );
        }

        $content = $result->fetchAll(\PDO::FETCH_ASSOC);
        $this->registry[$this->section] = array_merge($this->registry[$this->section], $content);

        return $content;
    }
public function getContentByIds(array $identifiers)
    {
        $sql = sprintf(
            'SELECT * FROM %s WHERE entityId IN (`%s`);',
            $this->mysql->quote($this->section),
            implode('`,`', $identifiers)
        );
        $result = $this->mysql->query($sql);

        if (false === $result) {

            $this->throwException(
                'Error occurred while querying the registry: ',
                $this->mysql->errorInfo()
            );
        }

        $content = $result->fetchAll(\PDO::FETCH_ASSOC);
        $this->registry[$this->section] = array_merge($this->registry[$this->section], $content);

        return $content;
    }
public function getContentByIds ( array $ identifiers ) { $ sql = sprintf ( 'SELECT * FROM %s WHERE entityId IN (`%s`);' , $ this -> mysql -> quote ( $ this -> section ) , implode ( '`,`' , $ identifiers ) ) ; $ result = $ this -> mysql -> query ( $ sql ) ; if ( false === $ result ) { $ this -> throwException ( 'Error occurred while querying the registry: ' , $ this -> mysql -> errorInfo ( ) ) ; } $ content = $ result -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; $ this -> registry [ $ this -> section ] = array_merge ( $ this -> registry [ $ this -> section ] , $ content ) ; return $ content ; }
Provides a set of registry items.

@param array $identifiers

@throws \Liip\Drupal\Modules\Registry\RegistryException
@return array
Provides a set of registry items .