equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Service_WindowsAzure |
16 * @package Zend_Service_WindowsAzure |
17 * @subpackage Diagnostics |
17 * @subpackage Diagnostics |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id$ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
27 |
27 |
28 /** |
28 /** |
29 * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationDataSources |
29 * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationDataSources |
30 */ |
30 */ |
31 require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationDataSources.php'; |
31 require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationDataSources.php'; |
|
32 |
|
33 /** Zend_Xml_Security */ |
|
34 require_once 'Zend/Xml/Security.php'; |
32 |
35 |
33 /** |
36 /** |
34 * @category Zend |
37 * @category Zend |
35 * @package Zend_Service_WindowsAzure |
38 * @package Zend_Service_WindowsAzure |
36 * @subpackage Diagnostics |
39 * @subpackage Diagnostics |
37 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
40 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
38 * @license http://framework.zend.com/license/new-bsd New BSD License |
41 * @license http://framework.zend.com/license/new-bsd New BSD License |
39 * |
42 * |
40 * @property Zend_Service_WindowsAzure_Diagnostics_ConfigurationDataSources DataSources Data sources |
43 * @property Zend_Service_WindowsAzure_Diagnostics_ConfigurationDataSources DataSources Data sources |
41 */ |
44 */ |
42 class Zend_Service_WindowsAzure_Diagnostics_ConfigurationInstance |
45 class Zend_Service_WindowsAzure_Diagnostics_ConfigurationInstance |
58 * @param string $configurationXml Configuration XML |
61 * @param string $configurationXml Configuration XML |
59 */ |
62 */ |
60 public function loadXml($configurationXml) |
63 public function loadXml($configurationXml) |
61 { |
64 { |
62 // Convert to SimpleXMLElement |
65 // Convert to SimpleXMLElement |
63 $configurationXml = simplexml_load_string($configurationXml); |
66 $configurationXml = Zend_Xml_Security::scan($configurationXml); |
64 |
67 |
65 // Assign general settings |
68 // Assign general settings |
66 $this->DataSources->OverallQuotaInMB = (int)$configurationXml->DataSources->OverallQuotaInMB; |
69 $this->DataSources->OverallQuotaInMB = (int)$configurationXml->DataSources->OverallQuotaInMB; |
67 |
70 |
68 // Assign Logs settings |
71 // Assign Logs settings |