public function getViewNames()
    {
        $names = $this->query(
            'SELECT table_name FROM information_schema.tables WHERE table_schema=? AND table_type=?',
            array(
                $this->getTableSchema(),
                'VIEW'
            )
        );
        // Flatten array
        foreach ($names as &$name) {
            $name = $name['table_name'];
        }
        return $names;
    }
public function getViewNames()
    {
        $names = $this->query(
            'SELECT table_name FROM information_schema.tables WHERE table_schema=? AND table_type=?',
            array(
                $this->getTableSchema(),
                'VIEW'
            )
        );
        // Flatten array
        foreach ($names as &$name) {
            $name = $name['table_name'];
        }
        return $names;
    }
public function getViewNames ( ) { $ names = $ this -> query ( 'SELECT table_name FROM information_schema.tables WHERE table_schema=? AND table_type=?' , array ( $ this -> getTableSchema ( ) , 'VIEW' ) ) ; // Flatten array foreach ( $ names as & $ name ) { $ name = $ name [ 'table_name' ] ; } return $ names ; }
Return list of all view names

The default implementation queries information_schema. This can be
overridden where information_schema is not available.

@return array
Return list of all view names