Пример #1
0
 /**
  * Allows modules to delete an item from an RSS feed
  *
  * @param array $feeds
  * @param string $itemId
  * @return bool
  */
 public function hookRssmodDelete($feeds, $itemId)
 {
     if (!is_array($feeds)) {
         $feeds = array($feeds);
     }
     foreach ($feeds as $feed) {
         if (Rss::feedExists($feed)) {
             try {
                 $rss = new Rss($feed);
                 $rss->delete($itemId);
                 $rss->save();
             } catch (Exception $e) {
                 $this->_log->message($e->getMessage(), Log::L_WARNING);
             }
         }
     }
     return true;
 }