Ejemplo n.º 1
0
 public function getList($howmany = 10)
 {
     $links = [];
     $collection = $this->feed->get_items(0, $howmany);
     foreach ($collection as $key => $link) {
         $links[] = finalUrl($link->get_permalink());
     }
     return $links;
 }
 function getDetails()
 {
     $collection = $this->feed->get_items(0, 10);
     foreach ($collection as $key => $link) {
         $finalUrl = finalUrl($link->get_permalink());
         if (starts_with($finalUrl, $this->url)) {
             return ['url' => $this->url, 'title' => $this->getTitle($link), 'publishing_date' => $this->getDate($link), 'content' => $this->getContent($link)];
             // Todo: Get Details
         }
     }
 }