public function truncate($table) {
        try{
            $this->sql = sprintf("TRUNCATE TABLE `%s`", SafeString::makeSafe($table));
            $this->executeQuery(false);
        }
        catch(\Exception $e) {
            $this->error($e);
        }
        return $this->numRows() ? true : false;
    }
public function truncate($table) {
        try{
            $this->sql = sprintf("TRUNCATE TABLE `%s`", SafeString::makeSafe($table));
            $this->executeQuery(false);
        }
        catch(\Exception $e) {
            $this->error($e);
        }
        return $this->numRows() ? true : false;
    }
public function truncate ( $ table ) { try { $ this -> sql = sprintf ( "TRUNCATE TABLE `%s`" , SafeString :: makeSafe ( $ table ) ) ; $ this -> executeQuery ( false ) ; } catch ( \ Exception $ e ) { $ this -> error ( $ e ) ; } return $ this -> numRows ( ) ? true : false ; }
Truncates a given table from the selected database so there are no values in the table
@param string $table This should be the table you wish to truncate
@return boolean If the table is emptied returns true else returns false
Truncates a given table from the selected database so there are no values in the table