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

Class: XML_XRD_PropertyAccess

Source Location: /XML_XRD-0.3.0/src/XML/XRD/PropertyAccess.php

Class Overview


Provides ArrayAccess to extending classes (XML_XRD and XML_XRD_Element_Link).


Author(s):

Version:

  • Release: @package_version@

Variables

Methods


Child classes:

XML_XRD
Main class used to load XRD documents from string or file.
XML_XRD_Element_Link
Link element in a XRD file. Attribute access via object properties.

Inherited Variables

Inherited Methods


Class Details

[line 30]
Provides ArrayAccess to extending classes (XML_XRD and XML_XRD_Element_Link).

By extending PropertyAccess, access to properties is possible with "$object['propertyType']" array access notation.



[ Top ]


Class Variables

$properties = array()

[line 38]

Array of property objects
  • Access: public

Type:   array


[ Top ]



Method Detail

getProperties   [line 119]

array getProperties( [string $type = null])

Get all properties with the given type
  • Return: Array of XML_XRD_Element_Property objects
  • Access: public

Parameters:

string   $type     Property type to filter by

[ Top ]

offsetExists   [line 50]

boolean offsetExists( string $type)

Check if the property with the given type exists

Part of the ArrayAccess interface

  • Return: True if it exists
  • Access: public

Parameters:

string   $type     Property type to check for

[ Top ]

offsetGet   [line 69]

string offsetGet( string $type)

Return the highest ranked property with the given type

Part of the ArrayAccess interface

  • Return: Property value or NULL if empty
  • Access: public

Parameters:

string   $type     Property type to check for

[ Top ]

offsetSet   [line 91]

void offsetSet( string $type, string $value)

Not implemented.

Part of the ArrayAccess interface

  • Throws: XML_XRD_LogicException Always
  • Access: public

Parameters:

string   $type     Property type to check for
string   $value     New property value

[ Top ]

offsetUnset   [line 107]

void offsetUnset( string $type)

Not implemented.

Part of the ArrayAccess interface

  • Throws: XML_XRD_LogicException Always
  • Access: public

Parameters:

string   $type     Property type to check for

[ Top ]


Documentation generated on Fri, 26 Apr 2013 21:00:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.