public function truncate()
    {
        $this->db->setQuery('TRUNCATE TABLE ' . $this->db->quoteName($this->getName()))->execute();

        return $this;
    }
public function truncate()
    {
        $this->db->setQuery('TRUNCATE TABLE ' . $this->db->quoteName($this->getName()))->execute();

        return $this;
    }
public function truncate ( ) { $ this -> db -> setQuery ( 'TRUNCATE TABLE ' . $ this -> db -> quoteName ( $ this -> getName ( ) ) ) -> execute ( ) ; return $ this ; }
Method to truncate a table.

@return  static

@since   2.0
@throws  \RuntimeException
Method to truncate a table .