src/Liip/Drupal/Modules/Registry/Database/MySql.php
public function register($identifier, $value)
    {
        parent::register($identifier, $value);

        $sql = sprintf(
            'INSERT INTO %s (`entityId`, `data`) set (`%s`, `%s`);',
            $this->mysql->quote($this->section),
            $this->mysql->quote($identifier),
            $this->decorator->normalizeValue($value)
        );
        $result = $this->mysql->query($sql);

        if (false === $result) {

            $this->registry[$this->section][$identifier] = null;

            $this->throwException(
                'Error occurred while registering an entity: ',
                $this->mysql->errorInfo()
            );
        }
    }
public function register($identifier, $value)
    {
        parent::register($identifier, $value);

        $sql = sprintf(
            'INSERT INTO %s (`entityId`, `data`) set (`%s`, `%s`);',
            $this->mysql->quote($this->section),
            $this->mysql->quote($identifier),
            $this->decorator->normalizeValue($value)
        );
        $result = $this->mysql->query($sql);

        if (false === $result) {

            $this->registry[$this->section][$identifier] = null;

            $this->throwException(
                'Error occurred while registering an entity: ',
                $this->mysql->errorInfo()
            );
        }
    }
public function register ( $ identifier , $ value ) { parent :: register ( $ identifier , $ value ) ; $ sql = sprintf ( 'INSERT INTO %s (`entityId`, `data`) set (`%s`, `%s`);' , $ this -> mysql -> quote ( $ this -> section ) , $ this -> mysql -> quote ( $ identifier ) , $ this -> decorator -> normalizeValue ( $ value ) ) ; $ result = $ this -> mysql -> query ( $ sql ) ; if ( false === $ result ) { $ this -> registry [ $ this -> section ] [ $ identifier ] = null ; $ this -> throwException ( 'Error occurred while registering an entity: ' , $ this -> mysql -> errorInfo ( ) ) ; } }
Registers the provided value.

@param string $identifier
@param string $value
Registers the provided value .