|
@@ 1851-1853 (lines=3) @@
|
| 1848 |
|
if ($this->debug > 2) { |
| 1849 |
|
error_log('$index ' . $index); |
| 1850 |
|
} |
| 1851 |
|
if ($this->debug > 2) { |
| 1852 |
|
error_log('New LP - In learnpath::first() - No last item seen. New last = ' . $this->last . '(' . $this->ordered_items[$index] . ')', 0); |
| 1853 |
|
} |
| 1854 |
|
} |
| 1855 |
|
if ($this->debug > 2) { |
| 1856 |
|
error_log('New LP - In learnpath::first() - First item is ' . $this->get_current_item_id()); |
|
@@ 2022-2024 (lines=3) @@
|
| 2019 |
|
// TODO |
| 2020 |
|
$index = $this->index; |
| 2021 |
|
$index++; |
| 2022 |
|
if ($this->debug > 2) { |
| 2023 |
|
error_log('New LP - Now looking at ordered_items[' . ($index) . '] - type is ' . $this->items[$this->ordered_items[$index]]->type, 0); |
| 2024 |
|
} |
| 2025 |
|
while (!empty ($this->ordered_items[$index]) AND ($this->items[$this->ordered_items[$index]]->get_type() == 'dir' || $this->items[$this->ordered_items[$index]]->get_type() == 'dokeos_chapter') AND $index < $this->max_ordered_items) { |
| 2026 |
|
$index++; |
| 2027 |
|
if ($index == $this->max_ordered_items){ |