original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Truncates a given table from the selected database so there are no values in the table