summaryrefslogtreecommitdiffstats
path: root/lib/SAML2/XML/samlp/Extensions.php
diff options
context:
space:
mode:
authorOlav Morken <olav.morken@uninett.no>2013-11-15 09:34:07 +0000
committerOlav Morken <olav.morken@uninett.no>2013-11-15 09:34:07 +0000
commit6f61aef12c6b1b02e32da6d1c696bee6d5f1e4dc (patch)
treef1d6c78ab5e2eec5f8b8121f9e1a838c28997fa6 /lib/SAML2/XML/samlp/Extensions.php
parente9c98e008ed7dbb5d642aa4788edd2510c952ca1 (diff)
downloadsimplesamlphp-6f61aef12c6b1b02e32da6d1c696bee6d5f1e4dc.zip
simplesamlphp-6f61aef12c6b1b02e32da6d1c696bee6d5f1e4dc.tar.gz
simplesamlphp-6f61aef12c6b1b02e32da6d1c696bee6d5f1e4dc.tar.bz2
Start using SAML2 library from GitHub.
This patch also starts using Composer for other dependencies (i.e. php-openid and xmlseclibs). Thanks to Boy Baukema for implementing this! git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3290 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SAML2/XML/samlp/Extensions.php')
-rw-r--r--lib/SAML2/XML/samlp/Extensions.php48
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/SAML2/XML/samlp/Extensions.php b/lib/SAML2/XML/samlp/Extensions.php
deleted file mode 100644
index ad86c3f..0000000
--- a/lib/SAML2/XML/samlp/Extensions.php
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-/**
- * Class for handling SAML2 extensions.
- *
- * @package simpleSAMLphp
- * @version $Id$
- */
-class SAML2_XML_samlp_Extensions {
-
- /**
- * Get a list of Extensions in the given element.
- *
- * @param DOMElement $parent The element that may contain the samlp:Extensions element.
- * @return array Array of extensions.
- */
- public static function getList(DOMElement $parent) {
-
- $ret = array();
- foreach (SAML2_Utils::xpQuery($parent, './saml_protocol:Extensions/*') as $node) {
- $ret[] = new SAML2_XML_Chunk($node);
- }
-
- return $ret;
- }
-
-
- /**
- * Add a list of Extensions to the given element.
- *
- * @param DOMElement $parent The element we should add the extensions to.
- * @param array $extensions List of extension objects.
- */
- public static function addList(DOMElement $parent, array $extensions) {
-
- if (empty($extensions)) {
- return;
- }
-
- $extElement = $parent->ownerDocument->createElementNS(SAML2_Const::NS_SAMLP, 'samlp:Extensions');
- $parent->appendChild($extElement);
-
- foreach ($extensions as $ext) {
- $ext->toXML($extElement);
- }
- }
-
-}