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
- lib/Mage/Archive.php +4 -4
- lib/Mage/Archive/Abstract.php +4 -4
- lib/Mage/Archive/Bz.php +4 -4
- lib/Mage/Archive/Gz.php +4 -4
- lib/Mage/Archive/Helper/File.php +23 -23
- lib/Mage/Archive/Helper/File/Bz.php +23 -23
- lib/Mage/Archive/Helper/File/Gz.php +23 -23
- lib/Mage/Archive/Interface.php +4 -4
- lib/Mage/Archive/Tar.php +4 -4
- lib/Mage/Autoload/Simple.php +52 -52
- lib/Mage/Backup.php +4 -4
- lib/Mage/Backup/Abstract.php +4 -4
- lib/Mage/Backup/Archive/Tar.php +4 -4
- lib/Mage/Backup/Db.php +4 -4
- lib/Mage/Backup/Exception.php +4 -4
- lib/Mage/Backup/Exception/CantLoadSnapshot.php +4 -4
- lib/Mage/Backup/Exception/FtpConnectionFailed.php +4 -4
- lib/Mage/Backup/Exception/FtpValidationFailed.php +4 -4
- lib/Mage/Backup/Exception/NotEnoughFreeSpace.php +4 -4
- lib/Mage/Backup/Exception/NotEnoughPermissions.php +4 -4
- lib/Mage/Backup/Filesystem.php +4 -4
- lib/Mage/Backup/Filesystem/Helper.php +4 -4
- lib/Mage/Backup/Filesystem/Iterator/File.php +4 -4
- lib/Mage/Backup/Filesystem/Iterator/Filter.php +4 -4
- lib/Mage/Backup/Filesystem/Rollback/Abstract.php +4 -4
- lib/Mage/Backup/Filesystem/Rollback/Fs.php +4 -4
- lib/Mage/Backup/Filesystem/Rollback/Ftp.php +4 -4
- lib/Mage/Backup/Interface.php +4 -4
- lib/Mage/Backup/Media.php +4 -4
- lib/Mage/Backup/Nomedia.php +4 -4
- lib/Mage/Backup/Snapshot.php +4 -4
- lib/Mage/Cache/Backend/File.php +6 -9
- lib/Mage/Cache/Backend/Redis.php +6 -9
- lib/Mage/Connect/Channel/Generator.php +63 -63
- lib/Mage/Connect/Channel/Parser.php +25 -25
- lib/Mage/Connect/Channel/VO.php +113 -113
- lib/Mage/Connect/Command.php +5 -5
- lib/Mage/Connect/Command/Channels.php +4 -4
- lib/Mage/Connect/Command/Channels_Header.php +4 -5
- lib/Mage/Connect/Command/Config.php +211 -211
- lib/Mage/Connect/Command/Config_Header.php +100 -100
- lib/Mage/Connect/Command/Install.php +4 -4
- lib/Mage/Connect/Command/Install_Header.php +9 -9
- lib/Mage/Connect/Command/Package.php +6 -6
- lib/Mage/Connect/Command/Package_Header.php +5 -5
- lib/Mage/Connect/Command/Registry.php +5 -5
- lib/Mage/Connect/Command/Registry_Header.php +5 -5
- lib/Mage/Connect/Command/Remote.php +5 -5
- lib/Mage/Connect/Command/Remote_Header.php +5 -5
- lib/Mage/Connect/Config.php +25 -2
- lib/Mage/Connect/Converter.php +5 -6
- lib/Mage/Connect/Frontend.php +4 -4
- lib/Mage/Connect/Frontend/CLI.php +441 -441
- lib/Mage/Connect/Ftp.php +4 -4
- lib/Mage/Connect/Loader.php +5 -5
- lib/Mage/Connect/Loader/Ftp.php +5 -5
- lib/Mage/Connect/Package.php +5 -5
- lib/Mage/Connect/Package/Hotfix.php +5 -5
- lib/Mage/Connect/Package/Maintainer.php +1 -0
- lib/Mage/Connect/Package/Reader.php +5 -5
- lib/Mage/Connect/Package/Target.php +5 -5
- lib/Mage/Connect/Package/VO.php +96 -96
- lib/Mage/Connect/Package/Writer.php +5 -5
- lib/Mage/Connect/Packager.php +4 -4
- lib/Mage/Connect/Repository.php +1 -0
- lib/Mage/Connect/Repository/Abstract.php +1 -0
- lib/Mage/Connect/Repository/Channel.php +1 -0
- lib/Mage/Connect/Repository/Channel/Abstract.php +1 -0
- lib/Mage/Connect/Repository/Channel/Commercial.php +1 -0
- lib/Mage/Connect/Repository/Channel/Community.php +1 -0
- lib/Mage/Connect/Repository/Channel/Core.php +1 -0
- lib/Mage/Connect/Repository/Local.php +1 -0
- lib/Mage/Connect/Rest.php +12 -12
- lib/Mage/Connect/Singleconfig.php +5 -5
- lib/Mage/Connect/Structures/Graph.php +4 -4
- lib/Mage/Connect/Structures/Node.php +4 -4
- lib/Mage/Connect/Validator.php +321 -321
- lib/Mage/DB/Exception.php +5 -5
- lib/Mage/DB/Mysqli.php +5 -5
- lib/Mage/Exception.php +5 -5
- lib/Mage/HTTP/Client.php +52 -52
- lib/Mage/HTTP/Client/Curl.php +10 -10
- lib/Mage/HTTP/Client/Socket.php +503 -503
- lib/Mage/HTTP/IClient.php +5 -5
- lib/Mage/System/Args.php +4 -4
- lib/Mage/System/Dirs.php +24 -2
- lib/Mage/System/Ftp.php +4 -4
- lib/Mage/Xml/Generator.php +25 -1
- lib/Mage/Xml/Parser.php +25 -1
- 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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Archive
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Archive
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Archive
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Archive
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Archive
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Archive
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Archive
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Archive
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Archive
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
25 |
-
*/
|
26 |
-
|
27 |
-
class Mage_Autoload_Simple
|
28 |
-
{
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
if (!self::$_instance) {
|
34 |
-
|
35 |
-
self::$_instance = new $class();
|
36 |
-
}
|
37 |
-
return self::$_instance;
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Backup
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
-
* @category
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
-
* @category
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
25 |
*/
|
26 |
|
27 |
$commands = array(
|
28 |
|
29 |
-
|
30 |
'summary' => 'Install Package Archive File',
|
31 |
'function' => 'doInstall',
|
32 |
'shortcut' => 'if',
|
33 |
'options' => array(),
|
34 |
-
|
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-
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
21 |
*
|
22 |
* @category Mage
|
23 |
* @package Mage_Connect
|
24 |
-
* @copyright
|
25 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
25 |
*/
|
26 |
|
27 |
/**
|
@@ -1274,7 +1274,7 @@ END;
|
|
1274 |
*/
|
1275 |
public function hasErrors()
|
1276 |
{
|
1277 |
-
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
-
*
|
21 |
-
* @category Mage
|
22 |
-
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
25 |
-
*/
|
26 |
-
|
27 |
-
class Mage_Connect_Package_VO implements Iterator
|
28 |
-
{
|
29 |
-
protected $properties = array(
|
30 |
-
'name' => '',
|
31 |
-
|
32 |
-
'cahnnel' => '',
|
33 |
-
'extends' => '',
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_Connect
|
23 |
-
* @copyright
|
24 |
-
* @license
|
25 |
*/
|
26 |
|
27 |
/**
|
@@ -34,78 +34,78 @@
|
|
34 |
|
35 |
class Mage_Connect_Validator
|
36 |
{
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
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 |
-
|
108 |
-
|
109 |
|
110 |
/**
|
111 |
* Validate License url
|
@@ -126,18 +126,18 @@ class Mage_Connect_Validator
|
|
126 |
* @param array $data
|
127 |
* @return bool
|
128 |
*/
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
return true;
|
136 |
}
|
137 |
$count = 0;
|
138 |
foreach($data as $k=>$v) {
|
139 |
foreach(array('name','channel','min','max') as $fld) {
|
140 |
-
|
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 |
-
|
163 |
}
|
164 |
|
165 |
}
|
166 |
return ! $this->hasErrors();
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
if(!$res) {
|
189 |
$this->addError("Invalid or empty name for author #{$count}");
|
190 |
}
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
return extension_loaded($name);
|
400 |
-
|
401 |
|
402 |
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
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
|
12 |
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
25 |
*/
|
26 |
|
27 |
/**
|
@@ -34,504 +34,504 @@
|
|
34 |
class Mage_HTTP_Client_Socket
|
35 |
implements Mage_HTTP_IClient
|
36 |
{
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
* @param string $host
|
132 |
* @param int $port
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
$this->makeRequest("GET",$this->parseUrl($uri));
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
$this->_responseHeaders[$name] = array();
|
395 |
}
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_System
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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@
|
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.
|
20 |
*
|
21 |
* @category Mage
|
22 |
* @package Mage_System
|
23 |
-
* @copyright
|
24 |
-
* @license
|
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.
|
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.
|
12 |
<authors><author><name>Magento Core Team</name><user>core</user><email>core@magentocommerce.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelib"><dir name="Mage"><dir name="Archive"><file name="Abstract.php" hash="
|
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>
|