apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: XML_Feed_Parser_Factory

Source Location: /XML_Feed_Parser-1.0.5/XML/Feed/Parser/Factory.php

Class Overview




Methods


Inherited Variables

Inherited Methods


Class Details

[line 6]


[ Top ]


Method Detail

__construct (Constructor)   [line 17]

XML_Feed_Parser_Factory __construct( [Log $log = null])

  • Access: public

Parameters:

Log   $log   — 

[ Top ]

build   [line 37]

void build( DOMDocument $model, string $feed, [bool $strict = false], [bool $suppressWarnings = false], [bool $tidy = false])

Detects feed types and instantiate appropriate objects.

Our constructor takes care of detecting feed types and instantiating appropriate classes. For now we're going to treat Atom 0.3 as Atom 1.0 but raise a warning. I do not intend to introduce full support for Atom 0.3 as it has been deprecated, but others are welcome to.


Parameters:

string   $feed   —  XML serialization of the feed
bool   $strict   —  Whether or not to validate the feed
bool   $suppressWarnings   —  Trigger errors for deprecated feed types?
bool   $tidy   —  Whether or not to try and use the tidy library on input
DOMDocument   $model   — 

[ Top ]

determineClass   [line 78]

void determineClass( $doc_element, [ $suppressWarnings = false])

  • Access: public

Parameters:

   $doc_element   — 
   $suppressWarnings   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:47:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.