Lib_Mage - Version 1.9.1.1

Version Notes

1.9.1.1

Download this release

Release Info

Developer Magento Core Team
Extension Lib_Mage
Version 1.9.1.1
Comparing to
See all releases


Code changes from version 1.9.1.0 to 1.9.1.1

Files changed (90) hide show
  1. lib/Mage/Archive.php +4 -4
  2. lib/Mage/Archive/Abstract.php +4 -4
  3. lib/Mage/Archive/Bz.php +4 -4
  4. lib/Mage/Archive/Gz.php +4 -4
  5. lib/Mage/Archive/Helper/File.php +23 -23
  6. lib/Mage/Archive/Helper/File/Bz.php +23 -23
  7. lib/Mage/Archive/Helper/File/Gz.php +23 -23
  8. lib/Mage/Archive/Interface.php +4 -4
  9. lib/Mage/Archive/Tar.php +4 -4
  10. lib/Mage/Autoload/Simple.php +52 -52
  11. lib/Mage/Backup.php +4 -4
  12. lib/Mage/Backup/Abstract.php +4 -4
  13. lib/Mage/Backup/Archive/Tar.php +4 -4
  14. lib/Mage/Backup/Db.php +4 -4
  15. lib/Mage/Backup/Exception.php +4 -4
  16. lib/Mage/Backup/Exception/CantLoadSnapshot.php +4 -4
  17. lib/Mage/Backup/Exception/FtpConnectionFailed.php +4 -4
  18. lib/Mage/Backup/Exception/FtpValidationFailed.php +4 -4
  19. lib/Mage/Backup/Exception/NotEnoughFreeSpace.php +4 -4
  20. lib/Mage/Backup/Exception/NotEnoughPermissions.php +4 -4
  21. lib/Mage/Backup/Filesystem.php +4 -4
  22. lib/Mage/Backup/Filesystem/Helper.php +4 -4
  23. lib/Mage/Backup/Filesystem/Iterator/File.php +4 -4
  24. lib/Mage/Backup/Filesystem/Iterator/Filter.php +4 -4
  25. lib/Mage/Backup/Filesystem/Rollback/Abstract.php +4 -4
  26. lib/Mage/Backup/Filesystem/Rollback/Fs.php +4 -4
  27. lib/Mage/Backup/Filesystem/Rollback/Ftp.php +4 -4
  28. lib/Mage/Backup/Interface.php +4 -4
  29. lib/Mage/Backup/Media.php +4 -4
  30. lib/Mage/Backup/Nomedia.php +4 -4
  31. lib/Mage/Backup/Snapshot.php +4 -4
  32. lib/Mage/Cache/Backend/File.php +6 -9
  33. lib/Mage/Cache/Backend/Redis.php +6 -9
  34. lib/Mage/Connect/Channel/Generator.php +63 -63
  35. lib/Mage/Connect/Channel/Parser.php +25 -25
  36. lib/Mage/Connect/Channel/VO.php +113 -113
  37. lib/Mage/Connect/Command.php +5 -5
  38. lib/Mage/Connect/Command/Channels.php +4 -4
  39. lib/Mage/Connect/Command/Channels_Header.php +4 -5
  40. lib/Mage/Connect/Command/Config.php +211 -211
  41. lib/Mage/Connect/Command/Config_Header.php +100 -100
  42. lib/Mage/Connect/Command/Install.php +4 -4
  43. lib/Mage/Connect/Command/Install_Header.php +9 -9
  44. lib/Mage/Connect/Command/Package.php +6 -6
  45. lib/Mage/Connect/Command/Package_Header.php +5 -5
  46. lib/Mage/Connect/Command/Registry.php +5 -5
  47. lib/Mage/Connect/Command/Registry_Header.php +5 -5
  48. lib/Mage/Connect/Command/Remote.php +5 -5
  49. lib/Mage/Connect/Command/Remote_Header.php +5 -5
  50. lib/Mage/Connect/Config.php +25 -2
  51. lib/Mage/Connect/Converter.php +5 -6
  52. lib/Mage/Connect/Frontend.php +4 -4
  53. lib/Mage/Connect/Frontend/CLI.php +441 -441
  54. lib/Mage/Connect/Ftp.php +4 -4
  55. lib/Mage/Connect/Loader.php +5 -5
  56. lib/Mage/Connect/Loader/Ftp.php +5 -5
  57. lib/Mage/Connect/Package.php +5 -5
  58. lib/Mage/Connect/Package/Hotfix.php +5 -5
  59. lib/Mage/Connect/Package/Maintainer.php +1 -0
  60. lib/Mage/Connect/Package/Reader.php +5 -5
  61. lib/Mage/Connect/Package/Target.php +5 -5
  62. lib/Mage/Connect/Package/VO.php +96 -96
  63. lib/Mage/Connect/Package/Writer.php +5 -5
  64. lib/Mage/Connect/Packager.php +4 -4
  65. lib/Mage/Connect/Repository.php +1 -0
  66. lib/Mage/Connect/Repository/Abstract.php +1 -0
  67. lib/Mage/Connect/Repository/Channel.php +1 -0
  68. lib/Mage/Connect/Repository/Channel/Abstract.php +1 -0
  69. lib/Mage/Connect/Repository/Channel/Commercial.php +1 -0
  70. lib/Mage/Connect/Repository/Channel/Community.php +1 -0
  71. lib/Mage/Connect/Repository/Channel/Core.php +1 -0
  72. lib/Mage/Connect/Repository/Local.php +1 -0
  73. lib/Mage/Connect/Rest.php +12 -12
  74. lib/Mage/Connect/Singleconfig.php +5 -5
  75. lib/Mage/Connect/Structures/Graph.php +4 -4
  76. lib/Mage/Connect/Structures/Node.php +4 -4
  77. lib/Mage/Connect/Validator.php +321 -321
  78. lib/Mage/DB/Exception.php +5 -5
  79. lib/Mage/DB/Mysqli.php +5 -5
  80. lib/Mage/Exception.php +5 -5
  81. lib/Mage/HTTP/Client.php +52 -52
  82. lib/Mage/HTTP/Client/Curl.php +10 -10
  83. lib/Mage/HTTP/Client/Socket.php +503 -503
  84. lib/Mage/HTTP/IClient.php +5 -5
  85. lib/Mage/System/Args.php +4 -4
  86. lib/Mage/System/Dirs.php +24 -2
  87. lib/Mage/System/Ftp.php +4 -4
  88. lib/Mage/Xml/Generator.php +25 -1
  89. lib/Mage/Xml/Parser.php +25 -1
  90. package.xml +5 -5
lib/Mage/Archive.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
- * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Archive/Abstract.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Archive/Bz.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Archive/Gz.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Archive/Helper/File.php CHANGED
@@ -1,28 +1,28 @@
1
  <?php
2
  /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Archive
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
 
27
  /**
28
  * Helper class that simplifies files stream reading and writing
1
  <?php
2
  /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Archive
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
 
27
  /**
28
  * Helper class that simplifies files stream reading and writing
lib/Mage/Archive/Helper/File/Bz.php CHANGED
@@ -1,28 +1,28 @@
1
  <?php
2
  /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Archive
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
 
27
  /**
28
  * Helper class that simplifies bz2 files stream reading and writing
1
  <?php
2
  /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Archive
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
 
27
  /**
28
  * Helper class that simplifies bz2 files stream reading and writing
lib/Mage/Archive/Helper/File/Gz.php CHANGED
@@ -1,28 +1,28 @@
1
  <?php
2
  /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Archive
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
 
27
  /**
28
  * Helper class that simplifies gz files stream reading and writing
1
  <?php
2
  /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Archive
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
 
27
  /**
28
  * Helper class that simplifies gz files stream reading and writing
lib/Mage/Archive/Interface.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Archive/Tar.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Archive
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Autoload/Simple.php CHANGED
@@ -1,52 +1,52 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
-
27
- class Mage_Autoload_Simple
28
- {
29
- private static $_instance;
30
-
31
- public static function instance()
32
- {
33
- if (!self::$_instance) {
34
- $class = __CLASS__;
35
- self::$_instance = new $class();
36
- }
37
- return self::$_instance;
38
- }
39
-
40
- public static function register()
41
- {
42
- spl_autoload_register(array(self::instance(), 'autoload'));
43
- }
44
-
45
- public function autoload($class)
46
- {
47
- $classFile = str_replace(' ', DIRECTORY_SEPARATOR, ucwords(str_replace('_', ' ', $class)));
48
- $classFile.= '.php';
49
- @include $classFile;
50
- }
51
-
52
- }
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Autoload
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ class Mage_Autoload_Simple
28
+ {
29
+ private static $_instance;
30
+
31
+ public static function instance()
32
+ {
33
+ if (!self::$_instance) {
34
+ $class = __CLASS__;
35
+ self::$_instance = new $class();
36
+ }
37
+ return self::$_instance;
38
+ }
39
+
40
+ public static function register()
41
+ {
42
+ spl_autoload_register(array(self::instance(), 'autoload'));
43
+ }
44
+
45
+ public function autoload($class)
46
+ {
47
+ $classFile = str_replace(' ', DIRECTORY_SEPARATOR, ucwords(str_replace('_', ' ', $class)));
48
+ $classFile.= '.php';
49
+ @include $classFile;
50
+ }
51
+
52
+ }
lib/Mage/Backup.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Abstract.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Archive/Tar.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Db.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Exception.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Exception/CantLoadSnapshot.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Exception/FtpConnectionFailed.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Exception/FtpValidationFailed.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Exception/NotEnoughFreeSpace.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Exception/NotEnoughPermissions.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Filesystem.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Filesystem/Helper.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Filesystem/Iterator/File.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
 
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
 
lib/Mage/Backup/Filesystem/Iterator/Filter.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Filesystem/Rollback/Abstract.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Filesystem/Rollback/Fs.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Filesystem/Rollback/Ftp.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Interface.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Media.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Nomedia.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Backup/Snapshot.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Backup
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Cache/Backend/File.php CHANGED
@@ -10,21 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
- * @category Mage
22
- * @package Mage_Cache
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- *
26
- * Summary of changes:
27
- * - code modified to follow Magento coding standards
28
  */
29
 
30
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
+ * @category Mage
22
+ * @package Mage_Cache
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 
 
 
25
  */
26
 
27
  /**
lib/Mage/Cache/Backend/Redis.php CHANGED
@@ -10,21 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
- * @category Mage
22
- * @package Mage_Cache
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- *
26
- * Summary of changes:
27
- * - code modified to follow Magento coding standards
28
  */
29
 
30
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
+ * @category Mage
22
+ * @package Mage_Cache
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 
 
 
25
  */
26
 
27
  /**
lib/Mage/Connect/Channel/Generator.php CHANGED
@@ -1,63 +1,63 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
-
27
- class Mage_Connect_Channel_Generator extends Mage_Xml_Generator
28
- {
29
- protected $_file = 'channel.xml';
30
- protected $_generator = null;
31
-
32
- public function __construct($file='')
33
- {
34
- if ($file) {
35
- $this->_file = $file;
36
- }
37
- return $this;
38
- }
39
-
40
- public function getFile()
41
- {
42
- return $this->_file;
43
- }
44
-
45
- public function getGenerator()
46
- {
47
- if (is_null($this->_generator)) {
48
- $this->_generator = new Mage_Xml_Generator();
49
- }
50
- return $this->_generator;
51
- }
52
-
53
- /**
54
- * @param array $content
55
- */
56
- public function save($content)
57
- {
58
- $xmlContent = $this->getGenerator()
59
- ->arrayToXml($content)
60
- ->save($this->getFile());
61
- return $this;
62
- }
63
- }
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ class Mage_Connect_Channel_Generator extends Mage_Xml_Generator
28
+ {
29
+ protected $_file = 'channel.xml';
30
+ protected $_generator = null;
31
+
32
+ public function __construct($file='')
33
+ {
34
+ if ($file) {
35
+ $this->_file = $file;
36
+ }
37
+ return $this;
38
+ }
39
+
40
+ public function getFile()
41
+ {
42
+ return $this->_file;
43
+ }
44
+
45
+ public function getGenerator()
46
+ {
47
+ if (is_null($this->_generator)) {
48
+ $this->_generator = new Mage_Xml_Generator();
49
+ }
50
+ return $this->_generator;
51
+ }
52
+
53
+ /**
54
+ * @param array $content
55
+ */
56
+ public function save($content)
57
+ {
58
+ $xmlContent = $this->getGenerator()
59
+ ->arrayToXml($content)
60
+ ->save($this->getFile());
61
+ return $this;
62
+ }
63
+ }
lib/Mage/Connect/Channel/Parser.php CHANGED
@@ -1,25 +1,25 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
lib/Mage/Connect/Channel/VO.php CHANGED
@@ -1,113 +1,113 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
-
27
-
28
- class Mage_Connect_Channel_VO implements Iterator
29
- {
30
-
31
- private $_validator = null;
32
-
33
- protected $properties = array(
34
- 'name' => '',
35
- 'uri' => '',
36
- 'summary' => '',
37
- );
38
-
39
- public function rewind() {
40
- reset($this->properties);
41
- }
42
-
43
- public function valid() {
44
- return current($this->properties) !== false;
45
- }
46
-
47
- public function key() {
48
- return key($this->properties);
49
- }
50
-
51
- public function current() {
52
- return current($this->properties);
53
- }
54
-
55
- public function next() {
56
- next($this->properties);
57
- }
58
-
59
- public function __get($var)
60
- {
61
- if (isset($this->properties[$var])) {
62
- return $this->properties[$var];
63
- }
64
- return null;
65
- }
66
-
67
- public function __set($var, $value)
68
- {
69
- if (is_string($value)) {
70
- $value = trim($value);
71
- }
72
- if (isset($this->properties[$var])) {
73
- if ($value === null) {
74
- $value = '';
75
- }
76
- $this->properties[$var] = $value;
77
- }
78
- }
79
-
80
- public function toArray()
81
- {
82
- return array('channel' => $this->properties);
83
- }
84
-
85
- public function fromArray(array $arr)
86
- {
87
- foreach($arr as $k=>$v) {
88
- $this->$k = $v;
89
- }
90
- }
91
-
92
-
93
- private function validator()
94
- {
95
- if(is_null($this->_validator)) {
96
- $this->_validator = new Mage_Connect_Validator();
97
- }
98
- return $this->_validator;
99
- }
100
-
101
- /**
102
- Stub for validation result
103
- */
104
- public function validate()
105
- {
106
- $v = $this->validator();
107
- if(!$v->validatePackageName($this->name)) {
108
- return false;
109
- }
110
- return true;
111
- }
112
-
113
- }
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+
28
+ class Mage_Connect_Channel_VO implements Iterator
29
+ {
30
+
31
+ private $_validator = null;
32
+
33
+ protected $properties = array(
34
+ 'name' => '',
35
+ 'uri' => '',
36
+ 'summary' => '',
37
+ );
38
+
39
+ public function rewind() {
40
+ reset($this->properties);
41
+ }
42
+
43
+ public function valid() {
44
+ return current($this->properties) !== false;
45
+ }
46
+
47
+ public function key() {
48
+ return key($this->properties);
49
+ }
50
+
51
+ public function current() {
52
+ return current($this->properties);
53
+ }
54
+
55
+ public function next() {
56
+ next($this->properties);
57
+ }
58
+
59
+ public function __get($var)
60
+ {
61
+ if (isset($this->properties[$var])) {
62
+ return $this->properties[$var];
63
+ }
64
+ return null;
65
+ }
66
+
67
+ public function __set($var, $value)
68
+ {
69
+ if (is_string($value)) {
70
+ $value = trim($value);
71
+ }
72
+ if (isset($this->properties[$var])) {
73
+ if ($value === null) {
74
+ $value = '';
75
+ }
76
+ $this->properties[$var] = $value;
77
+ }
78
+ }
79
+
80
+ public function toArray()
81
+ {
82
+ return array('channel' => $this->properties);
83
+ }
84
+
85
+ public function fromArray(array $arr)
86
+ {
87
+ foreach($arr as $k=>$v) {
88
+ $this->$k = $v;
89
+ }
90
+ }
91
+
92
+
93
+ private function validator()
94
+ {
95
+ if(is_null($this->_validator)) {
96
+ $this->_validator = new Mage_Connect_Validator();
97
+ }
98
+ return $this->_validator;
99
+ }
100
+
101
+ /**
102
+ Stub for validation result
103
+ */
104
+ public function validate()
105
+ {
106
+ $v = $this->validator();
107
+ if(!$v->validatePackageName($this->name)) {
108
+ return false;
109
+ }
110
+ return true;
111
+ }
112
+
113
+ }
lib/Mage/Connect/Command.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
 
@@ -387,4 +387,4 @@ class Mage_Connect_Command
387
  return self::$_packager;
388
  }
389
 
390
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
 
387
  return self::$_packager;
388
  }
389
 
390
+ }
lib/Mage/Connect/Command/Channels.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  final class Mage_Connect_Command_Channels
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  final class Mage_Connect_Command_Channels
lib/Mage/Connect/Command/Channels_Header.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
@@ -102,4 +102,3 @@ remote server, it only deletes the stored username and password from your user
102
  configuration.',
103
  ),
104
  );
105
-
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
102
  configuration.',
103
  ),
104
  );
 
