Liste de tous les membres
Fonctions membres publiques
Fonctions membres publiques statiques
Attributs publics
Description détaillée
FeedCreator is the abstract base implementation for concrete implementations that implement a specific format of syndication.
- Auteur:
- Kai Blankenhorn <kaib@bitfolge.de>
- Depuis:
- 1.4
Documentation des fonctions membres
FeedCreator::_createAdditionalElements |
( |
$ |
elements, |
|
|
$ |
indentString = "" |
|
) |
| |
FeedCreator::_createGeneratorComment |
( |
| ) |
|
FeedCreator::_createStylesheetReferences |
( |
| ) |
|
FeedCreator::_generateFilename |
( |
| ) |
|
FeedCreator::_redirect |
( |
$ |
filename | ) |
|
FeedCreator::addItem |
( |
$ |
item | ) |
|
FeedCreator::createFeed |
( |
| ) |
|
Builds the feed's text.
- Renvoie:
- string the feed's complete text
Réimplémentée dans RSSCreator10, RSSCreator091, PIECreator01, AtomCreator10, AtomCreator03, MBOXCreator, OPMLCreator, HTMLCreator, JSCreator, et GoogleSiteMapIndex.
Référencé par outputFeed(), et saveFeed().
FeedCreator::iTrunc |
( |
$ |
string, |
|
|
$ |
length |
|
) |
| [static] |
Truncates a string to a certain length at the most sensible point. First, if there's a '.' character near the end of the string, the string is truncated after this character. If there is no '.', the string is truncated after the last ' ' character. If the string is truncated, " ..." is appended. If the string is already shorter than $length, it is returned unchanged.
- Paramètres:
-
string | string A string to be truncated. |
int | length the maximum length the string should be truncated to |
- Renvoie:
- string the truncated string
Référencé par HTMLCreator::createFeed(), MBOXCreator::createFeed(), et FeedHtmlField::output().
FeedCreator::outputFeed |
( |
| ) |
|
Outputs this feed directly to the browser - for on-the-fly feed generation
- Depuis:
- 1.7.2-mod
still missing: proper header output - currently you have to add it manually
Références createFeed().
FeedCreator::saveFeed |
( |
$ |
filename = "" , |
|
|
$ |
displayContents = true |
|
) |
| |
Saves this feed as a file on the local disk. After the file is saved, a redirect header may be sent to redirect the user to the newly created file.
- Depuis:
- 1.4
- Paramètres:
-
filename | string optional the filename where a recent version of the feed is saved. If not specified, the filename is $_SERVER["PHP_SELF"] with the extension changed to .xml (see _generateFilename()). |
redirect | boolean optional send an HTTP redirect header or not. If true, the user will be automatically redirected to the created file. |
Références $filename, _generateFilename(), _redirect(), et createFeed().
FeedCreator::useCached |
( |
$ |
filename = "" , |
|
|
$ |
timeout = 3600 |
|
) |
| |
Turns on caching and checks if there is a recent version of this feed in the cache. If there is, an HTTP redirect header is sent. To effectively use caching, you should create the FeedCreator object and call this method before anything else, especially before you do the time consuming task to build the feed (web fetching, for example).
- Depuis:
- 1.4
- Paramètres:
-
filename | string optional the filename where a recent version of the feed is saved. If not specified, the filename is $_SERVER["PHP_SELF"] with the extension changed to .xml (see _generateFilename()). |
timeout | int optional the timeout in seconds before a cached version is refreshed (defaults to 3600 = 1 hour) |
Références $filename, _generateFilename(), et _redirect().
Documentation des données membres
FeedCreator::$additionalElements = Array() |
Any additional elements to include as an assiciated array. All $key => $value pairs will be included unencoded in the feed in the form < $key>="">$value</> Again: No encoding will be used! This means you can invalidate or enhance the feed if $value contains markup. This may be abused to embed tags not implemented by the FeedCreator class used.
FeedCreator::$additionalMarkup = "" |
Any additional markup to include as a string. This can be used in places where $additionalElements isn't sufficient (for example, if you need to add elements with attributes, eg: <element attribute="value">).
- Depuis:
- 1.7.3
FeedCreator::$contentType = "application/xml" |
FeedCreator::$description |
FeedCreator::$editorEmail |
FeedCreator::$encoding = "UTF-8" |
This feed's character encoding.
- Depuis:
- 1.6.1
Specifies the generator of the feed.
- Depuis:
- 1.7.3
FeedCreator::$items = Array() |
FeedCreator::$lastBuildDate |
FeedCreator::$syndicationURL |
Optional attributes of a feed.
FeedCreator::$verbose = true |
Determines whether or not error messages are displayed by this class.
- Depuis:
- 1.7.3
FeedCreator::$xslStyleSheet = "" |
The url of the external xsl stylesheet used to format the naked rss feed. Ignored in the output when empty.
La documentation de cette classe a été générée à partir du fichier suivant :