public function add(\preview\Item $_preview) { return parent::fetch($_preview->url, $_preview); }
public function update($_reload = false) { $this->l_recent = array(); if ($xml = simplexml_load_string(\common\request($this->l_url))) { $result = false; switch ($xml->getName()) { case "rss": foreach ($xml->channel->item as $item) { $story = parent::fetch((string) $item->link, $item); if ($_reload && !$this->insert) { $story->update($item); } if ($this->insert || $_reload) { $result = true; } } break; } return $result; } return false; }