SimpleSAML_Utilities::formatDOMElement PHP Method

formatDOMElement() public static method

Deprecation: This method will be removed in SSP 2.0. Please use SimpleSAML\Utils\XML::formatDOMElement() instead.
public static formatDOMElement ( DOMElement $root, $indentBase = '' )
$root DOMElement
    public static function formatDOMElement(DOMElement $root, $indentBase = '')
    {
        SimpleSAML\Utils\XML::formatDOMElement($root, $indentBase);
    }

Usage Example

Ejemplo n.º 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)');
     if ($formatted) {
         SimpleSAML_Utilities::formatDOMElement($this->entityDescriptor);
     }
     return $this->document->saveXML();
 }
All Usage Examples Of SimpleSAML_Utilities::formatDOMElement