Plumrocket_Auto_Invoice - Version 1.0.6

Version Notes

Some minor fixes.

Download this release

Release Info

Developer Plumrocket Team
Extension Plumrocket_Auto_Invoice
Version 1.0.6
Comparing to
See all releases


Code changes from version 1.0.5 to 1.0.6

app/code/community/Plumrocket/AutoInvoice/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Plumrocket_AutoInvoice>
5
- <version>1.0.5</version>
6
  </Plumrocket_AutoInvoice>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Plumrocket_AutoInvoice>
5
+ <version>1.0.6</version>
6
  </Plumrocket_AutoInvoice>
7
  </modules>
8
  <global>
app/code/community/Plumrocket/Base/Helper/Data.php DELETED
@@ -1,30 +0,0 @@
1
- <?php
2
-
3
- /*
4
-
5
- Plumrocket Inc.
6
-
7
- NOTICE OF LICENSE
8
-
9
- This source file is subject to the End-user License Agreement
10
- that is available through the world-wide-web at this URL:
11
- http://wiki.plumrocket.net/wiki/EULA
12
- If you are unable to obtain it through the world-wide-web, please
13
- send an email to support@plumrocket.com so we can send you a copy immediately.
14
-
15
- @package Plumrocket_Base-v1.x.x
16
- @copyright Copyright (c) 2014 Plumrocket Inc. (http://www.plumrocket.com)
17
- @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
18
-
19
- */
20
-
21
- class Plumrocket_Base_Helper_Data extends Mage_Core_Helper_Abstract
22
- {
23
- public function isAdminNotificationEnabled()
24
- {
25
- return (($module = Mage::getConfig()->getModuleConfig('Mage_AdminNotification'))
26
- && ($module->is('active', 'true'))
27
- && !Mage::getStoreConfig('advanced/modules_disable_output/Mage_AdminNotification'));
28
- }
29
- }
30
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Plumrocket/Base/Model/Feed.php DELETED
@@ -1,96 +0,0 @@
1
- <?php
2
-
3
- /*
4
-
5
- Plumrocket Inc.
6
-
7
- NOTICE OF LICENSE
8
-
9
- This source file is subject to the End-user License Agreement
10
- that is available through the world-wide-web at this URL:
11
- http://wiki.plumrocket.net/wiki/EULA
12
- If you are unable to obtain it through the world-wide-web, please
13
- send an email to support@plumrocket.com so we can send you a copy immediately.
14
-
15
- @package Plumrocket_Base-v1.x.x
16
- @copyright Copyright (c) 2014 Plumrocket Inc. (http://www.plumrocket.com)
17
- @license http://wiki.plumrocket.net/wiki/EULA End-user License Agreement
18
-
19
- */
20
-
21
- class Plumrocket_Base_Model_Feed extends Mage_AdminNotification_Model_Feed
22
- {
23
- const XML_USE_HTTPS_PATH = 'plumbase/notifications/use_https';
24
- const XML_FEED_URL_PATH = 'plumbase/notifications/feed_url';
25
- const XML_FREQUENCY_PATH = 'plumbase/notifications/frequency';
26
-
27
- protected $_feedUrl;
28
-
29
- public function getFeedUrl()
30
- {
31
- if (is_null($this->_feedUrl)) {
32
- $this->_feedUrl = (Mage::getStoreConfigFlag(self::XML_USE_HTTPS_PATH) ? 'https://' : 'http://')
33
- . Mage::getStoreConfig(self::XML_FEED_URL_PATH);
34
- }
35
-
36
- $urlInfo = parse_url(Mage::getBaseUrl());
37
- $domain = isset($urlInfo['host']) ? $urlInfo['host'] : '';
38
-
39
- if (!strpos($this->_feedUrl, '/index/')){
40
- $this->_feedUrl .= 'index/';
41
- }
42
-
43
- return $this->_feedUrl . 'domain/' . urlencode($domain);
44
- }
45
-
46
- public function checkUpdate()
47
- {
48
- if (! Mage::getSingleton('admin/session')->isLoggedIn()
49
- || (($this->getFrequency() + $this->getLastUpdate()) > time())
50
- || !Mage::helper('plumbase')->isAdminNotificationEnabled()
51
- ) {
52
- return $this;
53
- }
54
-
55
- try {
56
- $feedData = array();
57
- $feedXml = $this->getFeedData();
58
-
59
- if ($feedXml && $feedXml->channel && $feedXml->channel->item) {
60
- foreach ($feedXml->channel->item as $item) {
61
- $feedData[] = array(
62
- 'severity' => (int)$item->severity,
63
- 'date_added' => $this->getDate( (string)$item->pubDate ),
64
- 'title' => (string)$item->title,
65
- 'description' => (string)$item->description,
66
- 'url' => (string)$item->link,
67
- );
68
- }
69
- }
70
-
71
- if ($feedData) {
72
- Mage::getModel('adminnotification/inbox')->parse($feedData);
73
- }
74
- $this->setLastUpdate();
75
- return $this;
76
- } catch (Exception $E) {
77
- return false;
78
- }
79
- }
80
-
81
- public function getLastUpdate()
82
- {
83
- return Mage::app()->loadCache('plumrocket_rss_admin_notifications_lastcheck');
84
- }
85
-
86
- public function setLastUpdate()
87
- {
88
- Mage::app()->saveCache(time(), 'plumrocket_rss_admin_notifications_lastcheck');
89
- return $this;
90
- }
91
-
92
- public function getFrequency()
93
- {
94
- return Mage::getStoreConfig(self::XML_FREQUENCY_PATH) * 3600;
95
- }
96
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Plumrocket/Base/etc/config.xml DELETED
@@ -1,49 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
-
4
- <modules>
5
- <Plumrocket_Base>
6
- <version>1.0.0</version>
7
- </Plumrocket_Base>
8
- </modules>
9
-
10
- <global>
11
- <helpers>
12
- <plumbase>
13
- <class>Plumrocket_Base_Helper</class>
14
- </plumbase>
15
- </helpers>
16
- <models>
17
- <plumbase>
18
- <class>Plumrocket_Base_Model</class>
19
- <resourceModel>base_mysql4</resourceModel>
20
- </plumbase>
21
- </models>
22
- </global>
23
-
24
- <adminhtml>
25
- <events>
26
- <controller_action_predispatch>
27
- <observers>
28
- <plumrocket_base_notitications>
29
- <type>singleton</type>
30
- <class>plumbase/feed</class>
31
- <method>checkUpdate</method>
32
- </plumrocket_base_notitications>
33
- </observers>
34
- </controller_action_predispatch>
35
- </events>
36
- </adminhtml>
37
-
38
- <default>
39
- <plumbase>
40
- <notifications>
41
- <feed_url>store.plumrocket.com/notificationmanager/feed/</feed_url>
42
- <popup_url>widgets.magentocommerce.com/notificationPopup</popup_url>
43
- <severity_icons_url>widgets.magentocommerce.com/%s/%s.gif</severity_icons_url>
44
- <use_https>1</use_https>
45
- <frequency>1</frequency>
46
- </notifications>
47
- </plumbase>
48
- </default>
49
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Plumrocket_AutoInvoice.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Plumrocket_AutoInvoice>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
- <version>1.0.5</version>
8
  <wiki>http://wiki.plumrocket.com/wiki/Magento_Auto_Invoice_v1.x_Extension</wiki>
9
  <depends>
10
  <Plumrocket_Base />
4
  <Plumrocket_AutoInvoice>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <version>1.0.6</version>
8
  <wiki>http://wiki.plumrocket.com/wiki/Magento_Auto_Invoice_v1.x_Extension</wiki>
9
  <depends>
10
  <Plumrocket_Base />
app/etc/modules/Plumrocket_Base.xml DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Plumrocket_Base>
5
- <active>true</active>
6
- <codePool>community</codePool>
7
- <version>1.0.0</version>
8
- </Plumrocket_Base>
9
- </modules>
10
- </config>
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Plumrocket_Auto_Invoice</name>
4
- <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://wiki.plumrocket.net/wiki/EULA">End-user License Agreement</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Plumrocket Auto Invoice is a convenient Magento payment processing module that was designed to generate invoice automatically. After a client confirms his order the system will send the invoice automatically thus allowing website admin to avoid manual processing of payment transactions.</description>
11
  <notes>Some minor fixes.</notes>
12
  <authors><author><name>Plumrocket Team</name><user>plumrocket</user><email>support@plumrocket.com</email></author></authors>
13
- <date>2014-05-14</date>
14
- <time>10:13:21</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Plumrocket_AutoInvoice.xml" hash="cda30a41620308c4e2d302fbaff03a4a"/><file name="Plumrocket_Base.xml" hash="a168acb7d8c05758401655a26857ff50"/></dir></target><target name="magecommunity"><dir name="Plumrocket"><dir name="AutoInvoice"><dir name="Block"><dir name="System"><dir name="Config"><file name="Version.php" hash="3adcf7698f60ef53547cb6259797668c"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="2442a8b87cb8d2b97f7418d0ce0a4287"/></dir><dir name="Model"><file name="Observer.php" hash="56ea505e811603c516f129451a0f7b4f"/><dir name="System"><dir name="Config"><dir name="Source"><file name="CaptureAmount.php" hash="28a27588ddd56fbbab43f09e31a9bac8"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="e45a29110a7ea4ed9e26535cca2f47a4"/><file name="config.xml" hash="0995fe4dc2cb522aa24dc328f6114939"/><file name="system.xml" hash="38677f6b4a4ca2ecb55c9997c871159f"/></dir></dir><dir name="Base"><dir name="Helper"><file name="Data.php" hash="9e534ce8140731b96a0257a0a25060a7"/></dir><dir name="Model"><file name="Feed.php" hash="7412a21e6d1edd226fce19f3609de602"/></dir><dir name="etc"><file name="config.xml" hash="f01dda8545a580cfbe6d723cf5490def"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Plumrocket_Auto_Invoice</name>
4
+ <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://wiki.plumrocket.net/wiki/EULA">End-user License Agreement</license>
7
  <channel>community</channel>
10
  <description>Plumrocket Auto Invoice is a convenient Magento payment processing module that was designed to generate invoice automatically. After a client confirms his order the system will send the invoice automatically thus allowing website admin to avoid manual processing of payment transactions.</description>
11
  <notes>Some minor fixes.</notes>
12
  <authors><author><name>Plumrocket Team</name><user>plumrocket</user><email>support@plumrocket.com</email></author></authors>
13
+ <date>2014-09-02</date>
14
+ <time>09:54:34</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Plumrocket_AutoInvoice.xml" hash="4175c594cc76ab389dffeddd37edcd5c"/></dir></target><target name="magecommunity"><dir name="Plumrocket"><dir name="AutoInvoice"><dir name="Block"><dir name="System"><dir name="Config"><file name="Version.php" hash="3adcf7698f60ef53547cb6259797668c"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="2442a8b87cb8d2b97f7418d0ce0a4287"/></dir><dir name="Model"><file name="Observer.php" hash="56ea505e811603c516f129451a0f7b4f"/><dir name="System"><dir name="Config"><dir name="Source"><file name="CaptureAmount.php" hash="28a27588ddd56fbbab43f09e31a9bac8"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="e45a29110a7ea4ed9e26535cca2f47a4"/><file name="config.xml" hash="641535bd3df9dfa064620e77f3053847"/><file name="system.xml" hash="38677f6b4a4ca2ecb55c9997c871159f"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Plumrocket_Base</name><channel>community</channel><min></min><max></max></package></required></dependencies>
18
  </package>