@@ 129-139 (lines=11) @@ | ||
126 | return $this; |
|
127 | } |
|
128 | ||
129 | public function getPart($part, $index=NULL) { |
|
130 | if($this->content instanceof HtmlViewContent){ |
|
131 | return $this->content->getPart($part,$index); |
|
132 | } |
|
133 | if (\array_key_exists($part, $this->content)) { |
|
134 | if (isset($index)) |
|
135 | return $this->content[$part][$index]; |
|
136 | return $this->content[$part]; |
|
137 | } |
|
138 | return NULL; |
|
139 | } |
|
140 | ||
141 | public function compile(JsUtils $js=NULL, &$view=NULL) { |
|
142 | //$this->content=JArray::sortAssociative($this->content, [ "header","meta","description","extra" ]); |
@@ 61-71 (lines=11) @@ | ||
58 | return $element; |
|
59 | } |
|
60 | ||
61 | private function getPart($part, $index=NULL) { |
|
62 | if($this->content instanceof HtmlViewContent){ |
|
63 | return $this->content->getPart($part,$index); |
|
64 | } |
|
65 | if (\array_key_exists($part, $this->content)) { |
|
66 | if (isset($index)) |
|
67 | return $this->content[$part][$index]; |
|
68 | return $this->content[$part]; |
|
69 | } |
|
70 | return NULL; |
|
71 | } |
|
72 | ||
73 | public function addHeader($header, $niveau=4, $type="page") { |
|
74 | if (!$header instanceof HtmlHeader) { |