<?php
/**
* @package RSSBuilder
* @category FLP
*/
/**
* Abstract class for getting ini preferences
*
* Tested with WAMP (XP-SP1/1.3.27/4.0.12/4.3.2)
* Last change: 2003-06-26
*
* @desc Abstract class for the RSS classes
* @access protected
* @author Michael Wimmer <flaimo 'at' gmx 'dot' net>
* @copyright Michael Wimmer
* @link http://www.flaimo.com/
* @global array $GLOBALS['_TICKER_ini_settings']
* @abstract
* @package RSSBuilder
* @category FLP
* @version 1.002
*/
class RSSBase {
/*-----------------------*/
/* C O N S T R U C T O R */
/*-----------------------*/
/**
* Constructor
*
* @desc Constructor
* @return void
* @access private
*/
function RSSBase() {
} // end constructor
} // end class RSSBase
//---------------------------------------------------------------------------
/**
* Class for creating a RSS file
*
* Tested with WAMP (XP-SP1/1.3.27/4.0.12/4.3.2)
* Last change: 2003-06-26
*
* @desc Class for creating a RSS file
* @access public
* @author Michael Wimmer <[email protected]>
* @copyright Michael Wimmer
* @link http://www.flaimo.com/
* @example rss_sample_script.php Sample script
* @package RSSBuilder
* @category FLP
* @version 1.002
*/
class RSSBuilder extends RSSBase {
/*-------------------*/
/* V A R I A B L E S */
/*-------------------*/
/**#@+
* @access private
* @var string
*/
/**
* encoding of the XML file
*
* @desc encoding of the XML file
*/
var $encoding;
/**
* URL where the RSS document will be made available
*
* @desc URL where the RSS document will be made available
*/
var $about;
/**
* title of the rss stream
*
* @desc title of the rss stream
*/
var $title;
/**
* description of the rss stream
*
* @desc description of the rss stream
*/
var $description;
/**
* publisher of the rss stream (person, an organization, or a service)
*
* @desc publisher of the rss stream
*/
var $publisher;
/**
* creator of the rss stream (person, an organization, or a service)
*
* @desc creator of the rss stream
*/
var $creator;
/**
* creation date of the file (format: 2003-05-29T00:03:07+0200)
*
* @desc creation date of the file (format: 2003-05-29T00:03:07+0200)
*/
var $date;
/**
* iso format language
*
* @desc iso format language
*/
var $language;
/**
* copyrights for the rss stream
*
* @desc copyrights for the rss stream
*/
var $rights;
/**
* URL to an small image
*
* @desc URL to an small image
*/
var $image_link;
/**
* spatial location, temporal period or jurisdiction
*
* spatial location (a place name or geographic coordinates), temporal
* period (a period label, date, or date range) or jurisdiction (such as a
* named administrative entity)
*
* @desc spatial location, temporal period or jurisdiction
*/
var $coverage;
/**
* person, an organization, or a service
*
* @desc person, an organization, or a service
*/
var $contributor;
/**
* 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly'
*
* @desc 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly'
*/
var $period;
/**
* date (format: 2003-05-29T00:03:07+0200)
*
* Defines a base date to be used in concert with updatePeriod and
* updateFrequency to calculate the publishing schedule.
*
* @desc base date to calculate from (format: 2003-05-29T00:03:07+0200)
*/
var $base;
/**
* category (rss 2.0)
*
* @desc category (rss 2.0)
* @since 1.001 - 2003-05-30
*/
var $category;
/**
* compiled outputstring
*
* @desc compiled outputstring
*/
var $output;
/**#@-*/
/**#@+
* @access private
*/
/**
* every X hours/days/weeks/...
*
* @desc every X hours/days/weeks/...
* @var int
*/
var $frequency;
/**
* caching time in minutes (rss 2.0)
*
* @desc caching time in minutes (rss 2.0)
* @var int
* @since 1.001 - 2003-05-30
*/
var $cache;
/**
* array wich all the rss items
*
* @desc array wich all the rss items
* @var array
*/
var $items = array();
/**
* use DC data
*
* @desc use DC data
* @var boolean
*/
var $use_dc_data = FALSE;
/**
* use SY data
*
* @desc use SY data
* @var boolean
*/
var $use_sy_data = FALSE;
/**#@-*/
/*-----------------------*/
/* C O N S T R U C T O R */
/*-----------------------*/
/**#@+
* @return void
*/
/**
* Constructor
*
* @desc Constructor
* @param string $encoding encoding of the xml file
* @param string $about URL where the RSS document will be made available
* @param string $title
* @param string $description
* @param string $image_link URL
* @uses setEncoding()
* @uses setAbout()
* @uses setTitle()
* @uses setDescription()
* @uses setImageLink()
* @uses setCategory()
* @uses etCache()
* @access private
*/
function RSSBuilder($encoding = '',
$about = '',
$title = '',
$description = '',
$image_link = '',
$category = '',
$cache = '') {
$this->setEncoding($encoding);
$this->setAbout($about);
$this->setTitle($title);
$this->setDescription($description);
$this->setImageLink($image_link);
$this->setCategory($category);
$this->setCache($cache);
} // end constructor
/*-------------------*/
/* F U N C T I O N S */
/*-------------------*/
/**
* add additional DC data
*
* @desc add additional DC data
* @param string $publisher person, an organization, or a service
* @param string $creator person, an organization, or a service
* @param string $date format: 2003-05-29T00:03:07+0200
* @param string $language iso-format
* @param string $rights copyright information
* @param string $coverage spatial location (a place name or geographic coordinates), temporal period (a period label, date, or date range) or jurisdiction (such as a named administrative entity)
* @param string $contributor person, an organization, or a service
* @uses setPublisher()
* @uses setCreator()
* @uses setDate()
* @uses setLanguage()
* @uses setRights()
* @uses setCoverage()
* @uses setContributor()
* @access public
*/
function addDCdata($publisher = '',
$creator = '',
$date = '',
$language = '',
$rights = '',
$coverage = '',
$contributor = '') {
$this->setPublisher($publisher);
$this->setCreator($creator);
$this->setDate($date);
$this->setLanguage($language);
$this->setRights($rights);
$this->setCoverage($coverage);
$this->setContributor($contributor);
$this->use_dc_data = (boolean) TRUE;
} // end function
/**
* add additional SY data
*
* @desc add additional DC data
* @param string $period 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly'
* @param int $frequency every x hours/days/weeks/...
* @param string $base format: 2003-05-29T00:03:07+0200
* @uses setPeriod()
* @uses setFrequency()
* @uses setBase()
* @access public
*/
function addSYdata($period = '', $frequency = '', $base = '') {
$this->setPeriod($period);
$this->setFrequency($frequency);
$this->setBase($base);
$this->use_sy_data = (boolean) TRUE;
} // end function
/**#@-*/
/**#@+
* @return void
* @access private
*/
/**
* Sets $encoding variable
*
* @desc Sets $encoding variable
* @param string $encoding encoding of the xml file
* @see $encoding
*/
function setEncoding($encoding = '') {
if (!isset($this->encoding)) {
$this->encoding = (string) ((strlen(trim($encoding)) > 0) ? trim($encoding) : 'UTF-8');
} // end if
} // end function
/**
* Sets $about variable
*
* @desc Sets $about variable
* @param string $about
* @see $about
*/
function setAbout($about = '') {
if (!isset($this->about) && strlen(trim($about)) > 0) {
$this->about = (string) trim($about);
} // end if
} // end function
/**
* Sets $ti
没有合适的资源?快使用搜索试试~ 我知道了~
[CMS程序]PHPCMS + HDwiki整合版 GBK版_phpcms_hdwiki_gbk.rar

共2000个文件
php:900个
html:660个
htm:132个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 66 浏览量
2024-04-15
02:09:55
上传
评论
收藏 9.04MB RAR 举报
温馨提示
【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论






















格式:pdf 资源大小:2.2MB 页数:333






格式:pptx 资源大小:8.2MB 页数:120


收起资源包目录





































































































共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论


CyMylive.
- 粉丝: 1w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 计算机通信与网络远程控制技术应用分析.docx
- 计算机辅助教学在高校教育的现状和对策研究.docx
- C语言课程设计语言代码简易计算器设计[].doc
- 单片机智能温室控制系统设计方案.doc
- 南京邮电大学网络工程专业.doc
- 利用物联网技术推动徐州健康服务业发展研究.doc
- 单片机的模糊温控制器的设计.doc
- 北京邮电移动通信第三版第一章概述概要.ppt
- AutoCAD工程师二季认证考试题库.doc
- 大学软件工程基础知识测试题.doc
- 互联网+背景下农村小微规模学校美术教学策略探索.docx
- 软件开发项目管理说明.docx
- 《电气控制与PLC技术》电子教案[精].doc
- 云桌面虚拟化解决实施方案(数字图书馆办公).doc
- 信息系统项目管理师辅导.ppt
- 2011年9月计算机二级考试Access真题及答案.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
