XML_RDDL::getResourcesByNature()

XML_RDDL::getResourcesByNature() -- selects all resources of a specified nature

Synopsis

require_once 'XML/RDDL.php';

array XML_RDDL::getResourcesByNature (string $nature)

Description

Gets all resources of a given nature from an RDDL document. You have to call XML_RDDL::parseRDDL() first. The nature of a resource is specified by the 'xlink:role' attribute. A nature can be a stylesheet, a DTD, a HTML document, etc. You can find a list of well known natures at http://www.rddl.org/natures/.

Parameter

Return value

array array containing all resources with the specified nature.

Note

This function can not be called statically.

Usage example