53        $this->list_item = array();
 
   63        reset($this->list_item);
 
   72        return current($this->list_item);
 
   81        return key($this->list_item);
 
   90        return next($this->list_item);
 
   99        return $this->
current() !== 
false;
 
  109    public function get()
 
  111        return $this->list_item ? $this->list_item : array();
 
  124        foreach ($this->
get() as $item) {
 
  125            if ($counter++ == $a_pos) {
 
  138    public function add($date)
 
  143        $this->list_item[(string) $date->get(
IL_CAL_UNIX)] = clone $date;
 
  155        foreach ($other_list->
get() as $new_date) {
 
  156            $this->
add($new_date);
 
  170        if (isset($this->list_item[$unix_remove])) {
 
  171            unset($this->list_item[$unix_remove]);
 
  178        foreach ($this->list_item as 
$key => $dt) {
 
  180                unset($this->list_item[
$key]);
 
  194        return ksort($this->list_item, SORT_NUMERIC);
 
  206        foreach ($this->
get() as $date) {
 
An exception for terminatinating execution or to throw for unit testing.
removeByDAY(ilDateTime $remove)
current()
Iterator Current.
add($date)
add a date to the date list
merge(ilDateList $other_list)
Merge two lists.
__construct($a_type)
Constructor.
getAtPosition($a_pos)
get item at specific position
@classDescription Date and time handling
static _equals(ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='')
Check if two date are equal.