public function truncate()
    {
        foreach ($this->tables as $table) {
            $this->db->query("DELETE FROM $table");
        }

        $this->tables = array();
    }
public function truncate()
    {
        foreach ($this->tables as $table) {
            $this->db->query("DELETE FROM $table");
        }

        $this->tables = array();
    }
public function truncate ( ) { foreach ( $ this -> tables as $ table ) { $ this -> db -> query ( "DELETE FROM $table" ) ; } $ this -> tables = array ( ) ; }
Truncate a table.

@return void
Truncate a table .