| @@ 30-46 (lines=17) @@ | ||
| 27 | * |
|
| 28 | * @return JailObject[] |
|
| 29 | */ |
|
| 30 | public function getSiteMenu () |
|
| 31 | { |
|
| 32 | $jailedMenu = array(); |
|
| 33 | ||
| 34 | foreach ($this->siteMenu as $key => $value) |
|
| 35 | { |
|
| 36 | // If it's an array, it means the parent is hidden from the site menu therefore its children should be too |
|
| 37 | if (is_array($this->siteMenu[$key])) |
|
| 38 | { |
|
| 39 | continue; |
|
| 40 | } |
|
| 41 | ||
| 42 | $jailedMenu[$key] = $value->createJail(); |
|
| 43 | } |
|
| 44 | ||
| 45 | return $jailedMenu; |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @param PageView[] $pageViews |
|
| @@ 77-93 (lines=17) @@ | ||
| 74 | return $this->flatPages; |
|
| 75 | } |
|
| 76 | ||
| 77 | public function getJailedStaticPages () |
|
| 78 | { |
|
| 79 | $jailedObjects = array(); |
|
| 80 | ||
| 81 | foreach ($this->flatPages as $key => $value) |
|
| 82 | { |
|
| 83 | // If it's an array, it means the parent is hidden from the site menu therefore its children should be too |
|
| 84 | if (is_array($value)) |
|
| 85 | { |
|
| 86 | continue; |
|
| 87 | } |
|
| 88 | ||
| 89 | $jailedObjects[$key] = $value->createJail(); |
|
| 90 | } |
|
| 91 | ||
| 92 | return $jailedObjects; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * Go through all of the PageView directories and create a respective PageView for each and classify them as a |
|