| [ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 304 lignes (8 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
FeedParserBase:: (11 méthodes):
FeedParserBase()
createFeed()
_writeFile()
_formatArticle()
_safeXML()
_feedHeader()
_injectNamespaces()
_feedFooter()
startElement()
endElement()
charData()
Classe: FeedParserBase - X-Ref
FeedParserBase provides an abstract ancestor class for feed parsers.| FeedParserBase() X-Ref |
| Stuff for parsing XML |
| createFeed( $fileName, $limit='' ) X-Ref |
| Create a file for the stream Writes the $items content to the file supplied in the format we have specified. Uses the (abstract) function formatArticle to return XML for an article. param: string $fileName The fully qualified path to the file to create. param: integer $limit (optional) max number of items to write. |
| _writeFile( $fileName, $data ) X-Ref |
| Pas de description |
| _formatArticle( $article ) X-Ref |
| Format an article into feed specific XML. Takes an associative article array and turns it into an XML definition of an article. param: array $article ASsociative array describing an article. |
| _safeXML( $string ) X-Ref |
| Make sure a string is safe to be chardata in an xml element param: string $string the string to escape. |
| _feedHeader() X-Ref |
| Return the formatted start of a feed. This will start the xml and create header information about the feed itself. |
| _injectNamespaces() X-Ref |
| Inject XMLNS items into the feed master element, if needed. |
| _feedFooter() X-Ref |
| Return the formatted end of a feed. just closes things off nicely. |
| startElement($parser, $name, $attributes) X-Ref |
| Handle the begining of an XML element This is called from the parserfactory once the type of data has been determined. Standard XML_PARSER element handler. author: Michael Jervis (mike@fuckingbrit.com) |
| endElement($parser, $name) X-Ref |
| Handle the close of an XML element Called by the parserfactory during parsing. |
| charData($parser, $data) X-Ref |
| Handles character data. Called by the parserfactory during parsing. |
| Généré le : Wed Nov 21 12:27:40 2007 | par Balluche grâce à PHPXref 0.7 |
|