You are here

public static function RestWSFormatXML::setXMLReference in RESTful Web Services 7.2

Same name and namespace in other branches
  1. 7 restws.formats.inc \RestWSFormatXML::setXMLReference()
3 calls to RestWSFormatXML::setXMLReference()
RestWSFormatXML::addToXML in ./restws.formats.inc
Adds the data of the given wrapper to the given XML element.
RestWSFormatXML::createResource in ./restws.formats.inc
Creates a new resource.
RestWSFormatXML::queryResource in ./restws.formats.inc
Overrides RestWSBaseFormat::queryResource().

File

./restws.formats.inc, line 674
RESTful web services module formats.

Class

RestWSFormatXML
A formatter for XML.

Code

public static function setXMLReference(DOMElement $node, $resource, $id) {
  $node->nodeValue = restws_resource_uri($resource, $id);
  $node
    ->setAttribute('resource', $resource);
  $node
    ->setAttribute('id', $id);
}