Method | Description | |
---|---|---|
__construct ( string $title, string $link, string $description ) | 构造函数,初始化RSS文档开头部分 | |
addItem ( $title, $link, $description, $date ) | 添加文章节点 | |
createElement ( $name, $value ) : string | 构造元素节点 | |
saveXML ( ) : string | 返回xml格式的RSS文档 |
public addItem ( $title, $link, $description, $date ) | ||
$title | ||
$link | ||
$description | ||
$date |
public createElement ( $name, $value ) : string | ||
$name | ||
$value | ||
return | string |