void addChannelSubelement(
string
$element, mixed
$data
)
|
|
Adds user-defined channel subelement
Parameters:
string |
$element: |
name of the tag |
mixed |
$data: |
tag data |
API Tags:
void addNamespace(
string
$namespace, string
$link
)
|
|
Adds user-defined namespace
Parameters:
string |
$namespace: |
Namespace itself |
string |
$link: |
link to namespace definition |
API Tags:
Complete method for final usage.
API Tags:
Database data withdrawal, mysql driver
API Tags:
Return: | Data fetched from MySQL < 4.1 database |
Access: | protected |
Database data withdrawal, mysqli driver
API Tags:
Return: | fetched from MySQL >= 4.1 database |
Access: | protected |
Prepares array of data for further usage
API Tags:
Return: | Data prepared for insertion to XML |
Access: | protected |
void rssBody(
array
$data
)
|
|
Writes ITEM tags of RSS from values prepared by prepareData()
Parameters:
API Tags:
Writes RSS epilogue
API Tags:
Writes RSS prologue with Channel obligatory tags
API Tags:
void setHeader(
[string
$context = 'text/plain']
)
|
|
Sets page header
Parameters:
string |
$context: |
Page context-type. |
API Tags:
string splitLongText(
$string, [
$length = 450], [
$etc = '...'], [
$break_words = false], [
$middle = false]
)
|
|
By RSS Spec, description text should be 450 chars max. Lets ensure it is.
Parameters:
|
$string: |
|
|
$length: |
|
|
$etc: |
|
|
$break_words: |
|
|
$middle: |
|
API Tags:
Return: | Truncated string |
Access: | protected |
Information Tags:
string writeChannelSubelements(
)
|
|
writes Channel Subelements XML
API Tags:
string writeNamespaces(
)
|
|
Writes namespaces
API Tags:
void __call(
$name,
$args
)
|
|
Method overloading - allows user to set Rss variables.
Parameters:
API Tags: