示例#1
0
 public function render()
 {
     $feed = new Rss();
     $feed->feed('2.0', 'UTF-8')->channel(['title' => $this->page->getTitle(), 'description' => $this->page->getDescription(), 'link' => $this->page->url()]);
     foreach ($this->getFeedItems() as $page) {
         $this->addItem($feed, $page);
     }
     return (string) $feed;
 }
示例#2
0
 public function target()
 {
     return $this->targetPage ? $this->targetPage->getId() : 0;
 }