| @@ 687-705 (lines=19) @@ | ||
| 684 | if(!$output->toBool() || !$output->data) return; |
|
| 685 | // If the result exists, make each document as an object |
|
| 686 | $content_items = array(); |
|
| 687 | foreach($output->data as $key => $item) |
|
| 688 | { |
|
| 689 | $domain = $args->module_srls_info[$item->module_srl]->domain; |
|
| 690 | $category = $category_lists[$item->module_srl]->text; |
|
| 691 | $url = getSiteUrl($domain,'','document_srl',$item->document_srl); |
|
| 692 | $browser_title = $args->module_srls_info[$item->module_srl]->browser_title; |
|
| 693 | ||
| 694 | $content_item = new contentItem($browser_title); |
|
| 695 | $content_item->adds($item); |
|
| 696 | $content_item->setTitle($item->title); |
|
| 697 | $content_item->setCategory($category); |
|
| 698 | $content_item->setNickName($item->blog_name); |
|
| 699 | $content_item->setContent($item->excerpt); ///<< |
|
| 700 | $content_item->setDomain($domain); ///<< |
|
| 701 | $content_item->setLink($url); |
|
| 702 | $content_item->add('mid', $args->mid_lists[$item->module_srl]); |
|
| 703 | $content_item->setRegdate($item->regdate); |
|
| 704 | $content_items[] = $content_item; |
|
| 705 | } |
|
| 706 | return $content_items; |
|
| 707 | } |
|
| 708 | ||
| @@ 604-622 (lines=19) @@ | ||
| 601 | if(!$output->toBool() || !$output->data) return; |
|
| 602 | // If the result exists, make each document as an object |
|
| 603 | $content_items = array(); |
|
| 604 | foreach($output->data as $key => $item) |
|
| 605 | { |
|
| 606 | $domain = $args->module_srls_info[$item->module_srl]->domain; |
|
| 607 | $category = $category_lists[$item->module_srl]->text; |
|
| 608 | $url = getSiteUrl($domain,'','document_srl',$item->document_srl); |
|
| 609 | $browser_title = $args->module_srls_info[$item->module_srl]->browser_title; |
|
| 610 | ||
| 611 | $content_item = new mcontentItem($browser_title); |
|
| 612 | $content_item->adds($item); |
|
| 613 | $content_item->setTitle($item->title); |
|
| 614 | $content_item->setCategory($category); |
|
| 615 | $content_item->setNickName($item->blog_name); |
|
| 616 | $content_item->setContent($item->excerpt); ///<< |
|
| 617 | $content_item->setDomain($domain); ///<< |
|
| 618 | $content_item->setLink($url); |
|
| 619 | $content_item->add('mid', $args->mid_lists[$item->module_srl]); |
|
| 620 | $content_item->setRegdate($item->regdate); |
|
| 621 | $content_items[] = $content_item; |
|
| 622 | } |
|
| 623 | return $content_items; |
|
| 624 | } |
|
| 625 | ||