@@ 414-431 (lines=18) @@ | ||
411 | return $content_items; |
|
412 | } |
|
413 | ||
414 | function _getRssBody($value) |
|
415 | { |
|
416 | if(!$value || is_string($value)) return $value; |
|
417 | if(is_object($value)) $value = get_object_vars($value); |
|
418 | $body = null; |
|
419 | if(!count($value)) return; |
|
420 | foreach($value as $key => $val) |
|
421 | { |
|
422 | if($key == 'body') |
|
423 | { |
|
424 | $body = $val; |
|
425 | continue; |
|
426 | } |
|
427 | if(is_object($val)||is_array($val)) $body = $this->_getRssBody($val); |
|
428 | if($body !== null) return $body; |
|
429 | } |
|
430 | return $body; |
|
431 | } |
|
432 | ||
433 | function _getSummary($content, $str_size = 50) |
|
434 | { |
@@ 361-378 (lines=18) @@ | ||
358 | } return $content_items; |
|
359 | } |
|
360 | ||
361 | function _getRssBody($value) |
|
362 | { |
|
363 | if(!$value || is_string($value)) return $value; |
|
364 | if(is_object($value)) $value = get_object_vars($value); |
|
365 | $body = null; |
|
366 | if(!count($value)) return; |
|
367 | foreach($value as $key => $val) |
|
368 | { |
|
369 | if($key == 'body') |
|
370 | { |
|
371 | $body = $val; |
|
372 | continue; |
|
373 | } |
|
374 | if(is_object($val)||is_array($val)) $body = $this->_getRssBody($val); |
|
375 | if($body !== null) return $body; |
|
376 | } |
|
377 | return $body; |
|
378 | } |
|
379 | ||
380 | function _getSummary($content, $str_size = 50) |
|
381 | { |