lib/Mage/Connect/Command/Config.php CHANGED
@@ -1,211 +1,211 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
-
27
-
28
- class Mage_Connect_Command_Config
29
- extends Mage_Connect_Command
30
-
31
- {
32
- const PARAM_KEY = 0;
33
- const PARAM_VAL = 1;
34
-
35
-
36
- /**
37
- * Show config variable
38
- * @param string $command
39
- * @param array $options
40
- * @param array $params
41
- * @return void
42
- */
43
- public function doConfigShow($command, $options, $params)
44
- {
45
- $this->cleanupParams($params);
46
-
47
- try {
48
- $values = array();
49
-
50
- $packager = $this->getPackager();
51
- $ftp = empty($options['ftp']) ? false : $options['ftp'];
52
- if($ftp) {
53
- list($config, $ftpObj) = $packager->getRemoteConfig($ftp);
54
- } else {
55
- $config = $this->config();
56
- }
57
- foreach( $config as $k=>$v ) {
58
- $values[$k] = $v;
59
- }
60
- if($ftp) {
61
- @unlink($config->getFilename());
62
- }
63
- $data = array($command => array('data'=>$values));
64
- $this->ui()->output($data);
65
- } catch (Exception $e) {
66
- if($ftp) {
67
- @unlink($config->getFilename());
68
- }
69
- return $this->doError($command, $e->getMessage());
70
- }
71
- }
72
-
73
-
74
- /**
75
- * Set config variable
76
- * @param string $command
77
- * @param array $options
78
- * @param array $params
79
- * @return void
80
- */
81
- public function doConfigSet($command, $options, $params)
82
- {
83
- $this->cleanupParams($params);
84
-
85
- try {
86
- if(count($params) < 2) {
87
- throw new Exception("Parameters count should be >= 2");
88
- }
89
- $key = strtolower($params[self::PARAM_KEY]);
90
- $val = strval($params[self::PARAM_VAL]);
91
- $packager = $this->getPackager();
92
-
93
- $ftp = empty($options['ftp']) ? false : $options['ftp'];
94
- if($ftp) {
95
- list($config, $ftpObj) = $packager->getRemoteConfig($ftp);
96
- } else {
97
- $config = $this->config();
98
- }
99
-
100
- if(!$config->hasKey($key)) {
101
- throw new Exception ("No such config variable: {$key}!");
102
- }
103
- if(!$config->validate($key, $val)) {
104
- $possible = $this->config()->possible($key);
105
- $type = $this->config()->type($key);
106
- $errString = "Invalid value specified for $key!";
107
- throw new Exception($errString);
108
- }
109
- if($ftp) {
110
- $packager->writeToRemoteConfig($config, $ftpObj);
111
- }
112
- $this->config()->$key = $val;
113
- $this->ui()->output('Success');
114
- } catch (Exception $e) {
115
- if($ftp) {
116
- @unlink($config->getFilename());
117
- }
118
- return $this->doError($command, $e->getMessage());
119
- }
120
- }
121
-
122
- /**
123
- * Get config var
124
- * @param string $command
125
- * @param array $options
126
- * @param array $params
127
- * @return void
128
- */
129
- public function doConfigGet($command, $options, $params)
130
- {
131
- $this->cleanupParams($params);
132
-
133
- try {
134
- if(count($params) < 1) {
135
- throw new Exception("Parameters count should be >= 1");
136
- }
137
- $packager = $this->getPackager();
138
- $ftp = empty($options['ftp']) ? false : $options['ftp'];
139
- if($ftp) {
140
- list($config, $ftpObj) = $packager->getRemoteConfig($ftp);
141
- } else {
142
- $config = $this->config();
143
- }
144
- $key = strtolower($params[self::PARAM_KEY]);
145
- if(!$config->hasKey($key)) {
146
- throw new Exception("No such config variable '{$key}'!");
147
- }
148
- if($ftp) {
149
- @unlink($config->getFilename());
150
- }
151
- $this->ui()->output($config->$key);
152
- } catch (Exception $e) {
153
- if($ftp) {
154
- @unlink($config->getFilename());
155
- }
156
- return $this->doError($command, $e->getMessage());
157
- }
158
- }
159
-
160
- /**
161
- * Config help
162
- * @param string $command
163
- * @param array $options
164
- * @param array $params
165
- * @return void
166
- */
167
- public function doConfigHelp($command, $options, $params)
168
- {
169
- try {
170
- $this->cleanupParams($params);
171
- if(count($params) < 1) {
172
- throw new Exception( "Parameters count should be >= 1");
173
- }
174
- $packager = $this->getPackager();
175
- $ftp = empty($options['ftp']) ? false : $options['ftp'];
176
- if($ftp) {
177
- list($config, $ftpObj) = $packager->getRemoteConfig($ftp);
178
- } else {
179
- $config = $this->config();
180
- }
181
-
182
- $key = strtolower($params[self::PARAM_KEY]);
183
- if(!$this->config()->hasKey($key)) {
184
- throw new Exception("No such config variable '{$key}'!");
185
- }
186
-
187
- $possible = $config->possible($key);
188
- $type = $config->type($key);
189
- $doc = $config->doc($key);
190
- if($ftp) {
191
- @unlink($config->getFilename());
192
- }
193
- $data = array();
194
- $data[$command]['data'] = array(
195
- 'name' => array('Variable name', $key),
196
- 'type' => array('Value type', $type),
197
- 'possible' => array('Possible values', $possible),
198
- 'doc' => $doc,
199
- );
200
- $this->ui()->output($data);
201
- } catch (Exception $e) {
202
- if($ftp) {
203
- @unlink($config->getFilename());
204
- }
205
- return $this->doError($command, $e->getMessage());
206
- }
207
- }
208
-
209
- }
210
-
211
-
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+
28
+ class Mage_Connect_Command_Config
29
+ extends Mage_Connect_Command
30
+
31
+ {
32
+ const PARAM_KEY = 0;
33
+ const PARAM_VAL = 1;
34
+
35
+
36
+ /**
37
+ * Show config variable
38
+ * @param string $command
39
+ * @param array $options
40
+ * @param array $params
41
+ * @return void
42
+ */
43
+ public function doConfigShow($command, $options, $params)
44
+ {
45
+ $this->cleanupParams($params);
46
+
47
+ try {
48
+ $values = array();
49
+
50
+ $packager = $this->getPackager();
51
+ $ftp = empty($options['ftp']) ? false : $options['ftp'];
52
+ if($ftp) {
53
+ list($config, $ftpObj) = $packager->getRemoteConfig($ftp);
54
+ } else {
55
+ $config = $this->config();
56
+ }
57
+ foreach( $config as $k=>$v ) {
58
+ $values[$k] = $v;
59
+ }
60
+ if($ftp) {
61
+ @unlink($config->getFilename());
62
+ }
63
+ $data = array($command => array('data'=>$values));
64
+ $this->ui()->output($data);
65
+ } catch (Exception $e) {
66
+ if($ftp) {
67
+ @unlink($config->getFilename());
68
+ }
69
+ return $this->doError($command, $e->getMessage());
70
+ }
71
+ }
72
+
73
+
74
+ /**
75
+ * Set config variable
76
+ * @param string $command
77
+ * @param array $options
78
+ * @param array $params
79
+ * @return void
80
+ */
81
+ public function doConfigSet($command, $options, $params)
82
+ {
83
+ $this->cleanupParams($params);
84
+
85
+ try {
86
+ if(count($params) < 2) {
87
+ throw new Exception("Parameters count should be >= 2");
88
+ }
89
+ $key = strtolower($params[self::PARAM_KEY]);
90
+ $val = strval($params[self::PARAM_VAL]);
91
+ $packager = $this->getPackager();
92
+
93
+ $ftp = empty($options['ftp']) ? false : $options['ftp'];
94
+ if($ftp) {
95
+ list($config, $ftpObj) = $packager->getRemoteConfig($ftp);
96
+ } else {
97
+ $config = $this->config();
98
+ }
99
+
100
+ if(!$config->hasKey($key)) {
101
+ throw new Exception ("No such config variable: {$key}!");
102
+ }
103
+ if(!$config->validate($key, $val)) {
104
+ $possible = $this->config()->possible($key);
105
+ $type = $this->config()->type($key);
106
+ $errString = "Invalid value specified for $key!";
107
+ throw new Exception($errString);
108
+ }
109
+ if($ftp) {
110
+ $packager->writeToRemoteConfig($config, $ftpObj);
111
+ }
112
+ $this->config()->$key = $val;
113
+ $this->ui()->output('Success');
114
+ } catch (Exception $e) {
115
+ if($ftp) {
116
+ @unlink($config->getFilename());
117
+ }
118
+ return $this->doError($command, $e->getMessage());
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Get config var
124
+ * @param string $command
125
+ * @param array $options
126
+ * @param array $params
127
+ * @return void
128
+ */
129
+ public function doConfigGet($command, $options, $params)
130
+ {
131
+ $this->cleanupParams($params);
132
+
133
+ try {
134
+ if(count($params) < 1) {
135
+ throw new Exception("Parameters count should be >= 1");
136
+ }
137
+ $packager = $this->getPackager();
138
+ $ftp = empty($options['ftp']) ? false : $options['ftp'];
139
+ if($ftp) {
140
+ list($config, $ftpObj) = $packager->getRemoteConfig($ftp);
141
+ } else {
142
+ $config = $this->config();
143
+ }
144
+ $key = strtolower($params[self::PARAM_KEY]);
145
+ if(!$config->hasKey($key)) {
146
+ throw new Exception("No such config variable '{$key}'!");
147
+ }
148
+ if($ftp) {
149
+ @unlink($config->getFilename());
150
+ }
151
+ $this->ui()->output($config->$key);
152
+ } catch (Exception $e) {
153
+ if($ftp) {
154
+ @unlink($config->getFilename());
155
+ }
156
+ return $this->doError($command, $e->getMessage());
157
+ }
158
+ }
159
+
160
+ /**
161
+ * Config help
162
+ * @param string $command
163
+ * @param array $options
164
+ * @param array $params
165
+ * @return void
166
+ */
167
+ public function doConfigHelp($command, $options, $params)
168
+ {
169
+ try {
170
+ $this->cleanupParams($params);
171
+ if(count($params) < 1) {
172
+ throw new Exception( "Parameters count should be >= 1");
173
+ }
174
+ $packager = $this->getPackager();
175
+ $ftp = empty($options['ftp']) ? false : $options['ftp'];
176
+ if($ftp) {
177
+ list($config, $ftpObj) = $packager->getRemoteConfig($ftp);
178
+ } else {
179
+ $config = $this->config();
180
+ }
181
+
182
+ $key = strtolower($params[self::PARAM_KEY]);
183
+ if(!$this->config()->hasKey($key)) {
184
+ throw new Exception("No such config variable '{$key}'!");
185
+ }
186
+
187
+ $possible = $config->possible($key);
188
+ $type = $config->type($key);
189
+ $doc = $config->doc($key);
190
+ if($ftp) {
191
+ @unlink($config->getFilename());
192
+ }
193
+ $data = array();
194
+ $data[$command]['data'] = array(
195
+ 'name' => array('Variable name', $key),
196
+ 'type' => array('Value type', $type),
197
+ 'possible' => array('Possible values', $possible),
198
+ 'doc' => $doc,
199
+ );
200
+ $this->ui()->output($data);
201
+ } catch (Exception $e) {
202
+ if($ftp) {
203
+ @unlink($config->getFilename());
204
+ }
205
+ return $this->doError($command, $e->getMessage());
206
+ }
207
+ }
208
+
209
+ }
210
+
211
+
lib/Mage/Connect/Command/Config_Header.php CHANGED
@@ -1,100 +1,100 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
-
27
- $commands = array(
28
- 'config-show' => array(
29
- 'summary' => 'Show All Settings',
30
- 'function' => 'doConfigShow',
31
- 'shortcut' => 'csh',
32
- 'options' => array(
33
- 'channel' => array(
34
- 'shortopt' => 'c',
35
- 'doc' => 'show configuration variables for another channel',
36
- 'arg' => 'CHAN',
37
- ),
38
- ),
39
- 'doc' => '[layer]
40
- Displays all configuration values. An optional argument
41
- may be used to tell which configuration layer to display. Valid
42
- configuration layers are "user", "system" and "default". To display
43
- configurations for different channels, set the default_channel
44
- configuration variable and run config-show again.
45
- ',
46
- ),
47
- 'config-get' => array(
48
- 'summary' => 'Show One Setting',
49
- 'function' => 'doConfigGet',
50
- 'shortcut' => 'cg',
51
- 'options' => array(
52
- 'channel' => array(
53
- 'shortopt' => 'c',
54
- 'doc' => 'show configuration variables for another channel',
55
- 'arg' => 'CHAN',
56
- ),
57
- ),
58
- 'doc' => '<parameter> [layer]
59
- Displays the value of one configuration parameter. The
60
- first argument is the name of the parameter, an optional second argument
61
- may be used to tell which configuration layer to look in. Valid configuration
62
- layers are "user", "system" and "default". If no layer is specified, a value
63
- will be picked from the first layer that defines the parameter, in the order
64
- just specified. The configuration value will be retrieved for the channel
65
- specified by the default_channel configuration variable.
66
- ',
67
- ),
68
- 'config-set' => array(
69
- 'summary' => 'Change Setting',
70
- 'function' => 'doConfigSet',
71
- 'shortcut' => 'cs',
72
- 'options' => array(
73
- 'channel' => array(
74
- 'shortopt' => 'c',
75
- 'doc' => 'show configuration variables for another channel',
76
- 'arg' => 'CHAN',
77
- ),
78
- ),
79
- 'doc' => '<parameter> <value> [layer]
80
- Sets the value of one configuration parameter. The first argument is
81
- the name of the parameter, the second argument is the new value. Some
82
- parameters are subject to validation, and the command will fail with
83
- an error message if the new value does not make sense. An optional
84
- third argument may be used to specify in which layer to set the
85
- configuration parameter. The default layer is "user". The
86
- configuration value will be set for the current channel, which
87
- is controlled by the default_channel configuration variable.
88
- ',
89
- ),
90
- 'config-help' => array(
91
- 'summary' => 'Show Information About Setting',
92
- 'function' => 'doConfigHelp',
93
- 'shortcut' => 'ch',
94
- 'options' => array(),
95
- 'doc' => '[parameter]
96
- Displays help for a configuration parameter. Without arguments it
97
- displays help for all configuration parameters.
98
- ',
99
- ),
100
- );
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ $commands = array(
28
+ 'config-show' => array(
29
+ 'summary' => 'Show All Settings',
30
+ 'function' => 'doConfigShow',
31
+ 'shortcut' => 'csh',
32
+ 'options' => array(
33
+ 'channel' => array(
34
+ 'shortopt' => 'c',
35
+ 'doc' => 'show configuration variables for another channel',
36
+ 'arg' => 'CHAN',
37
+ ),
38
+ ),
39
+ 'doc' => '[layer]
40
+ Displays all configuration values. An optional argument
41
+ may be used to tell which configuration layer to display. Valid
42
+ configuration layers are "user", "system" and "default". To display
43
+ configurations for different channels, set the default_channel
44
+ configuration variable and run config-show again.
45
+ ',
46
+ ),
47
+ 'config-get' => array(
48
+ 'summary' => 'Show One Setting',
49
+ 'function' => 'doConfigGet',
50
+ 'shortcut' => 'cg',
51
+ 'options' => array(
52
+ 'channel' => array(
53
+ 'shortopt' => 'c',
54
+ 'doc' => 'show configuration variables for another channel',
55
+ 'arg' => 'CHAN',
56
+ ),
57
+ ),
58
+ 'doc' => '<parameter> [layer]
59
+ Displays the value of one configuration parameter. The
60
+ first argument is the name of the parameter, an optional second argument
61
+ may be used to tell which configuration layer to look in. Valid configuration
62
+ layers are "user", "system" and "default". If no layer is specified, a value
63
+ will be picked from the first layer that defines the parameter, in the order
64
+ just specified. The configuration value will be retrieved for the channel
65
+ specified by the default_channel configuration variable.
66
+ ',
67
+ ),
68
+ 'config-set' => array(
69
+ 'summary' => 'Change Setting',
70
+ 'function' => 'doConfigSet',
71
+ 'shortcut' => 'cs',
72
+ 'options' => array(
73
+ 'channel' => array(
74
+ 'shortopt' => 'c',
75
+ 'doc' => 'show configuration variables for another channel',
76
+ 'arg' => 'CHAN',
77
+ ),
78
+ ),
79
+ 'doc' => '<parameter> <value> [layer]
80
+ Sets the value of one configuration parameter. The first argument is
81
+ the name of the parameter, the second argument is the new value. Some
82
+ parameters are subject to validation, and the command will fail with
83
+ an error message if the new value does not make sense. An optional
84
+ third argument may be used to specify in which layer to set the
85
+ configuration parameter. The default layer is "user". The
86
+ configuration value will be set for the current channel, which
87
+ is controlled by the default_channel configuration variable.
88
+ ',
89
+ ),
90
+ 'config-help' => array(
91
+ 'summary' => 'Show Information About Setting',
92
+ 'function' => 'doConfigHelp',
93
+ 'shortcut' => 'ch',
94
+ 'options' => array(),
95
+ 'doc' => '[parameter]
96
+ Displays help for a configuration parameter. Without arguments it
97
+ displays help for all configuration parameters.
98
+ ',
99
+ ),
100
+ );
lib/Mage/Connect/Command/Install.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
 
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
 
lib/Mage/Connect/Command/Install_Header.php CHANGED
@@ -10,29 +10,29 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
28
 
29
- 'install-file' => array(
30
  'summary' => 'Install Package Archive File',
31
  'function' => 'doInstall',
32
  'shortcut' => 'if',
33
  'options' => array(),
34
- 'doc' => '',
35
- ),
36
  'install' => array(
37
  'summary' => 'Install Package',
38
  'function' => 'doInstall',
@@ -64,7 +64,7 @@ $commands = array(
64
  'ftp=' => array(
65
  'shortopt' => 'r=',
66
  'doc' => 'Remote side FTP connect string',
67
- ),
68
  ),
69
  'doc' => '[channel/]<package> ...
70
  Installs one or more PEAR packages. You can specify a package to
@@ -234,4 +234,4 @@ Uninstalls one or more PEAR packages. More than one package may be
234
  specified at once. Prefix with channel name to uninstall from a
235
  channel not in your default channel ({config default_channel})
236
  '),
237
- );
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
28
 
29
+ 'install-file' => array(
30
  'summary' => 'Install Package Archive File',
31
  'function' => 'doInstall',
32
  'shortcut' => 'if',
33
  'options' => array(),
34
+ 'doc' => '',
35
+ ),
36
  'install' => array(
37
  'summary' => 'Install Package',
38
  'function' => 'doInstall',
64
  'ftp=' => array(
65
  'shortopt' => 'r=',
66
  'doc' => 'Remote side FTP connect string',
67
+ ),
68
  ),
69
  'doc' => '[channel/]<package> ...
70
  Installs one or more PEAR packages. You can specify a package to
234
  specified at once. Prefix with channel name to uninstall from a
235
  channel not in your default channel ({config default_channel})
236
  '),
237
+ );
lib/Mage/Connect/Command/Package.php CHANGED
@@ -6,22 +6,22 @@
6
  *
7
  * This source file is subject to the Open Software License (OSL 3.0)
8
  * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide- web at this URL:
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  final class Mage_Connect_Command_Package
@@ -131,4 +131,4 @@ extends Mage_Connect_Command
131
 
132
  }
