예제 #1
0
 /**
  * Retrieve the EntityDescriptor as text.
  *
  * This function serializes this EntityDescriptor, and returns it as text.
  *
  * @param bool $formatted Whether the returned EntityDescriptor should be formatted first.
  *
  * @return string The serialized EntityDescriptor.
  */
 public function getEntityDescriptorText($formatted = true)
 {
     assert('is_bool($formatted)');
     $xml = $this->getEntityDescriptor();
     if ($formatted) {
         SimpleSAML\Utils\XML::formatDOMElement($xml);
     }
     return $xml->ownerDocument->saveXML();
 }
예제 #2
0
 /**
  * @deprecated This method will be removed in SSP 2.0. Please use SimpleSAML\Utils\XML::formatDOMElement() instead.
  */
 public static function formatDOMElement(DOMElement $root, $indentBase = '')
 {
     SimpleSAML\Utils\XML::formatDOMElement($root, $indentBase);
 }