CWIS Developer Documentation
|
Public Member Functions | |
RSSClient ($ServerUrl, $CacheDB=NULL, $RefreshTime=600, $Encoding="UTF-8", $DebugLevel=0) | |
ServerUrl ($NewValue=NULL) | |
Encoding ($NewValue=NULL) | |
AutodetectEncoding () | |
Try to automatically detect and set the encoding of the RSS feed. | |
GetItems ($NumberOfItems=NULL, $ChannelName=NULL) | |
GetChannelTitle () | |
GetChannelLink () | |
GetChannelDescription () | |
UsedCachedData () | |
SetDebugLevel ($NewLevel) | |
GetXmlInfo ($Url) | |
Get the XML text at the given URL, along with the type and charset of the text. | |
QueryServerWithCaching ($ServerUrl, $CacheDB, $RefreshTime) | |
LoadChannelInfo () | |
Public Attributes | |
$CacheDB | |
$RefreshTime | |
$ServerUrl | |
$MetadataPrefix | |
$SetSpec | |
$DebugLevel | |
$Encoding | |
$XmlText | |
$Parser | |
$ChannelTitle | |
$ChannelLink | |
$ChannelDescription | |
$CachedDataWasUsed | |
Definition at line 18 of file RSSClient.php.
RSSClient::AutodetectEncoding | ( | ) |
Try to automatically detect and set the encoding of the RSS feed.
The precedence is as follows: encoding declared in the XML file, charset parameter in the Content-Type HTTP response header, then ISO-8859-1.
Definition at line 102 of file RSSClient.php.
References $CacheDB, $Encoding, $ServerUrl, Encoding(), and ServerUrl().
RSSClient::Encoding | ( | $NewValue = NULL | ) |
Definition at line 73 of file RSSClient.php.
References $Encoding, $Parser, QueryServerWithCaching(), and ServerUrl().
Referenced by AutodetectEncoding(), and RSSClient().
RSSClient::GetChannelDescription | ( | ) |
Definition at line 213 of file RSSClient.php.
References $ChannelDescription, and LoadChannelInfo().
RSSClient::GetChannelLink | ( | ) |
Definition at line 206 of file RSSClient.php.
References $ChannelLink, and LoadChannelInfo().
RSSClient::GetChannelTitle | ( | ) |
Definition at line 199 of file RSSClient.php.
References $ChannelTitle, and LoadChannelInfo().
RSSClient::GetItems | ( | $NumberOfItems = NULL , |
|
$ChannelName = NULL |
|||
) |
Definition at line 157 of file RSSClient.php.
RSSClient::GetXmlInfo | ( | $Url | ) |
Get the XML text at the given URL, along with the type and charset of the text.
$Url | URL of XML text |
Definition at line 257 of file RSSClient.php.
Referenced by QueryServerWithCaching().
RSSClient::LoadChannelInfo | ( | ) |
Definition at line 374 of file RSSClient.php.
References $Parser.
Referenced by GetChannelDescription(), GetChannelLink(), and GetChannelTitle().
RSSClient::QueryServerWithCaching | ( | $ServerUrl, | |
$CacheDB, | |||
$RefreshTime | |||
) |
Definition at line 308 of file RSSClient.php.
References $CacheDB, $RefreshTime, $ServerUrl, GetXmlInfo(), and ServerUrl().
Referenced by Encoding(), RSSClient(), and ServerUrl().
RSSClient::RSSClient | ( | $ServerUrl, | |
$CacheDB = NULL , |
|||
$RefreshTime = 600 , |
|||
$Encoding = "UTF-8" , |
|||
$DebugLevel = 0 |
|||
) |
Definition at line 23 of file RSSClient.php.
References $CacheDB, $DebugLevel, $Encoding, $Parser, $RefreshTime, $ServerUrl, Encoding(), and QueryServerWithCaching().
RSSClient::ServerUrl | ( | $NewValue = NULL | ) |
Definition at line 48 of file RSSClient.php.
References $Parser, $ServerUrl, and QueryServerWithCaching().
Referenced by AutodetectEncoding(), Encoding(), and QueryServerWithCaching().
RSSClient::SetDebugLevel | ( | $NewLevel | ) |
Definition at line 243 of file RSSClient.php.
RSSClient::UsedCachedData | ( | ) |
Definition at line 220 of file RSSClient.php.
References $CachedDataWasUsed.
RSSClient::$CacheDB |
Definition at line 228 of file RSSClient.php.
Referenced by AutodetectEncoding(), QueryServerWithCaching(), and RSSClient().
RSSClient::$CachedDataWasUsed |
Definition at line 240 of file RSSClient.php.
Referenced by UsedCachedData().
RSSClient::$ChannelDescription |
Definition at line 239 of file RSSClient.php.
Referenced by GetChannelDescription().
RSSClient::$ChannelLink |
Definition at line 238 of file RSSClient.php.
Referenced by GetChannelLink().
RSSClient::$ChannelTitle |
Definition at line 237 of file RSSClient.php.
Referenced by GetChannelTitle().
RSSClient::$DebugLevel |
Definition at line 233 of file RSSClient.php.
Referenced by RSSClient().
RSSClient::$Encoding |
Definition at line 234 of file RSSClient.php.
Referenced by AutodetectEncoding(), Encoding(), and RSSClient().
RSSClient::$MetadataPrefix |
Definition at line 231 of file RSSClient.php.
RSSClient::$Parser |
Definition at line 236 of file RSSClient.php.
Referenced by Encoding(), GetItems(), LoadChannelInfo(), RSSClient(), and ServerUrl().
RSSClient::$RefreshTime |
Definition at line 229 of file RSSClient.php.
Referenced by QueryServerWithCaching(), and RSSClient().
RSSClient::$ServerUrl |
Definition at line 230 of file RSSClient.php.
Referenced by AutodetectEncoding(), QueryServerWithCaching(), RSSClient(), and ServerUrl().
RSSClient::$SetSpec |
Definition at line 232 of file RSSClient.php.
RSSClient::$XmlText |
Definition at line 235 of file RSSClient.php.