133
 
134
- }
6
  *
7
  * This source file is subject to the Open Software License (OSL 3.0)
8
  * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  final class Mage_Connect_Command_Package
131
 
132
  }
133
 
134
+ }
lib/Mage/Connect/Command/Package_Header.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
@@ -64,4 +64,4 @@ Can take a tgz / tar file, package.xml or a package name of an installed package
64
  'options' => array(),
65
  'doc' => ''
66
  ),
67
- );
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
64
  'options' => array(),
65
  'doc' => ''
66
  ),
67
+ );
lib/Mage/Connect/Command/Registry.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  final class Mage_Connect_Command_Registry
@@ -172,4 +172,4 @@ extends Mage_Connect_Command
172
  $this->doError($command, $e->getMessage());
173
  }
174
  }
175
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  final class Mage_Connect_Command_Registry
172
  $this->doError($command, $e->getMessage());
173
  }
174
  }
175
+ }
lib/Mage/Connect/Command/Registry_Header.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
@@ -65,4 +65,4 @@ Displays information about a package. The package argument may be a
65
  local package file, an URL to a package file, or the name of an
66
  installed package.'
67
  )
68
- );
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
65
  local package file, an URL to a package file, or the name of an
66
  installed package.'
67
  )
68
+ );
lib/Mage/Connect/Command/Remote.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  final class Mage_Connect_Command_Remote
@@ -223,4 +223,4 @@ extends Mage_Connect_Command
223
 
224
 
225
 
226
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  final class Mage_Connect_Command_Remote
223
 
224
 
225
 
226
+ }
lib/Mage/Connect/Command/Remote_Header.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
@@ -85,4 +85,4 @@ Clear the XML-RPC/REST cache. See also the cache_ttl configuration
85
  parameter.
86
  ',
87
  ),
88
- );
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  $commands = array(
85
  parameter.
86
  ',
87
  ),
88
+ );
lib/Mage/Connect/Config.php CHANGED
@@ -1,5 +1,28 @@
1
  <?php
2
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  class Mage_Connect_Config
4
  implements Iterator
5
  {
@@ -262,4 +285,4 @@ implements Iterator
262
  return $out;
263
  }
264
 
265
- }
1
  <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
  class Mage_Connect_Config
27
  implements Iterator
28
  {
285
  return $out;
286
  }
287
 
288
+ }
lib/Mage/Connect/Converter.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  /**
4
  * Magento
5
  *
@@ -11,18 +10,18 @@
11
  * http://opensource.org/licenses/osl-3.0.php
12
  * If you did not receive a copy of the license and are unable to
13
  * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
  *
16
  * DISCLAIMER
17
  *
18
  * Do not edit or add to this file if you wish to upgrade Magento to newer
19
  * versions in the future. If you wish to customize Magento for your
20
- * needs please refer to http://www.magentocommerce.com for more information.
21
  *
22
  * @category Mage
23
  * @package Mage_Connect
24
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
25
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
26
  */
27
 
28
  /**
@@ -334,4 +333,4 @@ final class Mage_Connect_Converter
334
 
335
 
336
 
337
- }
1
  <?php
 
2
  /**
3
  * Magento
4
  *
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
333
 
334
 
335
 
336
+ }
lib/Mage/Connect/Frontend.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  class Mage_Connect_Frontend
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  class Mage_Connect_Frontend
lib/Mage/Connect/Frontend/CLI.php CHANGED
@@ -1,441 +1,441 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
-
27
- /**
28
- * CLI Frontend implementation
29
- *
30
- * @category Mage
31
- * @package Mage_Connect
32
- * @author Magento Core Team <core@magentocommerce.com>
33
- */
34
-
35
- class Mage_Connect_Frontend_CLI
36
- extends Mage_Connect_Frontend
37
- {
38
-
39
- /**
40
- * Collected output
41
- * @var array
42
- */
43
- protected $_output = array();
44
-
45
- /**
46
- * Output error
47
- * @param string $command
48
- * @param string $message
49
- * @return void
50
- */
51
- public function doError($command, $message)
52
- {
53
- parent::doError($command, $message);
54
- $this->writeln("Error: ");
55
- $this->writeln("$command: $message");
56
- }
57
-
58
-
59
- /**
60
- * Output config help
61
- * @param array $data
62
- * @return void
63
- */
64
- public function outputConfigHelp($data)
65
- {
66
- foreach($data['data'] as $k=>$v) {
67
- if(is_scalar($v)) {
68
- $this->writeln($v);
69
- } elseif(is_array($v)) {
70
- $this->writeln(implode(": ", $v));
71
- }
72
- }
73
- }
74
-
75
-
76
- /**
77
- * Output info
78
- * @param array $data
79
- * @return void
80
- */
81
- public function outputRemoteInfo($data)
82
- {
83
- if(!is_array($data['releases'])) {
84
- return;
85
- }
86
- foreach ($data['releases'] as $r) {
87
- $this->writeln(implode(" ", $r));
88
- }
89
- }
90
-
91
-
92
- public function detectMethodByType($type)
93
- {
94
- $defaultMethod = "output";
95
- $methodMap = array(
96
- 'list-upgrades'=> 'outputUpgrades',
97
- 'list-available' => 'outputChannelsPackages',
98
- 'list-installed' => 'writeInstalledList',
99
- 'package-dependencies' => 'outputPackageDeps',
100
- 'list-files' => 'outputPackageContents',
101
- 'config-help' => 'outputConfigHelp',
102
- 'info' => 'outputRemoteInfo',
103
- 'config-show' => 'outputConfig',
104
- 'install' => 'outputInstallResult',
105
- 'install-file' => 'outputInstallResult',
106
- 'upgrade' => 'outputInstallResult',
107
- 'upgrade-all' => 'outputInstallResult',
108
- 'uninstall' => 'outputDeleted',
109
- 'list-channels' => 'outputListChannels',
110
- );
111
- if(isset($methodMap[$type])) {
112
- return $methodMap[$type];
113
- }
114
- return $defaultMethod;
115
- }
116
-
117
-
118
- public function outputDeleted($data)
119
- {
120
- if(!count($data['data'])) {
121
- return;
122
- }
123
- $this->writeln($data['title']);
124
- foreach($data['data'] as $row) {
125
- $this->writeln("$row[0]/$row[1]");
126
- }
127
- }
128
-
129
- public function outputListChannels($data)
130
- {
131
- $this->writeln($data['title']);
132
-
133
- $channels =& $data['data'][Mage_Connect_Singleconfig::K_CHAN];
134
- foreach($channels as $name => $v) {
135
- $this->writeln("$name: {$v[Mage_Connect_Singleconfig::K_URI]}");
136
- }
137
- $aliases =& $data['data'][Mage_Connect_Singleconfig::K_CHAN_ALIAS];
138
- if(count($aliases)) {
139
- $this->writeln();
140
- $this->writeln($data['title_aliases']);
141
- foreach($aliases as $k=>$v) {
142
- $this->writeln("$k => $v");
143
- }
144
- }
145
-
146
- }
147
-
148
- /**
149
- * Output install result
150
- * @param array $data
151
- * @return void
152
- */
153
- public function outputInstallResult($data)
154
- {
155
- if(isset($data['title'])) {
156
- $title = trim($data['title'])." ";
157
- } else {
158
- $title = '';
159
- }
160
- foreach($data['assoc'] as $row) {
161
- $this->printf("%s%s/%s %s\n", $title, $row['channel'], $row['name'], $row['version']);
162
- }
163
- }
164
-
165
- /**
166
- * Ouptut package contents
167
- * @param array $data
168
- * @return void
169
- */
170
- public function outputPackageContents($data)
171
- {
172
- $this->writeln($data['title']);
173
- foreach($data['data'] as $file) {
174
- $this->writeln($file);
175
- }
176
- }
177
-
178
- /**
179
- * Output package dependencies
180
- * @param $data
181
- * @return void
182
- */
183
- public function outputPackageDeps($data)
184
- {
185
- $title = $data['title'];
186
- $this->writeln($title);
187
- foreach($data['data'] as $package) {
188
- $this->printf("%-20s %-20s %-20s %-20s\n", $package['channel'], $package['name'], $package['min'], $package['max']);
189
- }
190
- }
191
-
192
- /**
193
- * Ouptut channel packages
194
- * @param $data
195
- * @return unknown_type
196
- */
197
- public function outputChannelsPackages($data)
198
- {
199
- foreach($data['data'] as $channelInfo) {
200
- $title =& $channelInfo['title'];
201
- $packages =& $channelInfo['packages'];
202
- $this->writeln($title);
203
- foreach($packages as $name=>$package) {
204
- $releases =& $package['releases'];
205
- $tmp = array();
206
- foreach($releases as $ver=>$state) {
207
- $tmp[] = "$ver $state";
208
- }
209
- $tmp = implode(',',$tmp);
210
- $this->writeln($name.": ".$tmp);
211
- }
212
- }
213
- }
214
-
215
-
216
- /**
217
- * Make output
218
- *
219
- * @param array $data
220
- * @return void
221
- */
222
-
223
- public function output($data)
224
- {
225
- $capture = $this->isCapture();
226
- if($capture) {
227
- $this->_output[] = $data;
228
- return;
229
- }
230
-
231
- if(is_array($data)) {
232
- foreach($data as $type=>$params) {
233
- $method = $this->detectMethodByType($type);
234
- if($method) {
235
- $this->$method($params);
236
- } else {
237
- $this->writeln(__METHOD__." handler not found for {$type}");
238
- }
239
- }
240
- } else {
241
- $this->writeln($data);
242
- }
243
- }
244
-
245
-
246
- /**
247
- * Detailed package info
248
- * @param Mage_Connect_Package $package
249
- * @return void
250
- */
251
- public function outputPackage($package)
252
- {
253
- $fields = array(
254
- 'Name'=>'name',
255
- 'Version'=>'version',
256
- 'Stability'=>'stability',
257
- 'Description' => 'description',
258
- 'Date' => 'date',
259
- 'Authors' => 'authors',
260
- );
261
-
262
- foreach($fields as $title => $fld) {
263
- $method = "get".ucfirst($fld);
264
- $data = $package->$method();
265
- if(empty($data)) {
266
- continue;
267
- }
268
- $this->write($title.": ");
269
- if(is_array($data)) {
270
- $this->write(print_r($data,true));
271
- } else {
272
- $this->write($data);
273
- }
274
- $this->writeln('');
275
- }
276
- }
277
-
278
-
279
- /**
280
- * Write channels list
281
- * @param array $data
282
- * @return void
283
- */
284
- public function writeChannelsList($data)
285
- {
286
- $this->writeln("Channels available: ");
287
- $this->writeln("===================");
288
- $out = $data['byName'];
289
- ksort($out);
290
- foreach($out as $k=>$v) {
291
- $this->printf ("%-20s %-20s\n", $k, $v);
292
- }
293
- }
294
-
295
- /**
296
- * Write installed list
297
- * @param array $data
298
- * @return void
299
- */
300
- public function writeInstalledList($data)
301
- {
302
- $totalCount = 0;
303
- foreach($data['data'] as $channel=>$packages) {
304
- $title = sprintf($data['channel-title'], $channel);
305
- $c = count($packages);
306
- $totalCount += $c;
307
- if(!$c) {
308
- continue;
309
- }
310
- $this->writeln($title);
311
- foreach($packages as $name=>$row) {
312
- $this->printf("%-20s %-20s\n", $name, $row['version']." ".$row['stability']);
313
- }
314
- }
315
- if($totalCount === 0) {
316
- $this->writeln("No installed packages");
317
- }
318
- }
319
-
320
- /**
321
- * Output commands list
322
- * @param array $data
323
- * @return void
324
- */
325
- public function outputCommandList($data)
326
- {
327
- $this->writeln("Connect commands available:");
328
- $this->writeln("===========================");
329
- foreach ($data as $k=>$v) {
330
- $this->printf ("%-20s %-20s\n", $k, $v['summary']);
331
- }
332
- }
333
-
334
- /**
335
- * Output config
336
- * @param array $data
337
- * @return void
338
- */
339
- public function outputConfig($data)
340
- {
341
- foreach($data['data'] as $name=>$row) {
342
- $value = $row['value'] === '' ? "<not set>" : strval($row['value']);
343
- $this->printf("%-30s %-20s %-20s\n", $row['prompt'], $name, $value);
344
- }
345
- }
346
-
347
- /**
348
- * Output config variable
349
- * @param string $key
350
- * @param string $value
351
- * @return void
352
- */
353
- public function outputConfigVariable($key, $value)
354
- {
355
- if($value === '') {
356
- $value = '<not set>';
357
- }
358
- $this->writeln("Config variable '{$key}': {$value}");
359
- }
360
-
361
- /**
362
- * Write data and "\n" afterwards
363
- * @param string $data
364
- * @return void
365
- */
366
- public function writeln($data = '')
367
- {
368
- $this->write($data."\n");
369
- }
370
-
371
-
372
- /**
373
- * get output, clear if needed
374
- *
375
- * @param bool $clearPrevoius optional, true by default
376
- * @return array
377
- */
378
- public function getOutput($clearPrevious = true)
379
- {
380
- $out = $this->_output;
381
- if($clearPrevious) {
382
- $this->_output = array();
383
- }
384
- return $out;
385
- }
386
-
387
- /**
388
- * Write data to console
389
- * @param string $data
390
- * @return void
391
- */
392
- public function write($data)
393
- {
394
- if($this->isSilent()) {
395
- return;
396
- }
397
- print $data;
398
- }
399
-
400
- /**
401
- * Output printf-stlye formatted string and args
402
- * @return void
403
- */
404
- public function printf()
405
- {
406
- $args = func_get_args();
407
- $this->write(call_user_func_array('sprintf', $args));
408
- }
409
-
410
- /**
411
- * Readline from console
412
- * @return string
413
- */
414
- public function readln()
415
- {
416
- $out = "";
417
- $key = fgetc(STDIN);
418
- while ($key!="\n") {
419
- $out.= $key;
420
- $key = fread(STDIN, 1);
421
- }
422
- return $out;
423
- }
424
-
425
- /**
426
- * Output upgrades
427
- * @param array $data
428
- * @return void
429
- */
430
- public function outputUpgrades($data)
431
- {
432
- foreach($data['data'] as $chan => $packages) {
433
- $this->writeln("Updates for ".$chan.": ");
434
- foreach($packages as $name => $data) {
435
- $this->writeln(" $name: {$data['from']} => {$data['to']}");
436
- }
437
- }
438
- }
439
-
440
- }
441
-
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ /**
28
+ * CLI Frontend implementation
29
+ *
30
+ * @category Mage
31
+ * @package Mage_Connect
32
+ * @author Magento Core Team <core@magentocommerce.com>
33
+ */
34
+
35
+ class Mage_Connect_Frontend_CLI
36
+ extends Mage_Connect_Frontend
37
+ {
38
+
39
+ /**
40
+ * Collected output
41
+ * @var array
42
+ */
43
+ protected $_output = array();
44
+
45
+ /**
46
+ * Output error
47
+ * @param string $command
48
+ * @param string $message
49
+ * @return void
50
+ */
51
+ public function doError($command, $message)
52
+ {
53
+ parent::doError($command, $message);
54
+ $this->writeln("Error: ");
55
+ $this->writeln("$command: $message");
56
+ }
57
+
58
+
59
+ /**
60
+ * Output config help
61
+ * @param array $data
62
+ * @return void
63
+ */
64
+ public function outputConfigHelp($data)
65
+ {
66
+ foreach($data['data'] as $k=>$v) {
67
+ if(is_scalar($v)) {
68
+ $this->writeln($v);
69
+ } elseif(is_array($v)) {
70
+ $this->writeln(implode(": ", $v));
71
+ }
72
+ }
73
+ }
74
+
75
+
76
+ /**
77
+ * Output info
78
+ * @param array $data
79
+ * @return void
80
+ */
81
+ public function outputRemoteInfo($data)
82
+ {
83
+ if(!is_array($data['releases'])) {
84
+ return;
85
+ }
86
+ foreach ($data['releases'] as $r) {
87
+ $this->writeln(implode(" ", $r));
88
+ }
89
+ }
90
+
91
+
92
+ public function detectMethodByType($type)
93
+ {
94
+ $defaultMethod = "output";
95
+ $methodMap = array(
96
+ 'list-upgrades'=> 'outputUpgrades',
97
+ 'list-available' => 'outputChannelsPackages',
98
+ 'list-installed' => 'writeInstalledList',
99
+ 'package-dependencies' => 'outputPackageDeps',
100
+ 'list-files' => 'outputPackageContents',
101
+ 'config-help' => 'outputConfigHelp',
102
+ 'info' => 'outputRemoteInfo',
103
+ 'config-show' => 'outputConfig',
104
+ 'install' => 'outputInstallResult',
105
+ 'install-file' => 'outputInstallResult',
106
+ 'upgrade' => 'outputInstallResult',
107
+ 'upgrade-all' => 'outputInstallResult',
108
+ 'uninstall' => 'outputDeleted',
109
+ 'list-channels' => 'outputListChannels',
110
+ );
111
+ if(isset($methodMap[$type])) {
112
+ return $methodMap[$type];
113
+ }
114
+ return $defaultMethod;
115
+ }
116
+
117
+
118
+ public function outputDeleted($data)
119
+ {
120
+ if(!count($data['data'])) {
121
+ return;
122
+ }
123
+ $this->writeln($data['title']);
124
+ foreach($data['data'] as $row) {
125
+ $this->writeln("$row[0]/$row[1]");
126
+ }
127
+ }
128
+
129
+ public function outputListChannels($data)
130
+ {
131
+ $this->writeln($data['title']);
132
+
133
+ $channels =& $data['data'][Mage_Connect_Singleconfig::K_CHAN];
134
+ foreach($channels as $name => $v) {
135
+ $this->writeln("$name: {$v[Mage_Connect_Singleconfig::K_URI]}");
136
+ }
137
+ $aliases =& $data['data'][Mage_Connect_Singleconfig::K_CHAN_ALIAS];
138
+ if(count($aliases)) {
139
+ $this->writeln();
140
+ $this->writeln($data['title_aliases']);
141
+ foreach($aliases as $k=>$v) {
142
+ $this->writeln("$k => $v");
143
+ }
144
+ }
145
+
146
+ }
147
+
148
+ /**
149
+ * Output install result
150
+ * @param array $data
151
+ * @return void
152
+ */
153
+ public function outputInstallResult($data)
154
+ {
155
+ if(isset($data['title'])) {
156
+ $title = trim($data['title'])." ";
157
+ } else {
158
+ $title = '';
159
+ }
160
+ foreach($data['assoc'] as $row) {
161
+ $this->printf("%s%s/%s %s\n", $title, $row['channel'], $row['name'], $row['version']);
162
+ }
163
+ }
164
+
165
+ /**
166
+ * Ouptut package contents
167
+ * @param array $data
168
+ * @return void
169
+ */
170
+ public function outputPackageContents($data)
171
+ {
172
+ $this->writeln($data['title']);
173
+ foreach($data['data'] as $file) {
174
+ $this->writeln($file);
175
+ }
176
+ }
177
+
178
+ /**
179
+ * Output package dependencies
180
+ * @param $data
181
+ * @return void
182
+ */
183
+ public function outputPackageDeps($data)
184
+ {
185
+ $title = $data['title'];
186
+ $this->writeln($title);
187
+ foreach($data['data'] as $package) {
188
+ $this->printf("%-20s %-20s %-20s %-20s\n", $package['channel'], $package['name'], $package['min'], $package['max']);
189
+ }
190
+ }
191
+
192
+ /**
193
+ * Ouptut channel packages
194
+ * @param $data
195
+ * @return unknown_type
196
+ */
197
+ public function outputChannelsPackages($data)
198
+ {
199
+ foreach($data['data'] as $channelInfo) {
200
+ $title =& $channelInfo['title'];
201
+ $packages =& $channelInfo['packages'];
202
+ $this->writeln($title);
203
+ foreach($packages as $name=>$package) {
204
+ $releases =& $package['releases'];
205
+ $tmp = array();
206
+ foreach($releases as $ver=>$state) {
207
+ $tmp[] = "$ver $state";
208
+ }
209
+ $tmp = implode(',',$tmp);
210
+ $this->writeln($name.": ".$tmp);
211
+ }
212
+ }
213
+ }
214
+
215
+
216
+ /**
217
+ * Make output
218
+ *
219
+ * @param array $data
220
+ * @return void
221
+ */
222
+
223
+ public function output($data)
224
+ {
225
+ $capture = $this->isCapture();
226
+ if($capture) {
227
+ $this->_output[] = $data;
228
+ return;
229
+ }
230
+
231
+ if(is_array($data)) {
232
+ foreach($data as $type=>$params) {
233
+ $method = $this->detectMethodByType($type);
234
+ if($method) {
235
+ $this->$method($params);
236
+ } else {
237
+ $this->writeln(__METHOD__." handler not found for {$type}");
238
+ }
239
+ }
240
+ } else {
241
+ $this->writeln($data);
242
+ }
243
+ }
244
+
245
+
246
+ /**
247
+ * Detailed package info
248
+ * @param Mage_Connect_Package $package
249
+ * @return void
250
+ */
251
+ public function outputPackage($package)
252
+ {
253
+ $fields = array(
254
+ 'Name'=>'name',
255
+ 'Version'=>'version',
256
+ 'Stability'=>'stability',
257
+ 'Description' => 'description',
258
+ 'Date' => 'date',
259
+ 'Authors' => 'authors',
260
+ );
261
+
262
+ foreach($fields as $title => $fld) {
263
+ $method = "get".ucfirst($fld);
264
+ $data = $package->$method();
265
+ if(empty($data)) {
266
+ continue;
267
+ }
268
+ $this->write($title.": ");
269
+ if(is_array($data)) {
270
+ $this->write(print_r($data,true));
271
+ } else {
272
+ $this->write($data);
273
+ }
274
+ $this->writeln('');
275
+ }
276
+ }
277
+
278
+
279
+ /**
280
+ * Write channels list
281
+ * @param array $data
282
+ * @return void
283
+ */
284
+ public function writeChannelsList($data)
285
+ {
286
+ $this->writeln("Channels available: ");
287
+ $this->writeln("===================");
288
+ $out = $data['byName'];
289
+ ksort($out);
290
+ foreach($out as $k=>$v) {
291
+ $this->printf ("%-20s %-20s\n", $k, $v);
292
+ }
293
+ }
294
+
295
+ /**
296
+ * Write installed list
297
+ * @param array $data
298
+ * @return void
299
+ */
300
+ public function writeInstalledList($data)
301
+ {
302
+ $totalCount = 0;
303
+ foreach($data['data'] as $channel=>$packages) {
304
+ $title = sprintf($data['channel-title'], $channel);
305
+ $c = count($packages);
306
+ $totalCount += $c;
307
+ if(!$c) {
308
+ continue;
309
+ }
310
+ $this->writeln($title);
311
+ foreach($packages as $name=>$row) {
312
+ $this->printf("%-20s %-20s\n", $name, $row['version']." ".$row['stability']);
313
+ }
314
+ }
315
+ if($totalCount === 0) {
316
+ $this->writeln("No installed packages");
317
+ }
318
+ }
319
+
320
+ /**
321
+ * Output commands list
322
+ * @param array $data
323
+ * @return void
324
+ */
325
+ public function outputCommandList($data)
326
+ {
327
+ $this->writeln("Connect commands available:");
328
+ $this->writeln("===========================");
329
+ foreach ($data as $k=>$v) {
330
+ $this->printf ("%-20s %-20s\n", $k, $v['summary']);
331
+ }
332
+ }
333
+
334
+ /**
335
+ * Output config
336
+ * @param array $data
337
+ * @return void
338
+ */
339
+ public function outputConfig($data)
340
+ {
341
+ foreach($data['data'] as $name=>$row) {
342
+ $value = $row['value'] === '' ? "<not set>" : strval($row['value']);
343
+ $this->printf("%-30s %-20s %-20s\n", $row['prompt'], $name, $value);
344
+ }
345
+ }
346
+
347
+ /**
348
+ * Output config variable
349
+ * @param string $key
350
+ * @param string $value
351
+ * @return void
352
+ */
353
+ public function outputConfigVariable($key, $value)
354
+ {
355
+ if($value === '') {
356
+ $value = '<not set>';
357
+ }
358
+ $this->writeln("Config variable '{$key}': {$value}");
359
+ }
360
+
361
+ /**
362
+ * Write data and "\n" afterwards
363
+ * @param string $data
364
+ * @return void
365
+ */
366
+ public function writeln($data = '')
367
+ {
368
+ $this->write($data."\n");
369
+ }
370
+
371
+
372
+ /**
373
+ * get output, clear if needed
374
+ *
375
+ * @param bool $clearPrevoius optional, true by default
376
+ * @return array
377
+ */
378
+ public function getOutput($clearPrevious = true)
379
+ {
380
+ $out = $this->_output;
381
+ if($clearPrevious) {
382
+ $this->_output = array();
383
+ }
384
+ return $out;
385
+ }
386
+
387
+ /**
388
+ * Write data to console
389
+ * @param string $data
390
+ * @return void
391
+ */
392
+ public function write($data)
393
+ {
394
+ if($this->isSilent()) {
395
+ return;
396
+ }
397
+ print $data;
398
+ }
399
+
400
+ /**
401
+ * Output printf-stlye formatted string and args
402
+ * @return void
403
+ */
404
+ public function printf()
405
+ {
406
+ $args = func_get_args();
407
+ $this->write(call_user_func_array('sprintf', $args));
408
+ }
409
+
410
+ /**
411
+ * Readline from console
412
+ * @return string
413
+ */
414
+ public function readln()
415
+ {
416
+ $out = "";
417
+ $key = fgetc(STDIN);
418
+ while ($key!="\n") {
419
+ $out.= $key;
420
+ $key = fread(STDIN, 1);
421
+ }
422
+ return $out;
423
+ }
424
+
425
+ /**
426
+ * Output upgrades
427
+ * @param array $data
428
+ * @return void
429
+ */
430
+ public function outputUpgrades($data)
431
+ {
432
+ foreach($data['data'] as $chan => $packages) {
433
+ $this->writeln("Updates for ".$chan.": ");
434
+ foreach($packages as $name => $data) {
435
+ $this->writeln(" $name: {$data['from']} => {$data['to']}");
436
+ }
437
+ }
438
+ }
439
+
440
+ }
441
+
lib/Mage/Connect/Ftp.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Connect/Loader.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -48,4 +48,4 @@ class Mage_Connect_Loader
48
  }
