Version Notes
* Refactored directory lister into the module, no more need to edit Varien_Data_Collection manually
* Displays order manager if only one order is in the list
* Fixed onclick htmlspecialchars javascript error
Download this release
Release Info
Developer | Magento Core Team |
Extension | Eabi_Livehandler |
Version | 0.1.2 |
Comparing to | |
See all releases |
Code changes from version 0.1.1 to 0.1.2
- app/code/community/Eabi/Livehandler/Block/Adminhtml/Config/Form/Field/Button.php +5 -4
- app/code/community/Eabi/Livehandler/Block/Adminhtml/Config/Form/Field/Remove.php +5 -4
- app/code/community/Eabi/Livehandler/Block/Footer.php +25 -24
- app/code/community/Eabi/Livehandler/Helper/Data.php +25 -24
- app/code/community/Eabi/Livehandler/Model/Abstract.php +25 -24
- app/code/community/Eabi/Livehandler/Model/Action/Abstract.php +5 -4
- app/code/community/Eabi/Livehandler/Model/Adminhtml/Gridmanager.php +25 -24
- app/code/community/Eabi/Livehandler/Model/Directory/Collection.php +520 -0
- app/code/community/Eabi/Livehandler/Model/Entry.php +25 -24
- app/code/community/Eabi/Livehandler/Model/Mysql4/Entry.php +25 -24
- app/code/community/Eabi/Livehandler/Model/Mysql4/Entry/Collection.php +6 -5
- app/code/community/Eabi/Livehandler/Model/Ordergrid.php +32 -28
- app/code/community/Eabi/Livehandler/Model/System/Config/Backend/Button.php +16 -6
- app/code/community/Eabi/Livehandler/controllers/Adminhtml/LivehandlerController.php +25 -24
- app/code/community/Eabi/Livehandler/controllers/Adminhtml/RemoveController.php +25 -24
- app/code/community/Eabi/Livehandler/controllers/IndexController.php +25 -24
- app/code/community/Eabi/Livehandler/etc/config.xml +29 -8
- app/code/community/Eabi/Livehandler/etc/system.xml +25 -6
- app/code/community/Eabi/Livehandler/sql/eabi_livehandler_setup/mysql4-install-0.1.0.php +5 -4
- app/code/community/Eabi/Livehandler/sql/eabi_livehandler_setup/mysql4-upgrade-0.1.0-0.1.1.php +5 -4
- app/design/adminhtml/default/default/layout/eabi_livehandler.xml +26 -2
- app/design/frontend/base/default/layout/eabi_livehandler.xml +26 -2
- app/design/frontend/default/default/layout/eabi_livehandler.xml +26 -2
- app/etc/modules/Eabi_Livehandler.xml +26 -7
- package.xml +7 -5
app/code/community/Eabi/Livehandler/Block/Adminhtml/Config/Form/Field/Button.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -19,10 +19,11 @@
|
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/Block/Adminhtml/Config/Form/Field/Remove.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -19,10 +19,11 @@
|
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/Block/Footer.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/Helper/Data.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/Model/Abstract.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/Model/Action/Abstract.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -19,10 +19,11 @@
|
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/Model/Adminhtml/Gridmanager.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/Model/Directory/Collection.php
ADDED
@@ -0,0 +1,520 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*
|
4 |
+
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
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 info@e-abi.ee so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category Eabi
|
22 |
+
* @package Eabi_Livehandler
|
23 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Matis Halmann
|
26 |
+
*
|
27 |
+
|
28 |
+
*/
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Description of Collection
|
32 |
+
*
|
33 |
+
* @author Matis
|
34 |
+
*/
|
35 |
+
class Eabi_Livehandler_Model_Directory_Collection implements IteratorAggregate, Countable {
|
36 |
+
protected $_path='';
|
37 |
+
protected $_dirName='';
|
38 |
+
protected $_recursionLevel=0;
|
39 |
+
protected $_isRecursion;
|
40 |
+
protected $_filters = array();
|
41 |
+
/**
|
42 |
+
* Constructor
|
43 |
+
*
|
44 |
+
* @param string $path - path to directory
|
45 |
+
* @param bool $is_recursion - use or not recursion
|
46 |
+
* @return none
|
47 |
+
*/
|
48 |
+
public function __construct($path,$isRecursion=true,$recursionLevel = 0)
|
49 |
+
{
|
50 |
+
$this->setPath($path);
|
51 |
+
$this->_dirName = $this->lastDir();
|
52 |
+
$this->setRecursion($isRecursion);
|
53 |
+
$this->setRecursionLevel($recursionLevel);
|
54 |
+
if($this->getRecursion() || $this->getRecursionLevel()==0){
|
55 |
+
$this->parseDir();
|
56 |
+
}
|
57 |
+
}
|
58 |
+
/**
|
59 |
+
* Get name of this directory
|
60 |
+
*
|
61 |
+
* @return string - name of this directory
|
62 |
+
*/
|
63 |
+
public function getDirName()
|
64 |
+
{
|
65 |
+
return $this->_dirName;
|
66 |
+
}
|
67 |
+
/**
|
68 |
+
* Get recursion
|
69 |
+
*
|
70 |
+
* @return bool - is or not recursion
|
71 |
+
*/
|
72 |
+
public function getRecursion()
|
73 |
+
{
|
74 |
+
return $this->_isRecursion;
|
75 |
+
}
|
76 |
+
/**
|
77 |
+
* Get recursion level
|
78 |
+
*
|
79 |
+
* @return int - recursion level
|
80 |
+
*/
|
81 |
+
public function getRecursionLevel()
|
82 |
+
{
|
83 |
+
return $this->_recursionLevel;
|
84 |
+
}
|
85 |
+
/**
|
86 |
+
* Get path
|
87 |
+
*
|
88 |
+
* @return string - path to this directory
|
89 |
+
*/
|
90 |
+
public function getPath()
|
91 |
+
{
|
92 |
+
return $this->_path;
|
93 |
+
}
|
94 |
+
/**
|
95 |
+
* Set path to this directory
|
96 |
+
* @param string $path - path to this directory
|
97 |
+
* @param bool $isRecursion - use or not recursion
|
98 |
+
* @return none
|
99 |
+
*/
|
100 |
+
public function setPath($path, $isRecursion='')
|
101 |
+
{
|
102 |
+
if(is_dir($path)){
|
103 |
+
if(isset($this->_path) && $this->_path!=$path && $this->_path!=''){
|
104 |
+
$this->_path = $path;
|
105 |
+
if($isRecursion!='')$this->_isRecursion = $isRecursion;
|
106 |
+
$this->parseDir();
|
107 |
+
} else {
|
108 |
+
$this->_path = $path;
|
109 |
+
}
|
110 |
+
} else {
|
111 |
+
throw new Exception($path. 'is not dir.');
|
112 |
+
}
|
113 |
+
}
|
114 |
+
/**
|
115 |
+
* Set recursion
|
116 |
+
*
|
117 |
+
* @param bool $isRecursion - use or not recursion
|
118 |
+
* @return none
|
119 |
+
*/
|
120 |
+
public function setRecursion($isRecursion)
|
121 |
+
{
|
122 |
+
$this->_isRecursion = $isRecursion;
|
123 |
+
}
|
124 |
+
/**
|
125 |
+
* Set level of recursion
|
126 |
+
*
|
127 |
+
* @param int $recursionLevel - level of recursion
|
128 |
+
* @return none
|
129 |
+
*/
|
130 |
+
public function setRecursionLevel($recursionLevel)
|
131 |
+
{
|
132 |
+
$this->_recursionLevel = $recursionLevel;
|
133 |
+
}
|
134 |
+
/**
|
135 |
+
* get latest dir in the path
|
136 |
+
*
|
137 |
+
* @param string $path - path to directory
|
138 |
+
* @return string - latest dir in the path
|
139 |
+
*/
|
140 |
+
public function lastDir()
|
141 |
+
{
|
142 |
+
return self::getLastDir($this->getPath());
|
143 |
+
}
|
144 |
+
/**
|
145 |
+
* get latest dir in the path
|
146 |
+
*
|
147 |
+
* @param string $path - path to directory
|
148 |
+
* @return string - latest dir in the path
|
149 |
+
*/
|
150 |
+
static public function getLastDir($path){
|
151 |
+
if($path=='') $path = $this->getPath();
|
152 |
+
$last = strrpos($path, "/");
|
153 |
+
return substr($path,$last+1);
|
154 |
+
}
|
155 |
+
/**
|
156 |
+
* add item to collection
|
157 |
+
*
|
158 |
+
* @param IFactory $item - item of collection
|
159 |
+
* @return none
|
160 |
+
*/
|
161 |
+
public function addItem($item)
|
162 |
+
{
|
163 |
+
$this->_items[] = $item;
|
164 |
+
}
|
165 |
+
/**
|
166 |
+
* parse this directory
|
167 |
+
*
|
168 |
+
* @return none
|
169 |
+
*/
|
170 |
+
protected function parseDir()
|
171 |
+
{
|
172 |
+
$this->clear();
|
173 |
+
$iter = new RecursiveDirectoryIterator($this->getPath());
|
174 |
+
while ($iter->valid()) {
|
175 |
+
$curr = (string)$iter->getSubPathname();
|
176 |
+
if (!$iter->isDot() && $curr[0]!='.'){
|
177 |
+
$this->addItem(self::getFactory($iter->current(),$this->getRecursion(),$this->getRecursionLevel()));
|
178 |
+
}
|
179 |
+
$iter->next();
|
180 |
+
}
|
181 |
+
}
|
182 |
+
|
183 |
+
static public function getFactory($path,$is_recursion = true,$recurse_level=0)
|
184 |
+
{
|
185 |
+
if(is_dir($path)){
|
186 |
+
$obj = new Eabi_Livehandler_Model_Directory_Collection($path,$is_recursion,$recurse_level+1);
|
187 |
+
return $obj;
|
188 |
+
} else {
|
189 |
+
// return new Varien_File_Object($path);
|
190 |
+
}
|
191 |
+
}
|
192 |
+
|
193 |
+
|
194 |
+
/**
|
195 |
+
* set filter using
|
196 |
+
*
|
197 |
+
* @param bool $useFilter - filter using
|
198 |
+
* @return none
|
199 |
+
*/
|
200 |
+
public function useFilter($useFilter)
|
201 |
+
{
|
202 |
+
$this->_renderFilters();
|
203 |
+
$this->walk('useFilter', array($useFilter));
|
204 |
+
}
|
205 |
+
/**
|
206 |
+
* get files names of current collection
|
207 |
+
*
|
208 |
+
* @return array - files names of current collection
|
209 |
+
*/
|
210 |
+
public function filesName()
|
211 |
+
{
|
212 |
+
$files = array();
|
213 |
+
$this->getFilesName($files);
|
214 |
+
return $files;
|
215 |
+
|
216 |
+
}
|
217 |
+
/**
|
218 |
+
* get files names of current collection
|
219 |
+
*
|
220 |
+
* @param array $files - array of files names
|
221 |
+
* @return none
|
222 |
+
*/
|
223 |
+
public function getFilesName(&$files) {
|
224 |
+
$this->walk('getFilesName', array(&$files));
|
225 |
+
}
|
226 |
+
/**
|
227 |
+
* get files paths of current collection
|
228 |
+
*
|
229 |
+
* @return array - files paths of current collection
|
230 |
+
*/
|
231 |
+
public function filesPaths()
|
232 |
+
{
|
233 |
+
$paths = array();
|
234 |
+
$this->getFilesPaths($paths);
|
235 |
+
return $paths;
|
236 |
+
}
|
237 |
+
/**
|
238 |
+
* get files paths of current collection
|
239 |
+
*
|
240 |
+
* @param array $files - array of files paths
|
241 |
+
* @return none
|
242 |
+
*/
|
243 |
+
public function getFilesPaths(&$paths)
|
244 |
+
{
|
245 |
+
$this->walk('getFilesPaths', array(&$paths));
|
246 |
+
}
|
247 |
+
/**
|
248 |
+
* get SplFileObject objects of files of current collection
|
249 |
+
*
|
250 |
+
* @return array - array of SplFileObject objects
|
251 |
+
*/
|
252 |
+
public function filesObj()
|
253 |
+
{
|
254 |
+
$objs = array();
|
255 |
+
$this->getFilesObj($objs);
|
256 |
+
return $objs;
|
257 |
+
}
|
258 |
+
/**
|
259 |
+
* get SplFileObject objects of files of current collection
|
260 |
+
*
|
261 |
+
* @param array $objs - array of SplFileObject objects
|
262 |
+
* @return none
|
263 |
+
*/
|
264 |
+
public function getFilesObj(&$objs)
|
265 |
+
{
|
266 |
+
$this->walk('getFilesObj', array(&$objs));
|
267 |
+
}
|
268 |
+
/**
|
269 |
+
* get names of dirs of current collection
|
270 |
+
*
|
271 |
+
* @return array - array of names of dirs
|
272 |
+
*/
|
273 |
+
public function dirsName()
|
274 |
+
{
|
275 |
+
$dir = array();
|
276 |
+
$this->getDirsName($dir);
|
277 |
+
return $dir;
|
278 |
+
}
|
279 |
+
/**
|
280 |
+
* get names of dirs of current collection
|
281 |
+
*
|
282 |
+
* @param array $dirs - array of names of dirs
|
283 |
+
* @return none
|
284 |
+
*/
|
285 |
+
public function getDirsName(&$dirs)
|
286 |
+
{
|
287 |
+
$this->walk('getDirsName', array(&$dirs));
|
288 |
+
if($this->getRecursionLevel()>0)
|
289 |
+
$dirs[] = $this->getDirName();
|
290 |
+
}
|
291 |
+
/**
|
292 |
+
* set filters for files
|
293 |
+
*
|
294 |
+
* @param array $filter - array of filters
|
295 |
+
* @return none
|
296 |
+
*/
|
297 |
+
protected function setFilesFilter($filter)
|
298 |
+
{
|
299 |
+
$this->walk('setFilesFilter', array($filter));
|
300 |
+
}
|
301 |
+
/**
|
302 |
+
* display this collection as array
|
303 |
+
*
|
304 |
+
* @return array
|
305 |
+
*/
|
306 |
+
public function __toArray()
|
307 |
+
{
|
308 |
+
$arr = array();
|
309 |
+
$this->toArray($arr);
|
310 |
+
return $arr;
|
311 |
+
}
|
312 |
+
/**
|
313 |
+
* display this collection as array
|
314 |
+
* @param array &$arr - this collection array
|
315 |
+
* @return none
|
316 |
+
*/
|
317 |
+
public function toArray($arrRequiredFields = array())
|
318 |
+
{
|
319 |
+
return array();
|
320 |
+
}
|
321 |
+
/**
|
322 |
+
* get this collection as xml
|
323 |
+
* @param bool $addOpenTag - add or not header of xml
|
324 |
+
* @param string $rootName - root element name
|
325 |
+
* @return none
|
326 |
+
*/
|
327 |
+
public function __toXml($addOpenTag=true,$rootName='Struct')
|
328 |
+
{
|
329 |
+
$xml='';
|
330 |
+
$this->toXml($xml,$addOpenTag,$rootName);
|
331 |
+
return $xml;
|
332 |
+
}
|
333 |
+
/**
|
334 |
+
* get this collection as xml
|
335 |
+
* @param string &$xml - xml
|
336 |
+
* @param bool $addOpenTag - add or not header of xml
|
337 |
+
* @param string $rootName - root element name
|
338 |
+
* @return none
|
339 |
+
*/
|
340 |
+
public function toXml()
|
341 |
+
{
|
342 |
+
return '';
|
343 |
+
}
|
344 |
+
/**
|
345 |
+
* apply filters
|
346 |
+
* @return none
|
347 |
+
*/
|
348 |
+
protected function _renderFilters()
|
349 |
+
{
|
350 |
+
$exts = array();
|
351 |
+
$names = array();
|
352 |
+
$regName = array();
|
353 |
+
foreach ($this->_filters as $filter){
|
354 |
+
switch ($filter['field']){
|
355 |
+
case 'extension':
|
356 |
+
if(is_array($filter['value'])){
|
357 |
+
foreach ($filter['value'] as $value){
|
358 |
+
$exts[] = $value;
|
359 |
+
}
|
360 |
+
} else {
|
361 |
+
$exts[] = $filter['value'];
|
362 |
+
}
|
363 |
+
break;
|
364 |
+
case 'name':
|
365 |
+
if(is_array($filter['value'])){
|
366 |
+
foreach ($filter['value'] as $value){
|
367 |
+
$names[] = $filter['value'];
|
368 |
+
}
|
369 |
+
} else {
|
370 |
+
$names[] = $filter['value'];
|
371 |
+
}
|
372 |
+
break;
|
373 |
+
case 'regName':
|
374 |
+
if(is_array($filter['value'])){
|
375 |
+
foreach ($filter['value'] as $value){
|
376 |
+
$regName[] = $filter['value'];
|
377 |
+
}
|
378 |
+
} else {
|
379 |
+
$regName[] = $filter['value'];
|
380 |
+
}
|
381 |
+
break;
|
382 |
+
}
|
383 |
+
}
|
384 |
+
$filter = array();
|
385 |
+
if(count($exts)>0) {
|
386 |
+
$filter['extension'] = $exts;
|
387 |
+
} else {
|
388 |
+
$filter['extension'] = null;
|
389 |
+
}
|
390 |
+
if(count($names)>0) {
|
391 |
+
$filter['name']=$names;
|
392 |
+
} else {
|
393 |
+
$filter['name']=null;
|
394 |
+
}
|
395 |
+
if(count($regName)>0) {
|
396 |
+
|
397 |
+
$filter['regName']=$regName;
|
398 |
+
} else {
|
399 |
+
$filter['regName']=null;
|
400 |
+
}
|
401 |
+
$this->setFilesFilter($filter);
|
402 |
+
}
|
403 |
+
/**
|
404 |
+
* add filter
|
405 |
+
* @return none
|
406 |
+
*/
|
407 |
+
public function addFilter($field, $value, $type = 'and')
|
408 |
+
{
|
409 |
+
$filter = array();
|
410 |
+
$filter['field'] = $field;
|
411 |
+
$filter['value'] = $value;
|
412 |
+
$this->_filters[] = $filter;
|
413 |
+
$this->_isFiltersRendered = false;
|
414 |
+
$this->walk('addFilter',array($field, $value));
|
415 |
+
return $this;
|
416 |
+
}
|
417 |
+
|
418 |
+
public function count() {
|
419 |
+
$this->load();
|
420 |
+
return count($this->_items);
|
421 |
+
|
422 |
+
}
|
423 |
+
|
424 |
+
public function getIterator() {
|
425 |
+
$this->load();
|
426 |
+
return new ArrayIterator($this->_items);
|
427 |
+
|
428 |
+
}
|
429 |
+
/**
|
430 |
+
* Load data
|
431 |
+
*
|
432 |
+
* @return Varien_Data_Collection
|
433 |
+
*/
|
434 |
+
public function loadData($printQuery = false, $logQuery = false)
|
435 |
+
{
|
436 |
+
return $this;
|
437 |
+
}
|
438 |
+
|
439 |
+
/**
|
440 |
+
* Load data
|
441 |
+
*
|
442 |
+
* @return Varien_Data_Collection
|
443 |
+
*/
|
444 |
+
public function load($printQuery = false, $logQuery = false)
|
445 |
+
{
|
446 |
+
return $this->loadData($printQuery, $logQuery);
|
447 |
+
}
|
448 |
+
/**
|
449 |
+
* Clear collection
|
450 |
+
*
|
451 |
+
* @return Varien_Data_Collection
|
452 |
+
*/
|
453 |
+
public function clear()
|
454 |
+
{
|
455 |
+
$this->_setIsLoaded(false);
|
456 |
+
$this->_items = array();
|
457 |
+
return $this;
|
458 |
+
}
|
459 |
+
/**
|
460 |
+
* Retrieve collection loading status
|
461 |
+
*
|
462 |
+
* @return bool
|
463 |
+
*/
|
464 |
+
public function isLoaded()
|
465 |
+
{
|
466 |
+
return $this->_isCollectionLoaded;
|
467 |
+
}
|
468 |
+
|
469 |
+
/**
|
470 |
+
* Set collection loading status flag
|
471 |
+
*
|
472 |
+
* @param unknown_type $flag
|
473 |
+
* @return unknown
|
474 |
+
*/
|
475 |
+
protected function _setIsLoaded($flag = true)
|
476 |
+
{
|
477 |
+
$this->_isCollectionLoaded = $flag;
|
478 |
+
return $this;
|
479 |
+
}
|
480 |
+
/**
|
481 |
+
* Walk through the collection and run model method or external callback
|
482 |
+
* with optional arguments
|
483 |
+
*
|
484 |
+
* Returns array with results of callback for each item
|
485 |
+
*
|
486 |
+
* @param string $method
|
487 |
+
* @param array $args
|
488 |
+
* @return array
|
489 |
+
*/
|
490 |
+
public function walk($callback, array $args=array())
|
491 |
+
{
|
492 |
+
$results = array();
|
493 |
+
$useItemCallback = is_string($callback) && strpos($callback, '::')===false;
|
494 |
+
foreach ($this->getItems() as $id=>$item) {
|
495 |
+
if ($useItemCallback) {
|
496 |
+
$cb = array($item, $callback);
|
497 |
+
} else {
|
498 |
+
$cb = $callback;
|
499 |
+
array_unshift($args, $item);
|
500 |
+
}
|
501 |
+
$results[$id] = call_user_func_array($cb, $args);
|
502 |
+
}
|
503 |
+
return $results;
|
504 |
+
}
|
505 |
+
|
506 |
+
/**
|
507 |
+
* Retrieve collection items
|
508 |
+
*
|
509 |
+
* @return array
|
510 |
+
*/
|
511 |
+
public function getItems()
|
512 |
+
{
|
513 |
+
$this->load();
|
514 |
+
return $this->_items;
|
515 |
+
}
|
516 |
+
|
517 |
+
|
518 |
+
|
519 |
+
}
|
520 |
+
|
app/code/community/Eabi/Livehandler/Model/Entry.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/Model/Mysql4/Entry.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/Model/Mysql4/Entry/Collection.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -19,10 +19,11 @@
|
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
@@ -60,4 +61,4 @@ class Eabi_Livehandler_Model_Mysql4_Entry_Collection extends Mage_Core_Model_Mys
|
|
60 |
return $this;
|
61 |
}
|
62 |
}
|
63 |
-
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
61 |
return $this;
|
62 |
}
|
63 |
}
|
64 |
+
|
app/code/community/Eabi/Livehandler/Model/Ordergrid.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
@@ -241,10 +242,12 @@ EOT;
|
|
241 |
if ($basePrice == null) {
|
242 |
$basePrice = $orderItem->getBasePrice();
|
243 |
}
|
|
|
|
|
244 |
$toReplace = array(
|
245 |
'name' => $name,
|
246 |
'sku' => htmlspecialchars($orderItem->getSku()),
|
247 |
-
'qty' => round($orderItem->getQtyOrdered()),
|
248 |
'price' => Mage::helper('core')->currency($basePrice, true, false),
|
249 |
'total' => Mage::helper('core')->currency($basePrice * $orderItem->getQtyOrdered(), true, false),
|
250 |
);
|
@@ -275,7 +278,7 @@ EOT;
|
|
275 |
}
|
276 |
|
277 |
$buttonsHtml = '';
|
278 |
-
if (!self::$_hasButtons) {
|
279 |
$buttonsHtml .= '<span class="eabi_commercial">'.$this->getEabi()->__('Manage the order from here by adding <a href=\'%s\' target=\'_blank\'>action buttons</a>', $this->getEabi()->__($this->getEabi()->getConfigData('eabi_livehandler/admintools/buttons_url'))).'</span>';
|
280 |
}
|
281 |
|
@@ -473,7 +476,7 @@ EOT;
|
|
473 |
|
474 |
|
475 |
var rows = $$('table#sales_order_grid_table tbody tr');
|
476 |
-
if (rows.length == 1) {
|
477 |
return;
|
478 |
}
|
479 |
|
@@ -788,7 +791,8 @@ EOT;
|
|
788 |
private function __makeActionButton($title, $onclick = '', $cssClass = '', $id = '') {
|
789 |
$html = '';
|
790 |
|
791 |
-
$onclick = htmlspecialchars(str_replace('\\\'', '\'', addslashes($onclick)));
|
|
|
792 |
|
793 |
$html .= <<<EOT
|
794 |
<button class="scalable eabi_orderview_actionbutton {$cssClass}" id="{$id}" type="button" onclick="{$onclick}"><span>{$title}</span></button>
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
242 |
if ($basePrice == null) {
|
243 |
$basePrice = $orderItem->getBasePrice();
|
244 |
}
|
245 |
+
// echo '<pre>'.htmlspecialchars(print_r($orderItem->debug(), true)).'</pre>';
|
246 |
+
// exit;
|
247 |
$toReplace = array(
|
248 |
'name' => $name,
|
249 |
'sku' => htmlspecialchars($orderItem->getSku()),
|
250 |
+
'qty' => round($orderItem->getQtyOrdered()) .'/'.round(Mage::getModel('cataloginventory/stock_item')->loadByProduct($orderItem->getProductId())->getQty()),
|
251 |
'price' => Mage::helper('core')->currency($basePrice, true, false),
|
252 |
'total' => Mage::helper('core')->currency($basePrice * $orderItem->getQtyOrdered(), true, false),
|
253 |
);
|
278 |
}
|
279 |
|
280 |
$buttonsHtml = '';
|
281 |
+
if (!self::$_hasButtons && !$this->getEabi()->getConfigData('eabi_livehandler/admintools/disable_url')) {
|
282 |
$buttonsHtml .= '<span class="eabi_commercial">'.$this->getEabi()->__('Manage the order from here by adding <a href=\'%s\' target=\'_blank\'>action buttons</a>', $this->getEabi()->__($this->getEabi()->getConfigData('eabi_livehandler/admintools/buttons_url'))).'</span>';
|
283 |
}
|
284 |
|
476 |
|
477 |
|
478 |
var rows = $$('table#sales_order_grid_table tbody tr');
|
479 |
+
if (rows.length == 1 && rows[0].childElements().length == 1) {
|
480 |
return;
|
481 |
}
|
482 |
|
791 |
private function __makeActionButton($title, $onclick = '', $cssClass = '', $id = '') {
|
792 |
$html = '';
|
793 |
|
794 |
+
// $onclick = htmlspecialchars(str_replace('\\\'', '\'', addslashes($onclick)));
|
795 |
+
$onclick = htmlspecialchars($onclick);
|
796 |
|
797 |
$html .= <<<EOT
|
798 |
<button class="scalable eabi_orderview_actionbutton {$cssClass}" id="{$id}" type="button" onclick="{$onclick}"><span>{$title}</span></button>
|
app/code/community/Eabi/Livehandler/Model/System/Config/Backend/Button.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -19,10 +19,11 @@
|
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
@@ -42,8 +43,8 @@ class Eabi_Livehandler_Model_System_Config_Backend_Button extends Mage_Adminhtml
|
|
42 |
);
|
43 |
$foundNames = array();
|
44 |
foreach ($dirnames as $dirname) {
|
45 |
-
if (is_dir($dirname)) {
|
46 |
-
$directoryLister = new
|
47 |
$filenames = $directoryLister->filesPaths();
|
48 |
foreach ($filenames as $filename) {
|
49 |
$className = str_replace(array($dirname, '\\'), array('', '/'), $filename);
|
@@ -122,6 +123,15 @@ class Eabi_Livehandler_Model_System_Config_Backend_Button extends Mage_Adminhtml
|
|
122 |
return (int)$a['sort_order'] < (int)$b['sort_order']?-1:1;
|
123 |
}
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
}
|
127 |
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
43 |
);
|
44 |
$foundNames = array();
|
45 |
foreach ($dirnames as $dirname) {
|
46 |
+
if (is_dir($dirname) && !$this->getEabi()->getConfigData('eabi_livehandler/admintools/disable_actions_read')) {
|
47 |
+
$directoryLister = new Eabi_Livehandler_Model_Directory_Collection($dirname, true);
|
48 |
$filenames = $directoryLister->filesPaths();
|
49 |
foreach ($filenames as $filename) {
|
50 |
$className = str_replace(array($dirname, '\\'), array('', '/'), $filename);
|
123 |
return (int)$a['sort_order'] < (int)$b['sort_order']?-1:1;
|
124 |
}
|
125 |
|
126 |
+
/**
|
127 |
+
*
|
128 |
+
* @return Eabi_Livehandler_Helper_Data
|
129 |
+
*/
|
130 |
+
protected function getEabi() {
|
131 |
+
return Mage::helper('eabi');
|
132 |
+
}
|
133 |
+
|
134 |
+
|
135 |
|
136 |
}
|
137 |
|
app/code/community/Eabi/Livehandler/controllers/Adminhtml/LivehandlerController.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/controllers/Adminhtml/RemoveController.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/controllers/IndexController.php
CHANGED
@@ -1,28 +1,29 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
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 info@e-abi.ee 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 this module to newer
|
18 |
-
* versions in the future.
|
19 |
-
*
|
20 |
-
* @category Eabi
|
21 |
-
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
-
*
|
|
|
26 |
*/
|
27 |
|
28 |
/**
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
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 info@e-abi.ee 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 this module to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category Eabi
|
21 |
+
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
+
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
/**
|
app/code/community/Eabi/Livehandler/etc/config.xml
CHANGED
@@ -1,19 +1,38 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
-
|
4 |
-
@category Eabi
|
5 |
-
@package Eabi_Livehandler
|
6 |
-
@author Aktsiamaailm OU
|
7 |
-
@licence http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
-->
|
11 |
|
12 |
|
13 |
<config>
|
14 |
<modules>
|
15 |
<Eabi_Livehandler>
|
16 |
-
<version>0.1.
|
17 |
</Eabi_Livehandler>
|
18 |
</modules>
|
19 |
|
@@ -160,7 +179,9 @@
|
|
160 |
<enabled>1</enabled>
|
161 |
</main>
|
162 |
<admintools>
|
163 |
-
<enabled>
|
|
|
|
|
164 |
<open_in_new>1</open_in_new>
|
165 |
<buttons_url>http://en.e-abi.ee/magento/better-order-management.html</buttons_url>
|
166 |
</admintools>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
+
/*
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
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 info@e-abi.ee so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category Eabi
|
22 |
+
* @package Eabi_Livehandler
|
23 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Matis Halmann
|
26 |
+
*
|
27 |
+
|
28 |
+
*/
|
29 |
-->
|
30 |
|
31 |
|
32 |
<config>
|
33 |
<modules>
|
34 |
<Eabi_Livehandler>
|
35 |
+
<version>0.1.2</version>
|
36 |
</Eabi_Livehandler>
|
37 |
</modules>
|
38 |
|
179 |
<enabled>1</enabled>
|
180 |
</main>
|
181 |
<admintools>
|
182 |
+
<enabled>0</enabled>
|
183 |
+
<disable_url>1</disable_url>
|
184 |
+
<disable_actions_read>0</disable_actions_read>
|
185 |
<open_in_new>1</open_in_new>
|
186 |
<buttons_url>http://en.e-abi.ee/magento/better-order-management.html</buttons_url>
|
187 |
</admintools>
|
app/code/community/Eabi/Livehandler/etc/system.xml
CHANGED
@@ -1,12 +1,31 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
-
|
4 |
-
@category Eabi
|
5 |
-
@package Eabi_Livehandler
|
6 |
-
@author Aktsiamaailm OU
|
7 |
-
@licence http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
-->
|
11 |
|
12 |
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
+
/*
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
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 info@e-abi.ee so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category Eabi
|
22 |
+
* @package Eabi_Livehandler
|
23 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Matis Halmann
|
26 |
+
*
|
27 |
+
|
28 |
+
*/
|
29 |
-->
|
30 |
|
31 |
|
app/code/community/Eabi/Livehandler/sql/eabi_livehandler_setup/mysql4-install-0.1.0.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -19,10 +19,11 @@
|
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
*
|
|
|
26 |
*/
|
27 |
|
28 |
$installer = $this;
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
$installer = $this;
|
app/code/community/Eabi/Livehandler/sql/eabi_livehandler_setup/mysql4-upgrade-0.1.0-0.1.1.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
@@ -19,10 +19,11 @@
|
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
-
* @copyright Copyright (c) 2013
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
-
* @author Matis Halmann
|
25 |
*
|
|
|
26 |
*/
|
27 |
|
28 |
$installer = $this;
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
|
4 |
*
|
5 |
* NOTICE OF LICENSE
|
6 |
*
|
19 |
*
|
20 |
* @category Eabi
|
21 |
* @package Eabi_Livehandler
|
22 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
23 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Matis Halmann
|
25 |
*
|
26 |
+
|
27 |
*/
|
28 |
|
29 |
$installer = $this;
|
app/design/adminhtml/default/default/layout/eabi_livehandler.xml
CHANGED
@@ -1,7 +1,31 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
-->
|
6 |
|
7 |
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
+
/*
|
4 |
+
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
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 info@e-abi.ee so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category Eabi
|
22 |
+
* @package Eabi_Livehandler
|
23 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Matis Halmann
|
26 |
+
*
|
27 |
+
|
28 |
+
*/
|
29 |
-->
|
30 |
|
31 |
|
app/design/frontend/base/default/layout/eabi_livehandler.xml
CHANGED
@@ -1,7 +1,31 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
-->
|
6 |
|
7 |
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
+
/*
|
4 |
+
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
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 info@e-abi.ee so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category Eabi
|
22 |
+
* @package Eabi_Livehandler
|
23 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Matis Halmann
|
26 |
+
*
|
27 |
+
|
28 |
+
*/
|
29 |
-->
|
30 |
|
31 |
|
app/design/frontend/default/default/layout/eabi_livehandler.xml
CHANGED
@@ -1,7 +1,31 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
-->
|
6 |
|
7 |
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
+
/*
|
4 |
+
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
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 info@e-abi.ee so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category Eabi
|
22 |
+
* @package Eabi_Livehandler
|
23 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Matis Halmann
|
26 |
+
*
|
27 |
+
|
28 |
+
*/
|
29 |
-->
|
30 |
|
31 |
|
app/etc/modules/Eabi_Livehandler.xml
CHANGED
@@ -1,12 +1,31 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
-
|
4 |
-
@category Eabi
|
5 |
-
@package Eabi_Livehandler
|
6 |
-
@author Aktsiamaailm OU
|
7 |
-
@licence http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
-->
|
11 |
|
12 |
|
@@ -15,7 +34,7 @@
|
|
15 |
<Eabi_Livehandler>
|
16 |
<active>true</active>
|
17 |
<codePool>community</codePool>
|
18 |
-
<version>0.1.
|
19 |
</Eabi_Livehandler>
|
20 |
</modules>
|
21 |
</config>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!--
|
3 |
+
/*
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
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 info@e-abi.ee so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade this module to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category Eabi
|
22 |
+
* @package Eabi_Livehandler
|
23 |
+
* @copyright Copyright (c) 2013 Insolo OY (http://infosolo.fi/)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Matis Halmann
|
26 |
+
*
|
27 |
+
|
28 |
+
*/
|
29 |
-->
|
30 |
|
31 |
|
34 |
<Eabi_Livehandler>
|
35 |
<active>true</active>
|
36 |
<codePool>community</codePool>
|
37 |
+
<version>0.1.2</version>
|
38 |
</Eabi_Livehandler>
|
39 |
</modules>
|
40 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eabi_Livehandler</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -12,11 +12,13 @@
|
|
12 |
<p>You can navigate between orders by pressing directional keys or by pressing left/right icons on the order view</p>
|
13 |
<p>Possibility to create your own action buttons, which allows to save lots of time when managing orders</p>
|
14 |
<p>Possibility to purchase action buttons like <strong>Add order comment</strong>, <strong>Create invoice</strong>, <strong>Ship order</strong> and more</p></description>
|
15 |
-
<notes
|
|
|
|
|
16 |
<authors><author><name>Matis Matis</name><user>auto-converted</user><email>info@e-abi.ee</email></author></authors>
|
17 |
-
<date>2013-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="Eabi"><dir name="Livehandler"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Button.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies/>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Eabi_Livehandler</name>
|
4 |
+
<version>0.1.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
7 |
<channel>community</channel>
|
12 |
<p>You can navigate between orders by pressing directional keys or by pressing left/right icons on the order view</p>
|
13 |
<p>Possibility to create your own action buttons, which allows to save lots of time when managing orders</p>
|
14 |
<p>Possibility to purchase action buttons like <strong>Add order comment</strong>, <strong>Create invoice</strong>, <strong>Ship order</strong> and more</p></description>
|
15 |
+
<notes>* Refactored directory lister into the module, no more need to edit Varien_Data_Collection manually
|
16 |
+
* Displays order manager if only one order is in the list
|
17 |
+
* Fixed onclick htmlspecialchars javascript error</notes>
|
18 |
<authors><author><name>Matis Matis</name><user>auto-converted</user><email>info@e-abi.ee</email></author></authors>
|
19 |
+
<date>2013-11-21</date>
|
20 |
+
<time>18:53:07</time>
|
21 |
+
<contents><target name="magecommunity"><dir name="Eabi"><dir name="Livehandler"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Button.php" hash="769f934d1968eba40eb5f171dca1a1a6"/><file name="Remove.php" hash="0580ca2f3b46bfb5a26a2ba0de9c3b1b"/></dir></dir></dir></dir><file name="Footer.php" hash="7924e3ec5e05b47706852e2381426ff6"/></dir><dir name="Helper"><file name="Data.php" hash="778452358c06017367fd863de4b443e2"/></dir><dir name="Model"><dir name="Action"><file name="Abstract.php" hash="62e7b9907a19a8609ce497c1cfd6258a"/></dir><dir name="Adminhtml"><file name="Gridmanager.php" hash="d5bebdc44fb5923d04312db6340111ca"/></dir><dir name="Directory"><file name="Collection.php" hash="0c6342fcea78add76449fe4a52281ecb"/></dir><dir name="Mysql4"><dir name="Entry"><file name="Collection.php" hash="d09432a1d05ded81a8a159be04ddfb54"/></dir><file name="Entry.php" hash="71cd093acf45e30ef2e12da77691c411"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Button.php" hash="a1d66f26408347f018cdc5728717f87a"/></dir></dir></dir><file name="Abstract.php" hash="d672b74706f34a12f990895abefb9e7a"/><file name="Entry.php" hash="0a90d9fa154d8c6d0e4acb58add95b0a"/><file name="Ordergrid.php" hash="802bbfbda715aad45a4a1fb824464a6e"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="LivehandlerController.php" hash="3141021b8271061ca6e4b324f87ab19e"/><file name="RemoveController.php" hash="85d600fadeae29fd6cd884b6b7910918"/></dir><file name="IndexController.php" hash="59f5435d2e9120e52e38f6da04b20843"/></dir><dir name="etc"><file name="config.xml" hash="50745aaf0a48e191d032a9030bb8b692"/><file name="system.xml" hash="8a6fa438c21963a9aabdca771a11e727"/></dir><dir name="sql"><dir name="eabi_livehandler_setup"><file name="mysql4-install-0.1.0.php" hash="dcde4eaa686eed03d0ad74f3d73e5039"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="d4141e847390d7af4381f50aaab8c0e9"/></dir></dir><file name="CHANGELOG.txt" hash="c1462eeb9d109135e8d451c7341c4e3b"/><file name="LICENCE.txt" hash="0191312e121c0b3e1165619b96efcf9f"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="eabi_livehandler.xml" hash="e384d89cb128626854f404565f6dc196"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="eabi_livehandler.xml" hash="456c30e8faf08cd251444e5245fb84d5"/></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><file name="eabi_livehandler.xml" hash="456c30e8faf08cd251444e5245fb84d5"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eabi_Livehandler.xml" hash="e2b54a5b6126b249908d3cd663bd7186"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Eabi_Livehandler.csv" hash="6e070637c1109df358ca7913a5a67458"/></dir><dir name="et_EE"><file name="Eabi_Livehandler.csv" hash="a30b4f480458b711e6a398e6fc153359"/></dir><dir name="fi_FI"><file name="Eabi_Livehandler.csv" hash="6e070637c1109df358ca7913a5a67458"/></dir><dir name="lt_LT"><file name="Eabi_Livehandler.csv" hash="6e070637c1109df358ca7913a5a67458"/></dir><dir name="sv_SE"><file name="Eabi_Livehandler.csv" hash="6e070637c1109df358ca7913a5a67458"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="eabi_admintools.css" hash="fa4d08faa9c1300e9a543ff408557c38"/></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="eabi_js"><file name="crossBrowser_initKeyboardEvent.js" hash="8600c5536225fd70c56ef313ee430e08"/></dir><dir name="livepipe"><file name="contextmenu.js" hash="a5dbab9663d94d9d848e84b524c1f925"/><file name="cookie.js" hash="eab2042ac637aec7777c7c64e3e2bb1a"/><file name="event_behavior.js" hash="a59a00ad652efb1596b5bd2e6f5cfe48"/><file name="hotkey.js" hash="c6193fc03e4cd4c94ee4fb37e3d5ed6b"/><file name="livepipe.js" hash="6e569402b2686976e7390f0b7a25b1eb"/><file name="progressbar.js" hash="69719eccbecbc0378d9919c53a3ef7dd"/><file name="rating.js" hash="adb5ce773c37b40fb590a877d949be7a"/><file name="resizable.js" hash="38fd18daa37e5612495cc7b42fd32b3d"/><file name="scrollbar.js" hash="7a2603c2107944b8a70e41e7a84133ba"/><file name="selection.js" hash="3f48981cccffdb5fcc5f5ff27d0b0b68"/><file name="selectmultiple.js" hash="d8f044eb344061bdcce405f671b15654"/><file name="tabs.js" hash="22abb9a3ec3933d54ff9ede0338ca7f3"/><file name="textarea.js" hash="9825782bf78d38efa53200a206d8cd77"/><file name="window.js" hash="f6eba488d6a80e05f59d97a0cef59730"/></dir></dir></target></contents>
|
22 |
<compatible/>
|
23 |
<dependencies/>
|
24 |
</package>
|