@@ 235-246 (lines=12) @@ | ||
232 | * Get entries within the same folder |
|
233 | * @return absences_EntryIterator |
|
234 | */ |
|
235 | public function getFolderEntriesIterator() |
|
236 | { |
|
237 | if (!$this->folder) |
|
238 | { |
|
239 | return null; |
|
240 | } |
|
241 | ||
242 | $I = new absences_EntryIterator; |
|
243 | $I->folder = $this->folder; |
|
244 | ||
245 | return $I; |
|
246 | } |
|
247 | ||
248 | ||
249 | ||
@@ 1714-1730 (lines=17) @@ | ||
1711 | * Get the first entry in folder |
|
1712 | * @return absences_Entry |
|
1713 | */ |
|
1714 | public function getFolderFirst() |
|
1715 | { |
|
1716 | if (!$this->folder) |
|
1717 | { |
|
1718 | return null; |
|
1719 | } |
|
1720 | ||
1721 | $I = new absences_EntryIterator; |
|
1722 | $I->folder = $this->folder; |
|
1723 | ||
1724 | foreach($I as $first) |
|
1725 | { |
|
1726 | return $first; |
|
1727 | } |
|
1728 | ||
1729 | return null; |
|
1730 | } |
|
1731 | ||
1732 | ||
1733 | /** |