49
  }
50
 
51
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
48
  }
49
  }
50
 
51
+ }
lib/Mage/Connect/Loader/Ftp.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -118,4 +118,4 @@ class Mage_Connect_Loader_Ftp
118
  return $this->_responseBody;
119
  }
120
 
121
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
118
  return $this->_responseBody;
119
  }
120
 
121
+ }
lib/Mage/Connect/Package.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -1274,7 +1274,7 @@ END;
1274
  */
1275
  public function hasErrors()
1276
  {
1277
- return count($this->_validationErrors) != 0;
1278
  }
1279
 
1280
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
1274
  */
1275
  public function hasErrors()
1276
  {
1277
+ return count($this->_validationErrors) != 0;
1278
  }
1279
 
1280
  /**
lib/Mage/Connect/Package/Hotfix.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -134,4 +134,4 @@ END;
134
  return $this;
135
  }
136
 
137
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
134
  return $this;
135
  }
136
 
137
+ }
lib/Mage/Connect/Package/Maintainer.php CHANGED
@@ -0,0 +1 @@
 
1
+
lib/Mage/Connect/Package/Reader.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -147,4 +147,4 @@ class Mage_Connect_Package_Reader
147
  return $data;
148
  }
149
 
150
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
147
  return $data;
148
  }
149
 
150
+ }
lib/Mage/Connect/Package/Target.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -123,4 +123,4 @@ class Mage_Connect_Package_Target
123
  }
124
 
125
 
126
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
123
  }
124
 
125
 
126
+ }
lib/Mage/Connect/Package/VO.php CHANGED
@@ -1,96 +1,96 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
- */
26
-
27
- class Mage_Connect_Package_VO implements Iterator
28
- {
29
- protected $properties = array(
30
- 'name' => '',
31
- 'package_type_vesrion' => '',
32
- 'cahnnel' => '',
33
- 'extends' => '',
34
- 'summary' => '',
35
- 'description' => '',
36
- 'authors' => '',
37
- 'date' => '',
38
- 'time' => '',
39
- 'version' => '',
40
- 'stability' => 'dev',
41
- 'license' => '',
42
- 'license_uri' => '',
43
- 'contents' => '',
44
- 'compatible' => '',
45
- 'hotfix' => ''
46
- );
47
-
48
- public function rewind() {
49
- reset($this->properties);
50
- }
51
-
52
- public function valid() {
53
- return current($this->properties) !== false;
54
- }
55
-
56
- public function key() {
57
- return key($this->properties);
58
- }
59
-
60
- public function current() {
61
- return current($this->properties);
62
- }
63
-
64
- public function next() {
65
- next($this->properties);
66
- }
67
-
68
- public function __get($var)
69
- {
70
- if (isset($this->properties[$var])) {
71
- return $this->properties[$var];
72
- }
73
- return null;
74
- }
75
-
76
- public function __set($var, $value)
77
- {
78
- if (is_string($value)) {
79
- $value = trim($value);
80
- }
81
- if (isset($this->properties[$var])) {
82
- if ($value === null) {
83
- $value = '';
84
- }
85
- $this->properties[$var] = $value;
86
- }
87
- }
88
-
89
- public function toArray()
90
- {
91
- return $this->properties;
92
- }
93
-
94
- }
95
-
96
-
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
+
27
+ class Mage_Connect_Package_VO implements Iterator
28
+ {
29
+ protected $properties = array(
30
+ 'name' => '',
31
+ 'package_type_vesrion' => '',
32
+ 'cahnnel' => '',
33
+ 'extends' => '',
34
+ 'summary' => '',
35
+ 'description' => '',
36
+ 'authors' => '',
37
+ 'date' => '',
38
+ 'time' => '',
39
+ 'version' => '',
40
+ 'stability' => 'dev',
41
+ 'license' => '',
42
+ 'license_uri' => '',
43
+ 'contents' => '',
44
+ 'compatible' => '',
45
+ 'hotfix' => ''
46
+ );
47
+
48
+ public function rewind() {
49
+ reset($this->properties);
50
+ }
51
+
52
+ public function valid() {
53
+ return current($this->properties) !== false;
54
+ }
55
+
56
+ public function key() {
57
+ return key($this->properties);
58
+ }
59
+
60
+ public function current() {
61
+ return current($this->properties);
62
+ }
63
+
64
+ public function next() {
65
+ next($this->properties);
66
+ }
67
+
68
+ public function __get($var)
69
+ {
70
+ if (isset($this->properties[$var])) {
71
+ return $this->properties[$var];
72
+ }
73
+ return null;
74
+ }
75
+
76
+ public function __set($var, $value)
77
+ {
78
+ if (is_string($value)) {
79
+ $value = trim($value);
80
+ }
81
+ if (isset($this->properties[$var])) {
82
+ if ($value === null) {
83
+ $value = '';
84
+ }
85
+ $this->properties[$var] = $value;
86
+ }
87
+ }
88
+
89
+ public function toArray()
90
+ {
91
+ return $this->properties;
92
+ }
93
+
94
+ }
95
+
96
+
lib/Mage/Connect/Package/Writer.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -206,4 +206,4 @@ class Mage_Connect_Package_Writer
206
  return $this->_pathToArchive;
207
  }
208
 
209
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
206
  return $this->_pathToArchive;
207
  }
208
 
209
+ }
lib/Mage/Connect/Packager.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Connect/Repository.php CHANGED
@@ -0,0 +1 @@
 
1
+
lib/Mage/Connect/Repository/Abstract.php CHANGED
@@ -0,0 +1 @@
 
1
+
lib/Mage/Connect/Repository/Channel.php CHANGED
@@ -0,0 +1 @@
 
1
+
lib/Mage/Connect/Repository/Channel/Abstract.php CHANGED
@@ -0,0 +1 @@
 
1
+
lib/Mage/Connect/Repository/Channel/Commercial.php CHANGED
@@ -0,0 +1 @@
 
1
+
lib/Mage/Connect/Repository/Channel/Community.php CHANGED
@@ -0,0 +1 @@
 
1
+
lib/Mage/Connect/Repository/Channel/Core.php CHANGED
@@ -0,0 +1 @@
 
1
+
lib/Mage/Connect/Repository/Local.php CHANGED
@@ -0,0 +1 @@
 
1
+
lib/Mage/Connect/Rest.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -217,15 +217,15 @@ class Mage_Connect_Rest
217
  }
218
  $return = $output;
219
  }
220
-
221
  $out = array();
222
  foreach($return as $name=>$package) {
223
  $stabilities = array_map(array($this, 'shortStateToLong'), array_keys($package));
224
- $versions = array_map('trim', array_values($package));
225
  $package = array_combine($versions, $stabilities);
226
  ksort($package);
227
  $out[$name] = $package;
228
- }
229
  return $out;
230
  }
231
 
@@ -335,8 +335,8 @@ class Mage_Connect_Rest
335
  }
336
  }
337
  }
338
-
339
-
340
  $out = $this->loadChannelUri($package."/".$version."/".$package."-".$version.".".self::EXT);
341
 
342
  $statusCode = $this->getLoader()->getStatus();
@@ -353,12 +353,12 @@ class Mage_Connect_Rest
353
  }
354
 
355
  protected $states = array('b'=>'beta', 'd'=>'dev', 's'=>'stable', 'a'=>'alpha');
356
-
357
  public function shortStateToLong($s)
358
  {
359
  return isset($this->states[$s]) ? $this->states[$s] : 'dev';
360
  }
361
-
362
-
363
  }
