@@ 173-179 (lines=7) @@ | ||
170 | { |
|
171 | $matches=false; |
|
172 | ||
173 | if(empty($this->chunks)){ |
|
174 | if($this->content){ |
|
175 | $this->chunks=[$this->content]; |
|
176 | } else { |
|
177 | return $this; |
|
178 | } |
|
179 | } |
|
180 | foreach($this->chunks as $id => $chunk){ |
|
181 | // |
|
182 | $keep_chunk=true; |
|
@@ 220-226 (lines=7) @@ | ||
217 | */ |
|
218 | public function parse_fom_chunks(string $pattern,bool $only_one=false, bool $restart=false): PfPageparser |
|
219 | { |
|
220 | if(empty($this->chunks)){ |
|
221 | if($this->content){ |
|
222 | $this->chunks=[$this->content]; |
|
223 | } else { |
|
224 | return $this; |
|
225 | } |
|
226 | } |
|
227 | if($restart or empty($this->parsed)){ |
|
228 | $items=&$this->chunks; |
|
229 | $this->parsed=[]; |