* @access protected
* @see DB_common::getListOf()
*/
+
+ // }}}
+ // {{{ getSpecialQuery()
+
+
function getSpecialQuery($type)
{
switch ($type) {
return 'SELECT DISTINCT User FROM mysql.user';
case 'databases':
return 'SHOW DATABASES';
+ case 'views':
+ return "SELECT
+ distinct(TABLE_NAME)
+ FROM
+ information_schema.TABLES
+ WHERE
+ table_type = 'VIEW'
+ AND
+ TABLE_SCHEMA=DATABASE()
+ ";
+
default:
return null;
}
}
+
// }}}