irm-1.6-b3/MDB/Modules/Manager/mssql.php
/**
     * list all tables in the current database
     *
     * @param object    $db        database object that is extended by this class
     * @return mixed data array on success, a MDB error on failure
     * @access public
     **/
list all tables in the current database
@param object    $db        database object that is extended by this class
@return mixed data array on success, a MDB error on failure
@access public
list all tables in the current database @param object $db database object that is extended by this class @return mixed data array on success a MDB error on failure @access public
function listTables(&$db)
    {
        $query = 'EXECUTE sp_tables @table_type = "\'TABLE\'"';
        $table_names = $db->queryCol($query, null, 2);
        if (MDB::isError($table_names)) {
            return($table_names);
        }
        $tables = array();
        for ($i = 0, $j = count($table_names); $i <$j; ++$i) {
            if (!$this->_isSequenceName($db, $table_names[$i])) {
                $tables[] = $table_names[$i];
            }
        }
        return($tables);
    }
function listTables ( & $ db ) { $ query = 'EXECUTE sp_tables @table_type = "\'TABLE\'"' ; $ table_names = $ db -> queryCol ( $ query , null , 2 ) ; if ( MDB :: isError ( $ table_names ) ) { return ( $ table_names ) ; } $ tables = array ( ) ; for ( $ i = 0 , $ j = count ( $ table_names ) ; $ i < $ j ; ++ $ i ) { if ( ! $ this -> _isSequenceName ( $ db , $ table_names [ $ i ] ) ) { $ tables [ ] = $ table_names [ $ i ] ; } } return ( $ tables ) ; }
list all tables in the current database
 @param object    $db        database object that is extended by this class
 @return mixed data array on success, a MDB error on failure
 @access public
list all tables in the current database @param object $db database object that is extended by this class @return mixed data array on success a MDB error on failure @access public