364
 
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
217
  }
218
  $return = $output;
219
  }
220
+
221
  $out = array();
222
  foreach($return as $name=>$package) {
223
  $stabilities = array_map(array($this, 'shortStateToLong'), array_keys($package));
224
+ $versions = array_map('trim', array_values($package));
225
  $package = array_combine($versions, $stabilities);
226
  ksort($package);
227
  $out[$name] = $package;
228
+ }
229
  return $out;
230
  }
231
 
335
  }
336
  }
337
  }
338
+
339
+
340
  $out = $this->loadChannelUri($package."/".$version."/".$package."-".$version.".".self::EXT);
341
 
342
  $statusCode = $this->getLoader()->getStatus();
353
  }
354
 
355
  protected $states = array('b'=>'beta', 'd'=>'dev', 's'=>'stable', 'a'=>'alpha');
356
+
357
  public function shortStateToLong($s)
358
  {
359
  return isset($this->states[$s]) ? $this->states[$s] : 'dev';
360
  }
361
+
362
+
363
  }
364
 
lib/Mage/Connect/Singleconfig.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -862,4 +862,4 @@ class Mage_Connect_Singleconfig
862
 
863
 
864
 
865
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
862
 
863
 
864
 
865
+ }
lib/Mage/Connect/Structures/Graph.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  class Mage_Connect_Structures_Graph
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  class Mage_Connect_Structures_Graph
lib/Mage/Connect/Structures/Node.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  class Mage_Connect_Structures_Node
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  class Mage_Connect_Structures_Node
lib/Mage/Connect/Validator.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -34,78 +34,78 @@
34
 
35
  class Mage_Connect_Validator
36
  {
37
- protected static $_stability = array(0=>'devel',1=>'alpha',2=>'beta',3=>'stable');
38
-
39
-
40
- public static function getStabilities()
41
- {
42
- return self::$_stability;
43
- }
44
-
45
-
46
-
47
- /**
48
- * Compare stabilities. Returns:
49
- *
50
- * -1 if the first stability is lower than the second
51
- * 0 if they are equal
52
- * 1 if the second is lower.
53
- * @param $s1
54
- * @param $s2
55
- * @return int
56
- */
57
- public function compareStabilities($s1, $s2)
58
- {
59
- $list = $this->getStabilities();
60
- $tmp = array_combine(array_values($list),array_keys($list));
61
-
62
- if(!isset($tmp[$s1], $tmp[$s2])) {
63
- throw new Exception("Invalid stability in compareStabilities argument");
64
- }
65
-
66
-
67
- // 'stable' turns to 3
68
- // 'devel' turns to 0
69
- $s1 = $tmp[$s1];
70
- $s2 = $tmp[$s2];
71
- if($s1 === $s2) {
72
- return 0;
73
- } elseif($s1 > $s2) {
74
- return 1;
75
- } elseif($s1 < $s2) {
76
- return -1;
77
- }
78
- }
79
-
80
- /**
81
- * Constructor
82
- */
83
- public function __construct()
84
- {
85
-
86
- }
87
-
88
- /**
89
- * Validate max len of string
90
- * @param string $str
91
- * @param int $maxLen
92
- * @return bool
93
- */
94
- public function validateMaxLen($str, $maxLen)
95
- {
96
- return strlen((string) $str) <= (int) $maxLen;
97
- }
98
-
99
- /**
100
  * Validate channel name and url
101
  *
102
  * @param mixed $str
103
  * @return bool
104
  */
105
  public function validateChannelNameOrUri($str)
106
- {
107
- return ( $this->validateUrl($str) || $this->validatePackageName($str));
108
- }
109
 
110
  /**
111
  * Validate License url
@@ -126,18 +126,18 @@ class Mage_Connect_Validator
126
  * @param array $data
127
  * @return bool
128
  */
129
- public function validateCompatible(array $data)
130
- {
131
- if(!count($data)) {
132
- /**
133
- * Allow empty
134
- */
135
  return true;
136
  }
137
  $count = 0;
138
  foreach($data as $k=>$v) {
139
  foreach(array('name','channel','min','max') as $fld) {
140
- $$fld = trim($v[$fld]);
141
  }
142
  $count++;
143
 
@@ -159,259 +159,259 @@ class Mage_Connect_Validator
159
  $this->addError("Invalid or empty maxVersion in compat. #{$count}");
160
  }
161
  if($res1 && $res2 && $this->versionLower($max, $min)) {
162
- $this->addError("Max version is lower than min in compat #{$count}");
163
  }
164
 
165
  }
166
  return ! $this->hasErrors();
167
- }
168
-
169
- /**
170
- * Validate authors of package
171
- * @param array $authors
172
- * @return bool
173
- */
174
- public function validateAuthors(array $authors)
175
- {
176
- if(!count($authors)) {
177
- $this->addError('Empty authors section');
178
- return false;
179
- }
180
- $count = 0;
181
- foreach($authors as $k=>$v) {
182
- $count++;
183
- array_map('trim', $v);
184
- $name = $v['name'];
185
- $login = $v['user'];
186
- $email = $v['email'];
187
- $res = $this->validateMaxLen($name, 256) && strlen($name);
188
  if(!$res) {
189
  $this->addError("Invalid or empty name for author #{$count}");
190
  }
191
- $res = $this->validatePackageName($login) && strlen($login);
192
- if(!$res) {
193
- $this->addError("Invalid or empty login for author #{$count}");
194
- }
195
- $res = $this->validateEmail($email);
196
- if(!$res) {
197
- $this->addError("Invalid or empty email for author #{$count}");
198
- }
199
- }
200
- return ! $this->hasErrors();
201
- }
202
-
203
-
204
- /**
205
- * Validator errors
206
- * @var array
207
- */
208
- private $_errors = array();
209
-
210
- /**
211
- * Add error
212
- * @param string $err
213
- * @return
214
- */
215
- private function addError($err)
216
- {
217
- $this->_errors[] = $err;
218
- }
219
-
220
- /**
221
- * Set validator errors
222
- * @param array $err
223
- * @return
224
- */
225
-
226
- private function setErrors(array $err)
227
- {
228
- $this->_errors = $err;
229
- }
230
-
231
- /**
232
- * Clear validator errors
233
- * @return
234
- */
235
- private function clearErrors()
236
- {
237
- $this->_errors = array();
238
- }
239
-
240
- /**
241
- * Check if there are validator errors set
242
- * @return unknown_type
243
- */
244
- public function hasErrors()
245
- {
246
- return count($this->_errors) != 0;
247
- }
248
-
249
-
250
- /**
251
- * Get errors
252
- * @param bool $clear if true after this call erros will be cleared
253
- * @return array
254
- */
255
- public function getErrors($clear = true)
256
- {
257
- $out = $this->_errors;
258
- if($clear) {
259
- $this->clearErrors();
260
- }
261
- return $out;
262
- }
263
-
264
- /**
265
- * Validate URL
266
- * @param string $str
267
- * @return bool
268
- */
269
- public function validateUrl($str)
270
- {
271
- $regex = "@([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}|"
272
- ."(((news|telnet|nttp|file|http|ftp|https)://)|(www|ftp)"
273
- ."[-A-Za-z0-9]*\\.)[-A-Za-z0-9\\.]+)(:[0-9]*)?@i";
274
- return preg_match($regex, $str);
275
- }
276
-
277
-
278
- /**
279
- * Validates package stability
280
- * @param string $str
281
- * @return bool
282
- */
283
- public function validateStability($str)
284
- {
285
- return in_array(strval($str), self::$_stability);
286
- }
287
-
288
- /**
289
- * Validate date format
290
- * @param $date
291
- * @return bool
292
- */
293
- public function validateDate($date)
294
- {
295
- $subs = null;
296
- $check1 = preg_match("/^([\d]{4})-([\d]{2})-([\d]{2})$/i", $date, $subs);
297
- if(!$check1) {
298
- return false;
299
- }
300
- return checkdate($subs[2], $subs[3], $subs[1]);
301
- }
302
-
303
-
304
- /**
305
- * Validate email
306
- * @param string $email
307
- * @return bool
308
- */
309
- public function validateEmail($email)
310
- {
311
- return preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $email);
312
- }
313
-
314
- /**
315
- * Validate package name
316
- * @param $name
317
- * @return bool
318
- */
319
- public function validatePackageName($name)
320
- {
321
- return preg_match("/^[a-zA-Z0-9_-]+$/i", $name);
322
- }
323
-
324
- /**
325
- * Validate version number
326
- * @param string $version
327
- * @return bool
328
- */
329
- public function validateVersion($version)
330
- {
331
- return preg_match("/^[\d]+\.[\d]+\.[\d]+([[:alnum:]\.\-\_]+)?$/i", $version);
332
- }
333
-
334
- /**
335
- * Check versions are equal
336
- * @param string $v1
337
- * @param string $v2
338
- * @return bool
339
- */
340
- public function versionEqual($v1, $v2)
341
- {
342
- return version_compare($v1, $v2, "==");
343
- }
344
-
345
- /**
346
- * Check version $v1 <= $v2
347
- * @param string $v1
348
- * @param string $v2
349
- * @return bool
350
- */
351
- public function versionLowerEqual($v1, $v2)
352
- {
353
- return version_compare($v1, $v2, "le");
354
- }
355
-
356
-
357
- /**
358
- * Check if version $v1 lower than $v2
359
- * @param string $v1
360
- * @param string $v2
361
- * @return bool
362
- */
363
- public function versionLower($v1, $v2)
364
- {
365
- return version_compare($v1, $v2, "<");
366
- }
367
-
368
- /**
369
- * Check version $v1 >= $v2
370
- * @param string $v1
371
- * @param string $v2
372
- * @return bool
373
- */
374
- public function versionGreaterEqual($v1, $v2)
375
- {
376
- return version_compare($v1, $v2, "ge");
377
- }
378
-
379
-
380
- /**
381
- * Generic regex validation
382
- * @param string $str
383
- * @param string $regex
384
- * @return bool
385
- */
386
- public function validateRegex($str, $regex)
387
- {
388
- return preg_match($regex, $str);
389
- }
390
-
391
-
392
- /**
393
- * Check if PHP extension loaded
394
- * @param string $name Extension name
395
- * @return bool
396
- */
397
- public function validatePhpExtension($name)
398
- {
399
  return extension_loaded($name);
400
- }
401
 
402
 
403
- public function validatePHPVersion($min, $max, $ver = PHP_VERSION)
404
- {
405
- $minAccepted = true;
406
- if($min) {
407
- $minAccepted = version_compare($ver, $min, ">=");
408
- }
409
- $maxAccepted = true;
410
- if($max) {
411
- $maxAccepted = version_compate($ver, $max, "<=");
412
- }
413
- return (bool) $minAccepted && $maxAccepted;
414
- }
415
 
416
 
417
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_Connect
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
34
 
35
  class Mage_Connect_Validator
36
  {
37
+ protected static $_stability = array(0=>'devel',1=>'alpha',2=>'beta',3=>'stable');
38
+
39
+
40
+ public static function getStabilities()
41
+ {
42
+ return self::$_stability;
43
+ }
44
+
45
+
46
+
47
+ /**
48
+ * Compare stabilities. Returns:
49
+ *
50
+ * -1 if the first stability is lower than the second
51
+ * 0 if they are equal
52
+ * 1 if the second is lower.
53
+ * @param $s1
54
+ * @param $s2
55
+ * @return int
56
+ */
57
+ public function compareStabilities($s1, $s2)
58
+ {
59
+ $list = $this->getStabilities();
60
+ $tmp = array_combine(array_values($list),array_keys($list));
61
+
62
+ if(!isset($tmp[$s1], $tmp[$s2])) {
63
+ throw new Exception("Invalid stability in compareStabilities argument");
64
+ }
65
+
66
+
67
+ // 'stable' turns to 3
68
+ // 'devel' turns to 0
69
+ $s1 = $tmp[$s1];
70
+ $s2 = $tmp[$s2];
71
+ if($s1 === $s2) {
72
+ return 0;
73
+ } elseif($s1 > $s2) {
74
+ return 1;
75
+ } elseif($s1 < $s2) {
76
+ return -1;
77
+ }
78
+ }
79
+
80
+ /**
81
+ * Constructor
82
+ */
83
+ public function __construct()
84
+ {
85
+
86
+ }
87
+
88
+ /**
89
+ * Validate max len of string
90
+ * @param string $str
91
+ * @param int $maxLen
92
+ * @return bool
93
+ */
94
+ public function validateMaxLen($str, $maxLen)
95
+ {
96
+ return strlen((string) $str) <= (int) $maxLen;
97
+ }
98
+
99
+ /**
100
  * Validate channel name and url
101
  *
102
  * @param mixed $str
103
  * @return bool
104
  */
105
  public function validateChannelNameOrUri($str)
106
+ {
107
+ return ( $this->validateUrl($str) || $this->validatePackageName($str));
108
+ }
109
 
110
  /**
111
  * Validate License url
126
  * @param array $data
127
  * @return bool
128
  */
129
+ public function validateCompatible(array $data)
130
+ {
131
+ if(!count($data)) {
132
+ /**
133
+ * Allow empty
134
+ */
135
  return true;
136
  }
137
  $count = 0;
138
  foreach($data as $k=>$v) {
139
  foreach(array('name','channel','min','max') as $fld) {
140
+ $$fld = trim($v[$fld]);
141
  }
142
  $count++;
143
 
159
  $this->addError("Invalid or empty maxVersion in compat. #{$count}");
160
  }
161
  if($res1 && $res2 && $this->versionLower($max, $min)) {
162
+ $this->addError("Max version is lower than min in compat #{$count}");
163
  }
164
 
165
  }
166
  return ! $this->hasErrors();
167
+ }
168
+
169
+ /**
170
+ * Validate authors of package
171
+ * @param array $authors
172
+ * @return bool
173
+ */
174
+ public function validateAuthors(array $authors)
175
+ {
176
+ if(!count($authors)) {
177
+ $this->addError('Empty authors section');
178
+ return false;
179
+ }
180
+ $count = 0;
181
+ foreach($authors as $k=>$v) {
182
+ $count++;
183
+ array_map('trim', $v);
184
+ $name = $v['name'];
185
+ $login = $v['user'];
186
+ $email = $v['email'];
187
+ $res = $this->validateMaxLen($name, 256) && strlen($name);
188
  if(!$res) {
189
  $this->addError("Invalid or empty name for author #{$count}");
190
  }
191
+ $res = $this->validatePackageName($login) && strlen($login);
192
+ if(!$res) {
193
+ $this->addError("Invalid or empty login for author #{$count}");
194
+ }
195
+ $res = $this->validateEmail($email);
196
+ if(!$res) {
197
+ $this->addError("Invalid or empty email for author #{$count}");
198
+ }
199
+ }
200
+ return ! $this->hasErrors();
201
+ }
202
+
203
+
204
+ /**
205
+ * Validator errors
206
+ * @var array
207
+ */
208
+ private $_errors = array();
209
+
210
+ /**
211
+ * Add error
212
+ * @param string $err
213
+ * @return
214
+ */
215
+ private function addError($err)
216
+ {
217
+ $this->_errors[] = $err;
218
+ }
219
+
220
+ /**
221
+ * Set validator errors
222
+ * @param array $err
223
+ * @return
224
+ */
225
+
226
+ private function setErrors(array $err)
227
+ {
228
+ $this->_errors = $err;
229
+ }
230
+
231
+ /**
232
+ * Clear validator errors
233
+ * @return
234
+ */
235
+ private function clearErrors()
236
+ {
237
+ $this->_errors = array();
238
+ }
239
+
240
+ /**
241
+ * Check if there are validator errors set
242
+ * @return unknown_type
243
+ */
244
+ public function hasErrors()
245
+ {
246
+ return count($this->_errors) != 0;
247
+ }
248
+
249
+
250
+ /**
251
+ * Get errors
252
+ * @param bool $clear if true after this call erros will be cleared
253
+ * @return array
254
+ */
255
+ public function getErrors($clear = true)
256
+ {
257
+ $out = $this->_errors;
258
+ if($clear) {
259
+ $this->clearErrors();
260
+ }
261
+ return $out;
262
+ }
263
+
264
+ /**
265
+ * Validate URL
266
+ * @param string $str
267
+ * @return bool
268
+ */
269
+ public function validateUrl($str)
270
+ {
271
+ $regex = "@([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}|"
272
+ ."(((news|telnet|nttp|file|http|ftp|https)://)|(www|ftp)"
273
+ ."[-A-Za-z0-9]*\\.)[-A-Za-z0-9\\.]+)(:[0-9]*)?@i";
274
+ return preg_match($regex, $str);
275
+ }
276
+
277
+
278
+ /**
279
+ * Validates package stability
280
+ * @param string $str
281
+ * @return bool
282
+ */
283
+ public function validateStability($str)
284
+ {
285
+ return in_array(strval($str), self::$_stability);
286
+ }
287
+
288
+ /**
289
+ * Validate date format
290
+ * @param $date
291
+ * @return bool
292
+ */
293
+ public function validateDate($date)
294
+ {
295
+ $subs = null;
296
+ $check1 = preg_match("/^([\d]{4})-([\d]{2})-([\d]{2})$/i", $date, $subs);
297
+ if(!$check1) {
298
+ return false;
299
+ }
300
+ return checkdate($subs[2], $subs[3], $subs[1]);
301
+ }
302
+
303
+
304
+ /**
305
+ * Validate email
306
+ * @param string $email
307
+ * @return bool
308
+ */
309
+ public function validateEmail($email)
310
+ {
311
+ return preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $email);
312
+ }
313
+
314
+ /**
315
+ * Validate package name
316
+ * @param $name
317
+ * @return bool
318
+ */
319
+ public function validatePackageName($name)
320
+ {
321
+ return preg_match("/^[a-zA-Z0-9_-]+$/i", $name);
322
+ }
323
+
324
+ /**
325
+ * Validate version number
326
+ * @param string $version
327
+ * @return bool
328
+ */
329
+ public function validateVersion($version)
330
+ {
331
+ return preg_match("/^[\d]+\.[\d]+\.[\d]+([[:alnum:]\.\-\_]+)?$/i", $version);
332
+ }
333
+
334
+ /**
335
+ * Check versions are equal
336
+ * @param string $v1
337
+ * @param string $v2
338
+ * @return bool
339
+ */
340
+ public function versionEqual($v1, $v2)
341
+ {
342
+ return version_compare($v1, $v2, "==");
343
+ }
344
+
345
+ /**
346
+ * Check version $v1 <= $v2
347
+ * @param string $v1
348
+ * @param string $v2
349
+ * @return bool
350
+ */
351
+ public function versionLowerEqual($v1, $v2)
352
+ {
353
+ return version_compare($v1, $v2, "le");
354
+ }
355
+
356
+
357
+ /**
358
+ * Check if version $v1 lower than $v2
359
+ * @param string $v1
360
+ * @param string $v2
361
+ * @return bool
362
+ */
363
+ public function versionLower($v1, $v2)
364
+ {
365
+ return version_compare($v1, $v2, "<");
366
+ }
367
+
368
+ /**
369
+ * Check version $v1 >= $v2
370
+ * @param string $v1
371
+ * @param string $v2
372
+ * @return bool
373
+ */
374
+ public function versionGreaterEqual($v1, $v2)
375
+ {
376
+ return version_compare($v1, $v2, "ge");
377
+ }
378
+
379
+
380
+ /**
381
+ * Generic regex validation
382
+ * @param string $str
383
+ * @param string $regex
384
+ * @return bool
385
+ */
386
+ public function validateRegex($str, $regex)
387
+ {
388
+ return preg_match($regex, $str);
389
+ }
390
+
391
+
392
+ /**
393
+ * Check if PHP extension loaded
394
+ * @param string $name Extension name
395
+ * @return bool
396
+ */
397
+ public function validatePhpExtension($name)
398
+ {
399
  return extension_loaded($name);
400
+ }
401
 
