Lines Matching refs:items
31 $items = $this->mergePagesAndMedia($pages, $media);
32 $items = $this->sortMediaAfterPages($items);
34 … $html = html_buildlist($items, 'idx', [$this, 'listItemCallback'], [$this, 'liCallback'], true);
55 … * @param array $items list of items to be sorted, consisting both of directories, pages and media
58 protected function sortMediaAfterPages(array $items) { argument
59 $numberOfItems = count($items);
61 if (empty($items)) {
62 return $items;
68 $item1 = $items[$count];
69 $item2 = $items[$count + 1];
72 $items[$count] = $item2;
73 $items[$count + 1] = $temp;
87 return $items;
150 $items = [];
154 $items[] = $page;
157 $items[] = $page;
163 $items[] = $mediaFile;
169 $items = array_merge($items, $unhandledMediaFiles);
170 return $items;