19 declare(strict_types=1);
39 $this->type = $a_type;
40 $this->list_item = [];
45 reset($this->list_item);
50 return current($this->list_item);
53 public function key(): string
55 return key($this->list_item);
58 public function next(): void
60 next($this->list_item);
65 return key($this->list_item) !==
null;
70 return count($this->list_item);
74 public function get(): array
82 foreach ($this->
get() as $item) {
83 if ($counter++ == $a_pos) {
98 foreach ($other_list->
get() as $new_date) {
99 $this->
add($new_date);
106 if (isset($this->list_item[$unix_remove])) {
107 unset($this->list_item[$unix_remove]);
113 foreach ($this->list_item as $key => $dt) {
115 unset($this->list_item[$key]);
122 ksort($this->list_item, SORT_NUMERIC);
128 foreach ($this->
get() as $date) {
get(int $a_format, string $a_format_str='', string $a_tz='')
get formatted date
merge(ilDateList $other_list)
removeByDAY(ilDateTime $remove)
getAtPosition(int $a_pos)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _equals(ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='')
Check if two date are equal.