402
 
403
+ public function validatePHPVersion($min, $max, $ver = PHP_VERSION)
404
+ {
405
+ $minAccepted = true;
406
+ if($min) {
407
+ $minAccepted = version_compare($ver, $min, ">=");
408
+ }
409
+ $maxAccepted = true;
410
+ if($max) {
411
+ $maxAccepted = version_compate($ver, $max, "<=");
412
+ }
413
+ return (bool) $minAccepted && $maxAccepted;
414
+ }
415
 
416
 
417
+ }
lib/Mage/DB/Exception.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
- * @package Mage_Db
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
+ * @package Mage_DB
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/DB/Mysqli.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
- * @package Mage_Db
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
+ * @package Mage_DB
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Exception.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
- * @package Mage
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
+ * @package Mage_Exception
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/HTTP/Client.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -31,54 +31,54 @@
31
  * @package Mage_Connect
32
  * @author Magento Core Team <core@magentocommerce.com>
33
  */
34
-
35
  class Mage_HTTP_Client
36
  {
37
 
38
- /**
39
- * Disallow to instantiate - pvt constructor
40
- */
41
- private function __construct()
42
- {
43
-
44
- }
45
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
- /**
48
- * Factory for HTTP client
49
- * @param string/false $frontend 'curl'/'socket' or false for auto-detect
50
- * @return Mage_HTTP_IClient
51
- */
52
- public static function getInstance($frontend = false)
53
- {
54
- if(false === $frontend)
55
- {
56
- $frontend = self::detectFrontend();
57
- }
58
- if(false === $frontend)
59
- {
60
- throw new Exception("Cannot find frontend automatically, set it manually");
61
- }
62
-
63
- $class = __CLASS__."_".str_replace(' ', DIRECTORY_SEPARATOR, ucwords(str_replace('_', ' ', $frontend)));
64
- $obj = new $class();
65
- return $obj;
66
- }
67
-
68
- /**
69
- * Detects frontend type.
70
- * Priority is given to CURL
71
- *
72
- * @return string/bool
73
- */
74
- protected static function detectFrontend()
75
- {
76
- if(function_exists("curl_init")) {
77
- return "curl";
78
- }
79
- if(function_exists("fsockopen")) {
80
- return "socket";
81
- }
82
- return false;
83
- }
84
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
+ * @package Mage_HTTP
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
31
  * @package Mage_Connect
32
  * @author Magento Core Team <core@magentocommerce.com>
33
  */
34
+
35
  class Mage_HTTP_Client
36
  {
37
 
38
+ /**
39
+ * Disallow to instantiate - pvt constructor
40
+ */
41
+ private function __construct()
42
+ {
43
+
44
+ }
45
+
46
+
47
+ /**
48
+ * Factory for HTTP client
49
+ * @param string/false $frontend 'curl'/'socket' or false for auto-detect
50
+ * @return Mage_HTTP_IClient
51
+ */
52
+ public static function getInstance($frontend = false)
53
+ {
54
+ if(false === $frontend)
55
+ {
56
+ $frontend = self::detectFrontend();
57
+ }
58
+ if(false === $frontend)
59
+ {
60
+ throw new Exception("Cannot find frontend automatically, set it manually");
61
+ }
62
+
63
+ $class = __CLASS__."_".str_replace(' ', DIRECTORY_SEPARATOR, ucwords(str_replace('_', ' ', $frontend)));
64
+ $obj = new $class();
65
+ return $obj;
66
+ }
67
 
68
+ /**
69
+ * Detects frontend type.
70
+ * Priority is given to CURL
71
+ *
72
+ * @return string/bool
73
+ */
74
+ protected static function detectFrontend()
75
+ {
76
+ if(function_exists("curl_init")) {
77
+ return "curl";
78
+ }
79
+ if(function_exists("fsockopen")) {
80
+ return "socket";
81
+ }
82
+ return false;
83
+ }
84
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/Mage/HTTP/Client/Curl.php CHANGED
@@ -8,20 +8,20 @@
8
  * that is bundled with this package in the file LICENSE.txt.
9
  * It is also available through the world-wide-web at this URL:
10
  * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not recreive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -376,7 +376,7 @@ implements Mage_HTTP_IClient
376
  }
377
  $this->curlOption(CURLOPT_COOKIE, implode(";", $cookies));
378
  }
379
-
380
  if($this->_timeout) {
381
  $this->curlOption(CURLOPT_TIMEOUT, $this->_timeout);
382
  }
@@ -388,7 +388,7 @@ implements Mage_HTTP_IClient
388
  //$this->curlOption(CURLOPT_HEADER, 1);
389
  $this->curlOption(CURLOPT_RETURNTRANSFER, 1);
390
  $this->curlOption(CURLOPT_HEADERFUNCTION, array($this,'parseHeaders'));
391
-
392
 
393
  if(count($this->_curlUserOptions)) {
394
  foreach($this->_curlUserOptions as $k=>$v) {
@@ -455,7 +455,7 @@ implements Mage_HTTP_IClient
455
 
456
  }
457
  $this->_headerCount++;
458
-
459
 
460
  return strlen($data);
461
  }
@@ -496,4 +496,4 @@ implements Mage_HTTP_IClient
496
  $this->_curlUserOptions[$name] = $value;
497
  }
498
 
499
- }
8
  * that is bundled with this package in the file LICENSE.txt.
9
  * It is also available through the world-wide-web at this URL:
10
  * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
+ * @package Mage_HTTP
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
376
  }
377
  $this->curlOption(CURLOPT_COOKIE, implode(";", $cookies));
378
  }
379
+
380
  if($this->_timeout) {
381
  $this->curlOption(CURLOPT_TIMEOUT, $this->_timeout);
382
  }
388
  //$this->curlOption(CURLOPT_HEADER, 1);
389
  $this->curlOption(CURLOPT_RETURNTRANSFER, 1);
390
  $this->curlOption(CURLOPT_HEADERFUNCTION, array($this,'parseHeaders'));
391
+
392
 
393
  if(count($this->_curlUserOptions)) {
394
  foreach($this->_curlUserOptions as $k=>$v) {
455
 
456
  }
457
  $this->_headerCount++;
458
+
459
 
460
  return strlen($data);
461
  }
496
  $this->_curlUserOptions[$name] = $value;
497
  }
498
 
499
+ }
lib/Mage/HTTP/Client/Socket.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
@@ -34,504 +34,504 @@
34
  class Mage_HTTP_Client_Socket
35
  implements Mage_HTTP_IClient
36
  {
37
- /**
38
- * Hostname
39
- * @var string
40
- */
41
- private $_host = 'localhost';
42
-
43
- /**
44
- * Port
45
- * @var int
46
- */
47
- private $_port = 80;
48
-
49
- /**
50
- * Stream resource
51
- * @var object
52
- */
53
- private $_sock = null;
54
-
55
- /**
56
- * Request headers
57
- * @var array
58
- */
59
- private $_headers = array();
60
-
61
-
62
- /**
63
- * Fields for POST method - hash
64
- * @var array
65
- */
66
- private $_postFields = array();
67
-
68
- /**
69
- * Request cookies
70
- * @var array
71
- */
72
- private $_cookies = array();
73
-
74
- /**
75
- * Response headers
76
- * @var array
77
- */
78
- private $_responseHeaders = array();
79
-
80
- /**
81
- * Response body
82
- * @var string
83
- */
84
- private $_responseBody = '';
85
-
86
- /**
87
- * Response status
88
- * @var int
89
- */
90
- private $_responseStatus = 0;
91
-
92
-
93
- /**
94
- * Request timeout
95
- * @var int
96
- */
97
- private $_timeout = 300;
98
-
99
- /**
100
- * TODO
101
- * @var int
102
- */
103
- private $_redirectCount = 0;
104
-
105
-
106
- /**
107
- * Set request timeout, msec
108
- *
109
- * @param int $value
110
- */
111
- public function setTimeout($value)
112
- {
113
- $this->_timeout = (int) $value;
114
- }
115
-
116
- /**
117
- * Constructor
118
- * @param string $host
119
- * @param int $port
120
- */
121
- public function __construct($host = null, $port = 80)
122
- {
123
- if($host) {
124
- $this->connect($host, (int) $port);
125
- }
126
- }
127
-
128
- /**
129
- * Set connection params
130
- *
131
- * @param string $host
132
  * @param int $port
133
- */
134
- public function connect($host, $port = 80)
135
- {
136
- $this->_host = $host;
137
- $this->_port = (int) $port;
138
-
139
- }
140
-
141
- /**
142
- * Disconnect
143
- */
144
- public function disconnect()
145
- {
146
- @fclose($this->_sock);
147
- }
148
-
149
- /**
150
- * Set headers from hash
151
-
152
- * @param array $headers
153
- */
154
- public function setHeaders($headers)
155
- {
156
- $this->_headers = $headers;
157
-
158
- }
159
-
160
- /**
161
- * Add header
162
- *
163
- * @param $name name, ex. "Location"
164
- * @param $value value ex. "http://google.com"
165
- */
166
- public function addHeader($name, $value)
167
- {
168
- $this->_headers[$name] = $value;
169
-
170
- }
171
-
172
- /**
173
- * Remove specified header
174
- *
175
- * @param string $name
176
- */
177
- public function removeHeader($name)
178
- {
179
- unset($this->_headers[$name]);
180
-
181
- }
182
-
183
- /**
184
- * Authorization: Basic header
185
- * Login credentials support
186
- *
187
- * @param string $login username
188
- * @param string $pass password
189
- */
190
- public function setCredentials($login, $pass)
191
- {
192
- $val= base64_encode( "$login:$pass" );
193
- $this->addHeader( "Authorization", "Basic $val" );
194
- }
195
-
196
- /**
197
- * Add cookie
198
- *
199
- * @param string $name
200
- * @param string $value
201
- */
202
- public function addCookie($name, $value)
203
- {
204
- $this->_cookies[$name] = $value;
205
- }
206
-
207
- /**
208
- * Remove cookie
209
- *
210
- * @param string $name
211
- */
212
- public function removeCookie($name)
213
- {
214
- unset($this->_cookies[$name]);
215
- }
216
-
217
- /**
218
- * Set cookies array
219
- *
220
- * @param array $cookies
221
- */
222
- public function setCookies($cookies)
223
- {
224
- $this->_cookies = $cookies;
225
- }
226
-
227
- /**
228
- * Clear cookies
229
- */
230
- public function removeCookies()
231
- {
232
- $this->setCookies(array());
233
- }
234
-
235
-
236
- /**
237
- * Make GET request
238
- *
239
- * @param string $uri full uri path
240
- */
241
- public function get($uri)
242
- {
243
- $this->makeRequest("GET",$this->parseUrl($uri));
244
- }
245
-
246
- /**
247
- * Set host, port from full url
248
- * and return relative url
249
- *
250
- * @param string $uri ex. http://google.com/index.php?a=b
251
- * @return string ex. /index.php?a=b
252
- */
253
- protected function parseUrl($uri)
254
- {
255
- $parts = parse_url($uri);
256
- if(!empty($parts['user']) && !empty($parts['pass'])) {
257
- $this->setCredentials($parts['user'], $parts['pass']);
258
- }
259
- if(!empty($parts['port'])) {
260
- $this->_port = (int) $parts['port'];
261
- }
262
-
263
- if(!empty($parts['host'])) {
264
- $this->_host = $parts['host'];
265
- } else {
266
- throw new InvalidArgumentException("Uri doesn't contain host part");
267
- }
268
-
269
-
270
- if(!empty($parts['path'])) {
271
- $requestUri = $parts['path'];
272
- } else {
273
- throw new InvalidArgumentException("Uri doesn't contain path part");
274
- }
275
- if(!empty($parts['query'])) {
276
- $requestUri .= "?".$parts['query'];
277
- }
278
- return $requestUri;
279
- }
280
-
281
- /**
282
- * Make POST request
283
- */
284
- public function post($uri, $params)
285
- {
286
- $this->makeRequest("POST", $this->parseUrl($uri), $params);
287
- }
288
-
289
-
290
- /**
291
- * Get response headers
292
- *
293
- * @return array
294
- */
295
- public function getHeaders()
296
- {
297
- return $this->_responseHeaders;
298
- }
299
-
300
-
301
- /**
302
- * Get response body
303
- *
304
- * @return string
305
- */
306
- public function getBody()
307
- {
308
- return $this->_responseBody;
309
- }
310
-
311
- /**
312
- * Get cookies response hash
313
- *
314
- * @return array
315
- */
316
- public function getCookies()
317
- {
318
- if(empty($this->_responseHeaders['Set-Cookie'])) {
319
- return array();
320
- }
321
- $out = array();
322
- foreach( $this->_responseHeaders['Set-Cookie'] as $row) {
323
- $values = explode("; ", $row);
324
- $c = count($values);
325
- if(!$c) {
326
- continue;
327
- }
328
- list($key, $val) = explode("=", $values[0]);
329
- if(is_null($val)) {
330
- continue;
331
- }
332
- $out[trim($key)] = trim($val);
333
- }
334
- return $out;
335
- }
336
-
337
-
338
- /**
339
- * Get cookies array with details
340
- * (domain, expire time etc)
341
- * @return array
342
- */
343
- public function getCookiesFull()
344
- {
345
- if(empty($this->_responseHeaders['Set-Cookie'])) {
346
- return array();
347
- }
348
- $out = array();
349
- foreach( $this->_responseHeaders['Set-Cookie'] as $row) {
350
- $values = explode("; ", $row);
351
- $c = count($values);
352
- if(!$c) {
353
- continue;
354
- }
355
- list($key, $val) = explode("=", $values[0]);
356
- if(is_null($val)) {
357
- continue;
358
- }
359
- $out[trim($key)] = array('value'=>trim($val));
360
- array_shift($values);
361
- $c--;
362
- if(!$c) {
363
- continue;
364
- }
365
- for($i = 0; $i<$c; $i++) {
366
- list($subkey, $val) = explode("=", $values[$i]);
367
- $out[trim($key)][trim($subkey)] = trim($val);
368
- }
369
- }
370
- return $out;
371
- }
372
-
373
- /**
374
- * Process response headers
375
- */
376
- protected function processResponseHeaders()
377
- {
378
- $crlf = "\r\n";
379
- $this->_responseHeaders = array();
380
- while (!feof($this->_sock)) {
381
- $line = fgets($this->_sock, 1024);
382
- if($line === $crlf) {
383
- return;
384
- }
385
- $name = $value = '';
386
- $out = explode(": ", trim($line), 2);
387
- if(count($out) == 2) {
388
- $name = $out[0];
389
- $value = $out[1];
390
- }
391
- if(!empty($value)) {
392
- if($name == "Set-Cookie") {
393
- if(!isset($this->_responseHeaders[$name])) {
394
  $this->_responseHeaders[$name] = array();
395
  }
396
- $this->_responseHeaders[$name][] = $value;
397
- } else {
398
- $this->_responseHeaders[$name] = $value;
399
- }
400
- }
401
- }
402
- }
403
-
404
- /**
405
- * Process response body
406
- */
407
- protected function processResponseBody()
408
- {
409
- $this->_responseBody = '';
410
-
411
- while (!feof($this->_sock)) {
412
- $this->_responseBody .= @fread($this->_sock, 1024);
413
- }
414
- }
415
-
416
- /**
417
- * Process response
418
- */
419
- protected function processResponse()
420
- {
421
- $response = '';
422
- $responseLine = trim(fgets($this->_sock, 1024));
423
-
424
- $line = explode(" ", $responseLine, 3);
425
- if(count($line) != 3) {
426
- return $this->doError("Invalid response line returned from server: ".$responseLine);
427
- }
428
- $this->_responseStatus = intval($line[1]);
429
- $this->processResponseHeaders();
430
-
431
- $this->processRedirect();
432
-
433
- $this->processResponseBody();
434
- }
435
-
436
-
437
- /**
438
- * Process redirect
439
- */
440
- protected function processRedirect()
441
- {
442
- // TODO: implement redircets support
443
- }
444
-
445
-
446
- /**
447
- * Get response status code
448
- * @see lib/Mage/HTTP/Mage_HTTP_Client#getStatus()
449
- */
450
- public function getStatus()
451
- {
452
- return $this->_responseStatus;
453
- }
454
-
455
- /**
456
- * Make request
457
- * @param string $method
458
- * @param string $uri
459
- * @param array $params
460
- * @return null
461
- */
462
- protected function makeRequest($method, $uri, $params = array())
463
- {
464
- $errno = $errstr = '';
465
- $this->_sock = @fsockopen($this->_host, $this->_port, $errno, $errstr, $this->_timeout);
466
- if(!$this->_sock) {
467
- return $this->doError(sprintf("[errno: %d] %s", $errno, $errstr));
468
- }
469
-
470
- $crlf = "\r\n";
471
- $isPost = $method == "POST";
472
-
473
- $appendHeaders = array();
474
- $paramsStr = false;
475
- if($isPost && count($params)) {
476
- $paramsStr = http_build_query($params);
477
- $appendHeaders['Content-type'] = 'application/x-www-form-urlencoded';
478
- $appendHeaders['Content-length'] = strlen($paramsStr);
479
- }
480
-
481
- $out = "{$method} {$uri} HTTP/1.1{$crlf}";
482
- $out .= $this->headersToString($appendHeaders);
483
- $out .= $crlf;
484
- if($paramsStr) {
485
- $out .= $paramsStr.$crlf;
486
- }
487
-
488
- fwrite($this->_sock, $out);
489
- $this->processResponse();
490
- }
491
-
492
- /**
493
- * Throw error excpetion
494
- * @param $string
495
- * @throws Exception
496
- */
497
- public function doError($string)
498
- {
499
- throw new Exception($string);
500
- }
501
-
502
- /**
503
- * Convert headers hash to string
504
- * @param $delimiter
505
- * @param $append
506
- * @return string
507
- */
508
- protected function headersToString($append = array())
509
- {
510
- $headers = array();
511
- $headers["Host"] = $this->_host;
512
- $headers['Connection'] = "close";
513
- $headers = array_merge($headers, $this->_headers, $append);
514
- $str = array();
515
- foreach ($headers as $k=>$v) {
516
- $str []= "$k: $v\r\n";
517
- }
518
- return implode($str);
519
- }
520
-
521
- /**
522
- * TODO
523
- */
524
- public function setOptions($arr)
525
- {
526
- // Stub
527
- }
528
-
529
- /**
530
- * TODO
531
- */
532
- public function setOption($name, $value)
533
- {
534
- // Stub
535
- }
536
-
537
- }
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
+ * @package Mage_HTTP
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
34
  class Mage_HTTP_Client_Socket
