예제 #1
0
 public static function get_instance($sp = null)
 {
     if (!isset(self::$instance)) {
         self::$instance = new Feeds($sp);
     }
     return self::$instance;
 }
예제 #2
0
 /**
  * Create an RSS Feed
  *
  * @param string $title - feed title
  * @param string $link - url feed title should point to
  * @param string $description - feed description
  * @param array $items - $items[0] = array('title'=>TITLE, 'link'=>URL, 'date'=>TIMESTAMP, 'description'=>DESCRIPTION)
  */
 public function rss($title = '', $link = '', $description = '', $items = array())
 {
     $feeds = Feeds::instance();
     $feeds->rss($this, $title, $link, $description, $items);
 }