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

Class: Services_Yadis_Xrds_Namespace

Source Location: /Services_Yadis-0.5.2/Services/Yadis/Xrds/Namespace.php

Class Overview


The Services_Yadis_Xrds_Namespace class is a container for namespaces which need to be registered to an XML parser in order to correctly consume an XRDS document using the parser's XPath functionality.


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 61]
The Services_Yadis_Xrds_Namespace class is a container for namespaces which need to be registered to an XML parser in order to correctly consume an XRDS document using the parser's XPath functionality.


[ Top ]


Class Variables

$namespaces = array(
        'xrds' => 'xri://$xrds',
        'xrd'  => 'xri://$xrd*($v*2.0)'
    )

[line 69]

Default XRDS namespaces which should always be registered.
  • Access: protected

Type:   array


[ Top ]



Method Detail

addNamespace   [line 98]

void addNamespace( string $namespaceKey, string $namespaceUrl)

Add a single namespace to be utilised by the XML parser when it receives a valid XRD document.
  • Access: public

Parameters:

string   $namespaceKey   —  Namespace key
string   $namespaceUrl   —  Namepspace URL

[ Top ]

addNamespaces   [line 82]

void addNamespaces( array $namespaces)

Add a list (array) of additional namespaces to be utilised by the XML parser when it receives a valid XRD document.
  • Access: public

Parameters:

array   $namespaces   —  Array of namespaces to add

[ Top ]

getNamespace   [line 127]

string|boolean getNamespace( string $namespaceKey)

Return the value of a specific namespace, or FALSE if not found.
  • Access: public

Parameters:

string   $namespaceKey   —  Namespace key

[ Top ]

getNamespaces   [line 140]

array getNamespaces( )

Returns an array of all currently set namespaces.
  • Access: public

[ Top ]

registerXpathNamespaces   [line 152]

void registerXpathNamespaces( SimpleXMLElement $element)

Register all stored namespaces to the parameter SimpleXMLElement object.
  • Access: public

Parameters:

SimpleXMLElement   $element   —  Instance of SimpleXMLElement

[ Top ]


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