import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -17,14 +17,9 @@
|
||||
* @subpackage Zend_InfoCard_Xml
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: EncryptedData.php 9094 2008-03-30 18:36:55Z thomas $
|
||||
* @version $Id: EncryptedData.php 13213 2008-12-14 11:05:07Z thomas $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Zend_InfoCard_Xml_EncryptedData
|
||||
*/
|
||||
require_once 'Zend/InfoCard/Xml/Exception.php';
|
||||
|
||||
/**
|
||||
* A factory class for producing Zend_InfoCard_Xml_EncryptedData objects based on
|
||||
* the type of XML document provided
|
||||
@ -61,6 +56,7 @@ final class Zend_InfoCard_Xml_EncryptedData
|
||||
} else if (is_string($xmlData)) {
|
||||
$strXmlData = $xmlData;
|
||||
} else {
|
||||
require_once 'Zend/InfoCard/Xml/Exception.php';
|
||||
throw new Zend_InfoCard_Xml_Exception("Invalid Data provided to create instance");
|
||||
}
|
||||
|
||||
@ -71,7 +67,9 @@ final class Zend_InfoCard_Xml_EncryptedData
|
||||
include_once 'Zend/InfoCard/Xml/EncryptedData/XmlEnc.php';
|
||||
return simplexml_load_string($strXmlData, 'Zend_InfoCard_Xml_EncryptedData_XmlEnc');
|
||||
default:
|
||||
require_once 'Zend/InfoCard/Xml/Exception.php';
|
||||
throw new Zend_InfoCard_Xml_Exception("Unknown EncryptedData type found");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user