35
  implements Mage_HTTP_IClient
36
  {
37
+ /**
38
+ * Hostname
39
+ * @var string
40
+ */
41
+ private $_host = 'localhost';
42
+
43
+ /**
44
+ * Port
45
+ * @var int
46
+ */
47
+ private $_port = 80;
48
+
49
+ /**
50
+ * Stream resource
51
+ * @var object
52
+ */
53
+ private $_sock = null;
54
+
55
+ /**
56
+ * Request headers
57
+ * @var array
58
+ */
59
+ private $_headers = array();
60
+
61
+
62
+ /**
63
+ * Fields for POST method - hash
64
+ * @var array
65
+ */
66
+ private $_postFields = array();
67
+
68
+ /**
69
+ * Request cookies
70
+ * @var array
71
+ */
72
+ private $_cookies = array();
73
+
74
+ /**
75
+ * Response headers
76
+ * @var array
77
+ */
78
+ private $_responseHeaders = array();
79
+
80
+ /**
81
+ * Response body
82
+ * @var string
83
+ */
84
+ private $_responseBody = '';
85
+
86
+ /**
87
+ * Response status
88
+ * @var int
89
+ */
90
+ private $_responseStatus = 0;
91
+
92
+
93
+ /**
94
+ * Request timeout
95
+ * @var int
96
+ */
97
+ private $_timeout = 300;
98
+
99
+ /**
100
+ * TODO
101
+ * @var int
102
+ */
103
+ private $_redirectCount = 0;
104
+
105
+
106
+ /**
107
+ * Set request timeout, msec
108
+ *
109
+ * @param int $value
110
+ */
111
+ public function setTimeout($value)
112
+ {
113
+ $this->_timeout = (int) $value;
114
+ }
115
+
116
+ /**
117
+ * Constructor
118
+ * @param string $host
119
+ * @param int $port
120
+ */
121
+ public function __construct($host = null, $port = 80)
122
+ {
123
+ if($host) {
124
+ $this->connect($host, (int) $port);
125
+ }
126
+ }
127
+
128
+ /**
129
+ * Set connection params
130
+ *
131
+ * @param string $host
132
  * @param int $port
133
+ */
134
+ public function connect($host, $port = 80)
135
+ {
136
+ $this->_host = $host;
137
+ $this->_port = (int) $port;
138
+
139
+ }
140
+
141
+ /**
142
+ * Disconnect
143
+ */
144
+ public function disconnect()
145
+ {
146
+ @fclose($this->_sock);
147
+ }
148
+
149
+ /**
150
+ * Set headers from hash
151
+
152
+ * @param array $headers
153
+ */
154
+ public function setHeaders($headers)
155
+ {
156
+ $this->_headers = $headers;
157
+
158
+ }
159
+
160
+ /**
161
+ * Add header
162
+ *
163
+ * @param $name name, ex. "Location"
164
+ * @param $value value ex. "http://google.com"
165
+ */
166
+ public function addHeader($name, $value)
167
+ {
168
+ $this->_headers[$name] = $value;
169
+
170
+ }
171
+
172
+ /**
173
+ * Remove specified header
174
+ *
175
+ * @param string $name
176
+ */
177
+ public function removeHeader($name)
178
+ {
179
+ unset($this->_headers[$name]);
180
+
181
+ }
182
+
183
+ /**
184
+ * Authorization: Basic header
185
+ * Login credentials support
186
+ *
187
+ * @param string $login username
188
+ * @param string $pass password
189
+ */
190
+ public function setCredentials($login, $pass)
191
+ {
192
+ $val= base64_encode( "$login:$pass" );
193
+ $this->addHeader( "Authorization", "Basic $val" );
194
+ }
195
+
196
+ /**
197
+ * Add cookie
198
+ *
199
+ * @param string $name
200
+ * @param string $value
201
+ */
202
+ public function addCookie($name, $value)
203
+ {
204
+ $this->_cookies[$name] = $value;
205
+ }
206
+
207
+ /**
208
+ * Remove cookie
209
+ *
210
+ * @param string $name
211
+ */
212
+ public function removeCookie($name)
213
+ {
214
+ unset($this->_cookies[$name]);
215
+ }
216
+
217
+ /**
218
+ * Set cookies array
219
+ *
220
+ * @param array $cookies
221
+ */
222
+ public function setCookies($cookies)
223
+ {
224
+ $this->_cookies = $cookies;
225
+ }
226
+
227
+ /**
228
+ * Clear cookies
229
+ */
230
+ public function removeCookies()
231
+ {
232
+ $this->setCookies(array());
233
+ }
234
+
235
+
236
+ /**
237
+ * Make GET request
238
+ *
239
+ * @param string $uri full uri path
240
+ */
241
+ public function get($uri)
242
+ {
243
+ $this->makeRequest("GET",$this->parseUrl($uri));
244
+ }
245
+
246
+ /**
247
+ * Set host, port from full url
248
+ * and return relative url
249
+ *
250
+ * @param string $uri ex. http://google.com/index.php?a=b
251
+ * @return string ex. /index.php?a=b
252
+ */
253
+ protected function parseUrl($uri)
254
+ {
255
+ $parts = parse_url($uri);
256
+ if(!empty($parts['user']) && !empty($parts['pass'])) {
257
+ $this->setCredentials($parts['user'], $parts['pass']);
258
+ }
259
+ if(!empty($parts['port'])) {
260
+ $this->_port = (int) $parts['port'];
261
+ }
262
+
263
+ if(!empty($parts['host'])) {
264
+ $this->_host = $parts['host'];
265
+ } else {
266
+ throw new InvalidArgumentException("Uri doesn't contain host part");
267
+ }
268
+
269
+
270
+ if(!empty($parts['path'])) {
271
+ $requestUri = $parts['path'];
272
+ } else {
273
+ throw new InvalidArgumentException("Uri doesn't contain path part");
274
+ }
275
+ if(!empty($parts['query'])) {
276
+ $requestUri .= "?".$parts['query'];
277
+ }
278
+ return $requestUri;
279
+ }
280
+
281
+ /**
282
+ * Make POST request
283
+ */
284
+ public function post($uri, $params)
285
+ {
286
+ $this->makeRequest("POST", $this->parseUrl($uri), $params);
287
+ }
288
+
289
+
290
+ /**
291
+ * Get response headers
292
+ *
293
+ * @return array
294
+ */
295
+ public function getHeaders()
296
+ {
297
+ return $this->_responseHeaders;
298
+ }
299
+
300
+
301
+ /**
302
+ * Get response body
303
+ *
304
+ * @return string
305
+ */
306
+ public function getBody()
307
+ {
308
+ return $this->_responseBody;
309
+ }
310
+
311
+ /**
312
+ * Get cookies response hash
313
+ *
314
+ * @return array
315
+ */
316
+ public function getCookies()
317
+ {
318
+ if(empty($this->_responseHeaders['Set-Cookie'])) {
319
+ return array();
320
+ }
321
+ $out = array();
322
+ foreach( $this->_responseHeaders['Set-Cookie'] as $row) {
323
+ $values = explode("; ", $row);
324
+ $c = count($values);
325
+ if(!$c) {
326
+ continue;
327
+ }
328
+ list($key, $val) = explode("=", $values[0]);
329
+ if(is_null($val)) {
330
+ continue;
331
+ }
332
+ $out[trim($key)] = trim($val);
333
+ }
334
+ return $out;
335
+ }
336
+
337
+
338
+ /**
339
+ * Get cookies array with details
340
+ * (domain, expire time etc)
341
+ * @return array
342
+ */
343
+ public function getCookiesFull()
344
+ {
345
+ if(empty($this->_responseHeaders['Set-Cookie'])) {
346
+ return array();
347
+ }
348
+ $out = array();
349
+ foreach( $this->_responseHeaders['Set-Cookie'] as $row) {
350
+ $values = explode("; ", $row);
351
+ $c = count($values);
352
+ if(!$c) {
353
+ continue;
354
+ }
355
+ list($key, $val) = explode("=", $values[0]);
356
+ if(is_null($val)) {
357
+ continue;
358
+ }
359
+ $out[trim($key)] = array('value'=>trim($val));
360
+ array_shift($values);
361
+ $c--;
362
+ if(!$c) {
363
+ continue;
364
+ }
365
+ for($i = 0; $i<$c; $i++) {
366
+ list($subkey, $val) = explode("=", $values[$i]);
367
+ $out[trim($key)][trim($subkey)] = trim($val);
368
+ }
369
+ }
370
+ return $out;
371
+ }
372
+
373
+ /**
374
+ * Process response headers
375
+ */
376
+ protected function processResponseHeaders()
377
+ {
378
+ $crlf = "\r\n";
379
+ $this->_responseHeaders = array();
380
+ while (!feof($this->_sock)) {
381
+ $line = fgets($this->_sock, 1024);
382
+ if($line === $crlf) {
383
+ return;
384
+ }
385
+ $name = $value = '';
386
+ $out = explode(": ", trim($line), 2);
387
+ if(count($out) == 2) {
388
+ $name = $out[0];
389
+ $value = $out[1];
390
+ }
391
+ if(!empty($value)) {
392
+ if($name == "Set-Cookie") {
393
+ if(!isset($this->_responseHeaders[$name])) {
394
  $this->_responseHeaders[$name] = array();
395
  }
396
+ $this->_responseHeaders[$name][] = $value;
397
+ } else {
398
+ $this->_responseHeaders[$name] = $value;
399
+ }
400
+ }
401
+ }
402
+ }
403
+
404
+ /**
405
+ * Process response body
406
+ */
407
+ protected function processResponseBody()
408
+ {
409
+ $this->_responseBody = '';
410
+
411
+ while (!feof($this->_sock)) {
412
+ $this->_responseBody .= @fread($this->_sock, 1024);
413
+ }
414
+ }
415
+
416
+ /**
417
+ * Process response
418
+ */
419
+ protected function processResponse()
420
+ {
421
+ $response = '';
422
+ $responseLine = trim(fgets($this->_sock, 1024));
423
+
424
+ $line = explode(" ", $responseLine, 3);
425
+ if(count($line) != 3) {
426
+ return $this->doError("Invalid response line returned from server: ".$responseLine);
427
+ }
428
+ $this->_responseStatus = intval($line[1]);
429
+ $this->processResponseHeaders();
430
+
431
+ $this->processRedirect();
432
+
433
+ $this->processResponseBody();
434
+ }
435
+
436
+
437
+ /**
438
+ * Process redirect
439
+ */
440
+ protected function processRedirect()
441
+ {
442
+ // TODO: implement redircets support
443
+ }
444
+
445
+
446
+ /**
447
+ * Get response status code
448
+ * @see lib/Mage/HTTP/Mage_HTTP_Client#getStatus()
449
+ */
450
+ public function getStatus()
451
+ {
452
+ return $this->_responseStatus;
453
+ }
454
+
455
+ /**
456
+ * Make request
457
+ * @param string $method
458
+ * @param string $uri
459
+ * @param array $params
460
+ * @return null
461
+ */
462
+ protected function makeRequest($method, $uri, $params = array())
463
+ {
464
+ $errno = $errstr = '';
465
+ $this->_sock = @fsockopen($this->_host, $this->_port, $errno, $errstr, $this->_timeout);
466
+ if(!$this->_sock) {
467
+ return $this->doError(sprintf("[errno: %d] %s", $errno, $errstr));
468
+ }
469
+
470
+ $crlf = "\r\n";
471
+ $isPost = $method == "POST";
472
+
473
+ $appendHeaders = array();
474
+ $paramsStr = false;
475
+ if($isPost && count($params)) {
476
+ $paramsStr = http_build_query($params);
477
+ $appendHeaders['Content-type'] = 'application/x-www-form-urlencoded';
478
+ $appendHeaders['Content-length'] = strlen($paramsStr);
479
+ }
480
+
481
+ $out = "{$method} {$uri} HTTP/1.1{$crlf}";
482
+ $out .= $this->headersToString($appendHeaders);
483
+ $out .= $crlf;
484
+ if($paramsStr) {
485
+ $out .= $paramsStr.$crlf;
486
+ }
487
+
488
+ fwrite($this->_sock, $out);
489
+ $this->processResponse();
490
+ }
491
+
492
+ /**
493
+ * Throw error excpetion
494
+ * @param $string
495
+ * @throws Exception
496
+ */
497
+ public function doError($string)
498
+ {
499
+ throw new Exception($string);
500
+ }
501
+
502
+ /**
503
+ * Convert headers hash to string
504
+ * @param $delimiter
505
+ * @param $append
506
+ * @return string
507
+ */
508
+ protected function headersToString($append = array())
509
+ {
510
+ $headers = array();
511
+ $headers["Host"] = $this->_host;
512
+ $headers['Connection'] = "close";
513
+ $headers = array_merge($headers, $this->_headers, $append);
514
+ $str = array();
515
+ foreach ($headers as $k=>$v) {
516
+ $str []= "$k: $v\r\n";
517
+ }
518
+ return implode($str);
519
+ }
520
+
521
+ /**
522
+ * TODO
523
+ */
524
+ public function setOptions($arr)
525
+ {
526
+ // Stub
527
+ }
528
+
529
+ /**
530
+ * TODO
531
+ */
532
+ public function setOption($name, $value)
533
+ {
534
+ // Stub
535
+ }
536
+
537
+ }
lib/Mage/HTTP/IClient.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
- * @package Mage_Connect
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
+ * @package Mage_HTTP
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/System/Args.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_System
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_System
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/System/Dirs.php CHANGED
@@ -1,6 +1,28 @@
1
  <?php
