@@ 277-287 (lines=11) @@ | ||
274 | return $this->rss_items[0]; |
|
275 | } |
|
276 | ||
277 | public function call($template, $args=array()) { |
|
278 | $current = $this->current(); |
|
279 | if (!$current) { // feed is either not yet initialized or ended, in both cases the following line has the correct result |
|
280 | $current = $this->next(); |
|
281 | } |
|
282 | if ($current) { |
|
283 | $args['item'] = $current; |
|
284 | $result = $this->object->call($template, $args); |
|
285 | } |
|
286 | return $result; |
|
287 | } |
|
288 | ||
289 | public function count() { |
|
290 | $this->reset(); |
@@ 234-241 (lines=8) @@ | ||
231 | return $this->readLine; |
|
232 | } |
|
233 | ||
234 | public function call($template, $args=Array()) { |
|
235 | $current = $this->current(); |
|
236 | if ($current) { |
|
237 | $args['item'] = $current; |
|
238 | $result = $this->object->call($template, $args); |
|
239 | } |
|
240 | return $result; |
|
241 | } |
|
242 | ||
243 | public function count() { |
|
244 | $this->reset(); |