示例#1
0
 /**
  * Sets Channel
  *		@param $url
  *		@param $title
  *		@param $description
  *		@param $lang
  *		@param $copyright
  *		@param $creator
  *		@param $subject
  */
 public static function SetChannel($url, $title, $description, $lang, $copyright, $creator, $subject)
 {
     self::$channelUrl = $url;
     self::$channelTitle = $title;
     self::$channelDescription = $description;
     self::$channelLang = $lang;
     self::$channelCopyright = $copyright;
     if (self::$rssType == 'rss1') {
         self::$channelDate = date('Y-m-d') . 'T' . date('H:i:s') . '+02:00';
     } else {
         if (self::$rssType == 'rss2') {
             self::$channelDate = date('D, d M Y H:i:s T');
         } else {
             if (self::$rssType == 'atom') {
                 self::$channelDate = date('Y-m-d') . 'T' . date('H:i:sP');
             } else {
                 self::$channelDate = date('Y-m-d') . 'T' . date('H:i:sT');
             }
         }
     }
     self::$channelCreator = $creator;
     self::$channelAuthor = $creator;
     self::$channelSubject = $subject;
 }