Skip to content
Snippets Groups Projects
Commit d5ccda83 authored by Olav Morken's avatar Olav Morken
Browse files

SAMLBuilder: Format generated metadata

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@934 44740490-163a-0410-bde0-09ae8108e29a
parent 08a8f95e
No related branches found
No related tags found
No related merge requests found
...@@ -53,9 +53,17 @@ class SimpleSAML_Metadata_SAMLBuilder { ...@@ -53,9 +53,17 @@ class SimpleSAML_Metadata_SAMLBuilder {
* *
* This function serializes this EntityDescriptor, and returns it 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. * @return string The serialized EntityDescriptor.
*/ */
public function getEntityDescriptorText() { public function getEntityDescriptorText($formatted = TRUE) {
assert('is_bool($formatted)');
if ($formatted) {
SimpleSAML_Utilities::formatDOMElement($this->entityDescriptor);
}
return $this->document->saveXML(); return $this->document->saveXML();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment