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

Class: XML_XRD_Loader_XML

Source Location: /XML_XRD-0.3.1/src/XML/XRD/Loader/XML.php

Class Overview


Loads XRD data from an XML file


Author(s):

Version:

  • Release: @package_version@

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 24]
Loads XRD data from an XML file


[ Top ]


Class Variables

$xrd =

[line 31]

Data storage the XML data get loaded into
  • Access: protected

Type:   XML_XRD


[ Top ]



Method Detail

__construct (Constructor)   [line 45]

XML_XRD_Loader_XML __construct( XML_XRD $xrd)

Init object with xrd object
  • Access: public

Parameters:

XML_XRD   $xrd   —  Data storage the XML data get loaded into

[ Top ]

load   [line 113]

void load( SimpleXMLElement $x)

Loads the XML element into the classes' data structures
  • Throws: XML_XRD_Loader_Exception When the XML is invalid
  • Access: public

Parameters:

object   $x   —  XML element containing the whole XRD document

[ Top ]

loadFile   [line 60]

void loadFile( string $file)

Loads the contents of the given file
  • Throws: XML_XRD_Loader_Exception When the XML is invalid or cannot be loaded
  • Access: public

Parameters:

string   $file   —  Path to an XRD file

[ Top ]

loadLink   [line 173]

XML_XRD_Element_Link loadLink( SimpleXMLElement $x)

Create a link element object from XML element
  • Return: Created link object
  • Access: protected

Parameters:

object   $x   —  XML link element

[ Top ]

loadProperties   [line 158]

boolean loadProperties( XML_XRD_PropertyAccess $store, SimpleXMLElement $x)

Loads the Property elements from XML
  • Return: True when all went well
  • Access: protected

Parameters:

object   $store   —  Data store where the properties get stored
object   $x   —  XML element

[ Top ]

loadProperty   [line 204]

XML_XRD_Element_Property loadProperty( SimpleXMLElement $x)

Create a property element object from XML element
  • Return: Created link object
  • Access: protected

Parameters:

object   $x   —  XML property element

[ Top ]

loadString   [line 84]

void loadString( string $xml)

Loads the contents of the given string
  • Throws: XML_XRD_Loader_Exception When the XML is invalid or cannot be loaded
  • Access: public

Parameters:

string   $xml   —  XML string

[ Top ]


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