2
-
3
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  class Mage_System_Dirs
5
  {
6
 
1
  <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_System
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
  class Mage_System_Dirs
27
  {
28
 
lib/Mage/System/Ftp.php CHANGED
@@ -10,18 +10,18 @@
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_System
23
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
24
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
10
  * http://opensource.org/licenses/osl-3.0.php
11
  * If you did not receive a copy of the license and are unable to
12
  * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
  *
15
  * DISCLAIMER
16
  *
17
  * Do not edit or add to this file if you wish to upgrade Magento to newer
18
  * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
  *
21
  * @category Mage
22
  * @package Mage_System
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
27
  /**
lib/Mage/Xml/Generator.php CHANGED
@@ -1,4 +1,28 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Mage_Xml_Generator
3
  {
4
  protected $_dom = null;
@@ -87,4 +111,4 @@ class Mage_Xml_Generator
87
  return $this;
88
  }
89
 
90
- }
1
  <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Xml
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
  class Mage_Xml_Generator
27
  {
28
  protected $_dom = null;
111
  return $this;
112
  }
113
 
114
+ }
lib/Mage/Xml/Parser.php CHANGED
@@ -1,4 +1,28 @@
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  class Mage_Xml_Parser
3
  {
4
  protected $_dom = null;
@@ -88,4 +112,4 @@ class Mage_Xml_Parser
88
  return $this;
89
  }
90
 
91
- }
1
  <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magento.com so we can send you a copy immediately.
14
+ *
15
+ * DISCLAIMER
16
+ *
17
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
18
+ * versions in the future. If you wish to customize Magento for your
19
+ * needs please refer to http://www.magento.com for more information.
20
+ *
21
+ * @category Mage
22
+ * @package Mage_Xml
23
+ * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
24
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
+ */
26
  class Mage_Xml_Parser
27
  {
28
  protected $_dom = null;
112
  return $this;
113
  }
114
 
115
+ }
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lib_Mage</name>
4
- <version>1.9.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Mage Library</summary>
10
  <description>Mage Library</description>
11
- <notes>1.9.1.0</notes>
12
  <authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
13
- <date>2014-11-05</date>
14
- <time>08:42:28</time>
15
- <contents><target name="magelib"><dir name="Mage"><dir name="Archive"><file name="Abstract.php" hash="6324215ec8ab3c55730c57976b7cd4f7"/><file name="Bz.php" hash="6485bb0cd67f6f5dfa11b8ba29e23d43"/><file name="Gz.php" hash="7f75dbebd125a0d4c27803d4ca4983f4"/><dir name="Helper"><dir name="File"><file name="Bz.php" hash="ec70e019f9031c2c2f16c9f910434352"/><file name="Gz.php" hash="84d1f376a78efa1898f888c854faf040"/></dir><file name="File.php" hash="8a0383c1b32cdbc8c53ba551c7814bda"/></dir><file name="Interface.php" hash="283914c36fdcf9851ec651149176fff7"/><file name="Tar.php" hash="911f7a29c8305b2818744bf005ddac37"/></dir><file name="Archive.php" hash="1e0342bbcb89d417c7ee77ad3387938d"/><dir name="Autoload"><file name="Simple.php" hash="0112e880807596fbe8822be12314f14f"/></dir><dir name="Backup"><file name="Abstract.php" hash="4ab32913f5831b4e449486a5cf84d07e"/><dir name="Archive"><file name="Tar.php" hash="b6b2731bfa267b6b5fcb28d3f8f8cdbf"/></dir><file name="Db.php" hash="58001faa3a70a54441f45de8cb77aacb"/><dir name="Exception"><file name="CantLoadSnapshot.php" hash="67e47d7b54e466ebf0230810bec31158"/><file name="FtpConnectionFailed.php" hash="54cc1c76345d5fc601f7cf3af67151f6"/><file name="FtpValidationFailed.php" hash="51847fdeb1539094b9eca84b601ca241"/><file name="NotEnoughFreeSpace.php" hash="5a95f8877b4b8ca8936c0fc88a1a65ac"/><file name="NotEnoughPermissions.php" hash="b89a417fc74cc6b45371967c9c7a3e92"/></dir><file name="Exception.php" hash="b10632f40d57f0768f8d1058b0fd10fc"/><dir name="Filesystem"><file name="Helper.php" hash="981b2a7ff2ffc271c541c77e137f1627"/><dir name="Iterator"><file name="File.php" hash="0bfe672a2e72af47c777f7321b0752aa"/><file name="Filter.php" hash="f994e954d22007498e4078345aeadd20"/></dir><dir name="Rollback"><file name="Abstract.php" hash="90a2781c3c6443e08aeb3b6f1d21f97f"/><file name="Fs.php" hash="c76f9c2e09d37d4dcc785fab7d4e02b0"/><file name="Ftp.php" hash="ebea4f77dee7cc83444da16b7d51e397"/></dir></dir><file name="Filesystem.php" hash="8da3a28a9f90091105121dee17cfa142"/><file name="Interface.php" hash="5507294967fc6a5472aa82df60a1bf69"/><file name="Media.php" hash="fd2d608b2b5afaab2f33f67b5155e14b"/><file name="Nomedia.php" hash="da38dbea4586952e20d327b3af1347ae"/><file name="Snapshot.php" hash="2e4ce7ed1b78c4dbad25221abbb4aaf2"/></dir><file name="Backup.php" hash="56bf7a531ab332a0f10821e5d583afc4"/><dir name="Cache"><dir name="Backend"><file name="File.php" hash="42f4f35ddc14528a2351cad9c6861a8e"/><file name="Redis.php" hash="830130fc2d5acabbe171920e5e14d982"/></dir></dir><dir name="Connect"><dir name="Channel"><file name="Generator.php" hash="a1f115e909680bca8c1b1f0940244b13"/><file name="Parser.php" hash="ec2e7380ec4bca81de2795f96975e778"/><file name="VO.php" hash="870a1b9b28d85dd72b2b1e2529dca354"/></dir><dir name="Command"><file name="Channels.php" hash="12f730285615329cba0b570385009837"/><file name="Channels_Header.php" hash="934366a4daa1ebe87b25cb9dfa061798"/><file name="Config.php" hash="5091776f35732d8b0ff12c8ff3561c69"/><file name="Config_Header.php" hash="119a103ed71b326993756961b6c7c2a0"/><file name="Install.php" hash="2f7227a1f4003d6ce6edec4a0ce02e0f"/><file name="Install_Header.php" hash="71f0b6bad2f745235352d181bcc66645"/><file name="Package.php" hash="b36bdc6a3c0f6bc9d7766a37c046a481"/><file name="Package_Header.php" hash="dc3840a95f89ef844df40c585582815d"/><file name="Registry.php" hash="f9fde28940ff38dbc336335d575a295d"/><file name="Registry_Header.php" hash="559edbac0f3d267c8ca289e526b940d1"/><file name="Remote.php" hash="6f959617993d58aec974d578921b6212"/><file name="Remote_Header.php" hash="4b56cd683710de6c81241f902570ba25"/></dir><file name="Command.php" hash="0d474da0956a292aa83e88da4975c527"/><file name="Config.php" hash="511f752123ccc6c148a6a308fc3f81b2"/><file name="Converter.php" hash="1cde84613c6079050bb3824aba3b380d"/><dir name="Frontend"><file name="CLI.php" hash="86e6631d9345d5bf9d15148cfdace3bf"/></dir><file name="Frontend.php" hash="0a97c590fdc9844b225638d631315d35"/><file name="Ftp.php" hash="2b87de89c19712ae22756b11c763e137"/><dir name="Loader"><file name="Ftp.php" hash="0ca46737d25bf0eb321414f2d8b7ced0"/></dir><file name="Loader.php" hash="009d6f986d5ff406f7e94d2b395f6e25"/><dir name="Package"><file name="Extension.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Hotfix.php" hash="850bd23783a77dbf6f50b4f169c2c7b3"/><file name="Maintainer.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Reader.php" hash="ca384e066ac21168e0a7aebc5da869c1"/><file name="Target.php" hash="351af5965f7870d3f4e960d402805b17"/><file name="VO.php" hash="9ffbdff9210474b68db7caddf9a5fe5a"/><file name="Writer.php" hash="431f107ab2ffd1977f74a94ae16481d1"/></dir><file name="Package.php" hash="bf5af87c29959f229de7b69d1d94f1e0"/><file name="Packager.php" hash="42efcb63cc3b9dbbc5e8eb98b2d8d08e"/><dir name="Repository"><file name="Abstract.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><dir name="Channel"><file name="Abstract.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Commercial.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Community.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Core.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="Channel.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Local.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><file name="Repository.php" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Rest.php" hash="ba2d2365fc989274940e1fdff6476875"/><file name="Singleconfig.php" hash="975c04d57cbce24327e84a93d9f5443e"/><dir name="Structures"><file name="Graph.php" hash="b85283fd2af6fd54fb748cb6ea933842"/><file name="Node.php" hash="26a7e4041c3d2fd93bfdc3c692c85ede"/></dir><file name="Validator.php" hash="3ac1b21ec703073d5dd9b5dda3471fe8"/></dir><dir name="DB"><file name="Exception.php" hash="e0b55d77af8e215135ef223f593832ad"/><file name="Mysqli.php" hash="5057ea65f441bbb00c7e55298e9252a4"/></dir><file name="Exception.php" hash="807f6335110c3d6fa0cf5072e2be7892"/><dir name="HTTP"><dir name="Client"><file name="Curl.php" hash="f537a9879781ec3fe2748677bee43737"/><file name="Socket.php" hash="7a889fed729d92eba849d6fdfa32d7d6"/></dir><file name="Client.php" hash="7072f9366680bc5ebc1c447700193cb4"/><file name="IClient.php" hash="88a4a88a31a05a2154d430d7b4308ff6"/></dir><dir name="System"><file name="Args.php" hash="46467e1069edf432030d14dd59fa73df"/><file name="Dirs.php" hash="4edad790aedfbd404df28af9d2f2bea6"/><file name="Ftp.php" hash="6fc28c56dde7613be3da7b9f766caa51"/></dir><dir name="Xml"><file name="Generator.php" hash="0ddc93b0c75885f67d049d0a38c630fa"/><file name="Parser.php" hash="b2bdc0880cd5bc2d82468ee075e783a2"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Lib_Mage</name>
4
+ <version>1.9.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Mage Library</summary>
10
  <description>Mage Library</description>
11
+ <notes>1.9.1.1</notes>
12
  <authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
13
+ <date>2015-04-29</date>
14
+ <time>12:01:15</time>
15
+ <contents><target name="magelib"><dir name="Mage"><dir name="Archive"><file name="Abstract.php" hash="de4e571664fc07c3d9549f0fd267673c"/><file name="Bz.php" hash="2505695d644c59adc33e22a0e4b4026b"/><file name="Gz.php" hash="b1a8f824762096e9481c4cf867236e0f"/><dir name="Helper"><dir name="File"><file name="Bz.php" hash="c2ecedaf9f2f87da265e8d015f184483"/><file name="Gz.php" hash="7f02f08015915d25220d065994ddc5d4"/></dir><file name="File.php" hash="83b65b9f0ac67451501a9c9637f5079b"/></dir><file name="Interface.php" hash="082498bdccf0768d5dd074493a570ebb"/><file name="Tar.php" hash="3f68ba944d9c375a14e94d10ef9fe5b0"/></dir><file name="Archive.php" hash="6bb5cfd52d689a82580e56ed016c9d5c"/><dir name="Autoload"><file name="Simple.php" hash="79585aafc6ed3c63d9560f1975f7839f"/></dir><dir name="Backup"><file name="Abstract.php" hash="6dc4a21835d04a2b517d5c3fb097fa32"/><dir name="Archive"><file name="Tar.php" hash="b0ea407733eb0eddf2335eb04b6d4efd"/></dir><file name="Db.php" hash="82085d5187d2f98b3bba9843e13e9e73"/><dir name="Exception"><file name="CantLoadSnapshot.php" hash="5999c355894c14f1e2362f45a6ba057a"/><file name="FtpConnectionFailed.php" hash="7a1fa7df65b14879e06f416358e4bfe8"/><file name="FtpValidationFailed.php" hash="69af18f3940a28573735e51c09582906"/><file name="NotEnoughFreeSpace.php" hash="85aa48d06cbf0bbbff797dda79be5031"/><file name="NotEnoughPermissions.php" hash="66b048e085f4e22ff92165cf27eb154a"/></dir><file name="Exception.php" hash="faffb5273a8d7b3bc1ac23500b3738ed"/><dir name="Filesystem"><file name="Helper.php" hash="decd420b567cc2f6352e1fe32832b777"/><dir name="Iterator"><file name="File.php" hash="30cf1633496618f74849bc2374f031c8"/><file name="Filter.php" hash="1fe29804508aa85589ba1a8578f492a8"/></dir><dir name="Rollback"><file name="Abstract.php" hash="f9282d34c12a6030942554a80882bb4a"/><file name="Fs.php" hash="179ac7ecd47d54e9a5324d8c6dc27194"/><file name="Ftp.php" hash="c31b8da9f38b0dd03fa87832f74a388b"/></dir></dir><file name="Filesystem.php" hash="7db5e5dc7ac0703bb4944092d19b8153"/><file name="Interface.php" hash="649acb82500c3aa25d789ede57b6d824"/><file name="Media.php" hash="d23badc8294f743242e831a1ee08a235"/><file name="Nomedia.php" hash="f67824816890655d383cc2f6bde37cfd"/><file name="Snapshot.php" hash="c8a1ca0ecd577783cc685560a929953a"/></dir><file name="Backup.php" hash="cb1bdf9d812811d0cf5478fb74d651d6"/><dir name="Cache"><dir name="Backend"><file name="File.php" hash="919df6545b54543059eee4db9d80c2c9"/><file name="Redis.php" hash="347c3b2c5d745df9f198d9c67cf035ee"/></dir></dir><dir name="Connect"><dir name="Channel"><file name="Generator.php" hash="8779c3d0bd0349fb084ba014aeebef08"/><file name="Parser.php" hash="710308a0983877f5397324ccde29ec64"/><file name="VO.php" hash="d5e083cac4674e60f3576c7f9245079e"/></dir><dir name="Command"><file name="Channels.php" hash="64a28e0922b180efae0b1505eb3a23c8"/><file name="Channels_Header.php" hash="c8801d31616e14fd17544d8ad91d8c71"/><file name="Config.php" hash="b4c3946a709c935285c7eef4e9893d95"/><file name="Config_Header.php" hash="be5819b085c2c25406169cc69db91efc"/><file name="Install.php" hash="4bc0690d8dae272ddcca882fbdc52cfa"/><file name="Install_Header.php" hash="b26353e14b18ca24135a8b3152eed832"/><file name="Package.php" hash="91daf698f9d027079aa3d4a70934e119"/><file name="Package_Header.php" hash="6875b32ecfc9be59d130814fb56ed35d"/><file name="Registry.php" hash="443008c5584a2e9b55674f07217ddabd"/><file name="Registry_Header.php" hash="9eaedec1fe480089c604580418579438"/><file name="Remote.php" hash="56b78c8f407460df4664d4455e879f0d"/><file name="Remote_Header.php" hash="d9b41a55a61c5c1e52abaff7a53fcc67"/></dir><file name="Command.php" hash="0fdfd17b49c24ebb994f27dd1d121144"/><file name="Config.php" hash="c452374e4ab10e53663d223c1bdd879f"/><file name="Converter.php" hash="a133fb8a9a1bb27f562daa734fb9f660"/><dir name="Frontend"><file name="CLI.php" hash="c1aeab2cce56ca6a6a1ea09db28897aa"/></dir><file name="Frontend.php" hash="d07caa4fe5b8f49b0ab45083eb6b1c51"/><file name="Ftp.php" hash="00039e4e1292e61e8932617cd57ab203"/><dir name="Loader"><file name="Ftp.php" hash="0332d94da7f3e58fc055fb80d53432a9"/></dir><file name="Loader.php" hash="3ca76a5329a1947d96e94bc316ca3099"/><dir name="Package"><file name="Extension.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Hotfix.php" hash="ae834feb24bf36fc188afc11736681f1"/><file name="Maintainer.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Reader.php" hash="c15f774cde56becedbdb3d363fac388c"/><file name="Target.php" hash="0e839847991ddaef741ae56daa936a6e"/><file name="VO.php" hash="cfbb4316314a742856bbe76e5d752512"/><file name="Writer.php" hash="8e41b3c89abe5a364bb32b56b6ae36de"/></dir><file name="Package.php" hash="94465bdc10578080364de3a9b20d4796"/><file name="Packager.php" hash="9ece3d292eabb6fec1393a021e4cef0d"/><dir name="Repository"><file name="Abstract.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><dir name="Channel"><file name="Abstract.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Commercial.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Community.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Core.php" hash="68b329da9893e34099c7d8ad5cb9c940"/></dir><file name="Channel.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Local.php" hash="68b329da9893e34099c7d8ad5cb9c940"/></dir><file name="Repository.php" hash="68b329da9893e34099c7d8ad5cb9c940"/><file name="Rest.php" hash="735bf347e40ba4e6b1eac377b5158d6d"/><file name="Singleconfig.php" hash="f20ebb89682bd0ebc929afb3a7bdba74"/><dir name="Structures"><file name="Graph.php" hash="1b983ae8aa539bb4ff21129b48cccffb"/><file name="Node.php" hash="80f04d92471471b1a04c8f719313fd26"/></dir><file name="Validator.php" hash="36f4954b54798c274ab3ea0e07ec8079"/></dir><dir name="DB"><file name="Exception.php" hash="9b86c22405d6004bb564caba5a2cd73d"/><file name="Mysqli.php" hash="3faca89f2023931bfcdcdb68c26eceaf"/></dir><file name="Exception.php" hash="66fd995ff284b4fd1138bb80fe688661"/><dir name="HTTP"><dir name="Client"><file name="Curl.php" hash="5abff2bfdeecdfc174c96d7bf9a681a5"/><file name="Socket.php" hash="094870f3dc66d9fda62d92bd7726bc30"/></dir><file name="Client.php" hash="36f8059fd5fe72b9698f6eff8a5eb051"/><file name="IClient.php" hash="e2fef2961c4e19ea6d0a32905a3f0cc9"/></dir><dir name="System"><file name="Args.php" hash="aa6e78d765e598733ea5b023ccc5fe28"/><file name="Dirs.php" hash="1e89ada96b371a2ee69397f83adafdad"/><file name="Ftp.php" hash="d147b0479742bed479c6f4db8d819d74"/></dir><dir name="Xml"><file name="Generator.php" hash="7a00666dea843e96f828b721d7ea0968"/><file name="Parser.php" hash="7054f38ca1b3f84f9b0bbc58aa4798e2"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>