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

Class: XML_XRD_Loader_JSON

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

Class Overview


Loads XRD data from a JSON file


Author(s):

Version:

  • Release: @package_version@

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 24]
Loads XRD data from a JSON 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 40]

XML_XRD_Loader_JSON __construct( XML_XRD $xrd)

Init object with xrd object
  • Access: public

Parameters:

XML_XRD   $xrd     Data storage the JSON data get loaded into

[ Top ]

load   [line 111]

void load( $j)

Loads the JSON object into the classes' data structures
  • Access: public

Parameters:

object   $j     JSON object containing the whole JSON document

[ Top ]

loadFile   [line 55]

void loadFile( string $file)

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

Parameters:

string   $file     Path to an JRD file

[ Top ]

loadLink   [line 166]

XML_XRD_Element_Link loadLink( $j)

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

Parameters:

object   $j     JSON link object

[ Top ]

loadProperties   [line 143]

boolean loadProperties( XML_XRD_PropertyAccess $store, $j)

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   $j     JSON element with "properties" variable

[ Top ]

loadString   [line 77]

void loadString( string $json)

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

Parameters:

string   $json     JSON string

[ Top ]


Documentation generated on Thu, 17 Jul 2014 22:30:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.