library/database/class.sqldriver.php
public function EmptyTable($Table = '') {
      if ($Table == '') {
         if (!isset($this->_Froms[0]))
            return FALSE;

         $Table = $this->_Froms[0];
      } else {
         $Table = $this->EscapeIdentifier($this->Database->DatabasePrefix.$Table);
      }


      $Sql = $this->GetDelete($Table);
      
      return $this->Query($Sql, 'delete');
   }
public function EmptyTable($Table = '') {
      if ($Table == '') {
         if (!isset($this->_Froms[0]))
            return FALSE;

         $Table = $this->_Froms[0];
      } else {
         $Table = $this->EscapeIdentifier($this->Database->DatabasePrefix.$Table);
      }


      $Sql = $this->GetDelete($Table);
      
      return $this->Query($Sql, 'delete');
   }
public function EmptyTable ( $ Table = '' ) { if ( $ Table == '' ) { if ( ! isset ( $ this -> _Froms [ 0 ] ) ) return FALSE ; $ Table = $ this -> _Froms [ 0 ] ; } else { $ Table = $ this -> EscapeIdentifier ( $ this -> Database -> DatabasePrefix . $ Table ) ; } $ Sql = $ this -> GetDelete ( $ Table ) ; return $ this -> Query ( $ Sql , 'delete' ) ; }
Removes all data from a table.

@param string $Table The table to empty.
Removes all data from a table .