Beispiel #1
0
 public function addNewItem($title, $link, $id_channel)
 {
     $item = new RssItem($link, $title, $id_channel);
     if (!$item->isExistsItemByUrl()) {
         $item->insertIntoTable();
         return true;
     }
     throw new \Exception('These item with ' . $link . ' exist! Does not added to channel');
 }