src/Liip/Drupal/Modules/Registry/Database/MySql.php
public function destroy()
    {
        // delete DB
        $sql = sprintf(
            'DROP TABLE `%s`;',
            $this->mysql->quote($this->section)
        );

        if (false === $this->mysql->exec($sql)) {

            $this->throwException(
                'Unable to delete the database: ',
                $this->mysql->errorInfo()
            );
        }

        $this->registry[$this->section] = array();
    }
public function destroy()
    {
        // delete DB
        $sql = sprintf(
            'DROP TABLE `%s`;',
            $this->mysql->quote($this->section)
        );

        if (false === $this->mysql->exec($sql)) {

            $this->throwException(
                'Unable to delete the database: ',
                $this->mysql->errorInfo()
            );
        }

        $this->registry[$this->section] = array();
    }
public function destroy ( ) { // delete DB $ sql = sprintf ( 'DROP TABLE `%s`;' , $ this -> mysql -> quote ( $ this -> section ) ) ; if ( false === $ this -> mysql -> exec ( $ sql ) ) { $ this -> throwException ( 'Unable to delete the database: ' , $ this -> mysql -> errorInfo ( ) ) ; } $ this -> registry [ $ this -> section ] = array ( ) ; }
Shall delete the current registry from the database.
@throws RegistryException in case the deletion of the database failed.
Shall delete the current registry from the database .