library/database/class.sqldriver.php
public function FetchTables($LimitToPrefix = FALSE) {
      $Sql = $this->FetchTableSql($LimitToPrefix);
      $Data = $this->Query($Sql);
      $Return = array();
      foreach($Data->ResultArray() as $Row) {
         if (isset($Row['TABLE_NAME']))
            $Return[] = $Row['TABLE_NAME'];
         else
            $Return[] = array_shift($Row);
      }

      return $Return;
   }
public function FetchTables($LimitToPrefix = FALSE) {
      $Sql = $this->FetchTableSql($LimitToPrefix);
      $Data = $this->Query($Sql);
      $Return = array();
      foreach($Data->ResultArray() as $Row) {
         if (isset($Row['TABLE_NAME']))
            $Return[] = $Row['TABLE_NAME'];
         else
            $Return[] = array_shift($Row);
      }

      return $Return;
   }
public function FetchTables ( $ LimitToPrefix = FALSE ) { $ Sql = $ this -> FetchTableSql ( $ LimitToPrefix ) ; $ Data = $ this -> Query ( $ Sql ) ; $ Return = array ( ) ; foreach ( $ Data -> ResultArray ( ) as $ Row ) { if ( isset ( $ Row [ 'TABLE_NAME' ] ) ) $ Return [ ] = $ Row [ 'TABLE_NAME' ] ; else $ Return [ ] = array_shift ( $ Row ) ; } return $ Return ; }
Returns an array containing table names in the database.
@param mixed $LimitToPrefix Whether or not to limit the search to tables with the database prefix or a specific table name. The following types can be given for this parameter:
- <b>TRUE</b>: The search will be limited to the database prefix.
- <b>FALSE</b>: All tables will be fetched. Default.
- <b>string</b>: The search will be limited to a like clause. The ':_' will be replaced with the database prefix.
@return array
Returns an array containing table names in the database .