Documentation

Core_Rss
in package

Create an RSS 2.0 feed

Tags
subpackage

Core\Rss

version
7.x
copyright

© 2005-2024, https://www.hostcms.ru

Table of Contents

Properties

$_encoding  : string
Encoding
$_entities  : array<string|int, mixed>
Entities list
$_xmlns  : array<string|int, mixed>
XMLNS

Methods

__construct()  : mixed
Constructor.
add()  : self
Add entity.
get()  : string
Get RSS
show()  : void
Show RSS
showWithHeader()  : mixed
Show RSS with headers
xmlns()  : self
Set XMLNS value
_addChild()  : self
Add children nodes

Properties

$_encoding

Encoding

protected string $_encoding = 'UTF-8'

$_entities

Entities list

protected array<string|int, mixed> $_entities = array()

$_xmlns

XMLNS

protected array<string|int, mixed> $_xmlns = array()

Methods

__construct()

Constructor.

public __construct() : mixed

add()

Add entity.

public add(string $name, string $value[, string $attributes = array() ]) : self
Parameters
$name : string

entity name

$value : string

entity value

$attributes : string = array()

array attributes

Return values
self

get()

Get RSS

public get() : string
Return values
string

show()

Show RSS

public show() : void

showWithHeader()

Show RSS with headers

public showWithHeader(string $rss) : mixed
Parameters
$rss : string

content

xmlns()

Set XMLNS value

public xmlns(string $name, string $value) : self
Parameters
$name : string

name

$value : string

value

Return values
self

_addChild()

Add children nodes

protected _addChild(object $object, array<string|int, mixed> $children) : self
Parameters
$object : object

object

$children : array<string|int, mixed>

children nodes

Return values
self

        
On this page

Search results