Version Notes
First stable release
Download this release
Release Info
Developer | Magento Core Team |
Extension | Magmodules_Feedbackcompany |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- app/code/local/Magmodules/Feedbackcompany/Model/Observer.php +11 -2
- app/code/local/Magmodules/Feedbackcompany/Model/Reviews.php +4 -0
- app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php +6 -0
- app/code/local/Magmodules/Feedbackcompany/etc/config.xml +1 -1
- package.xml +4 -4
app/code/local/Magmodules/Feedbackcompany/Model/Observer.php
CHANGED
@@ -36,11 +36,11 @@ class Magmodules_Feedbackcompany_Model_Observer {
|
|
36 |
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
37 |
}
|
38 |
}
|
39 |
-
Mage::getModel('feedbackcompany/stats')->processOverall();
|
40 |
}
|
41 |
|
42 |
public function processReviews() {
|
43 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
|
|
44 |
foreach($storeids as $storeid) {
|
45 |
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled', $storeid);
|
46 |
$cron_enabled = Mage::getStoreConfig('feedbackcompany/reviews/cron', $storeid);
|
@@ -49,14 +49,19 @@ class Magmodules_Feedbackcompany_Model_Observer {
|
|
49 |
$start_time = microtime(true);
|
50 |
$feed = Mage::getModel('feedbackcompany/api')->getFeed($storeid, $crontype);
|
51 |
$results = Mage::getModel('feedbackcompany/reviews')->processFeed($feed, $storeid, $crontype);
|
52 |
-
$results['stats'] = Mage::getModel('feedbackcompany/stats')->processFeed($feed, $storeid
|
53 |
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
|
|
54 |
}
|
55 |
}
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
public function processHistory() {
|
59 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
|
|
60 |
foreach($storeids as $storeid) {
|
61 |
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled', $storeid);
|
62 |
$cron_enabled = Mage::getStoreConfig('feedbackcompany/reviews/cron', $storeid);
|
@@ -67,8 +72,12 @@ class Magmodules_Feedbackcompany_Model_Observer {
|
|
67 |
$results = Mage::getModel('feedbackcompany/reviews')->processFeed($feed, $storeid, $crontype);
|
68 |
$results['stats'] = Mage::getModel('feedbackcompany/stats')->processFeed($feed, $storeid);
|
69 |
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
|
|
70 |
}
|
71 |
}
|
|
|
|
|
|
|
72 |
}
|
73 |
|
74 |
public function cleanLog() {
|
36 |
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
37 |
}
|
38 |
}
|
|
|
39 |
}
|
40 |
|
41 |
public function processReviews() {
|
42 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
43 |
+
$qty = 0;
|
44 |
foreach($storeids as $storeid) {
|
45 |
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled', $storeid);
|
46 |
$cron_enabled = Mage::getStoreConfig('feedbackcompany/reviews/cron', $storeid);
|
49 |
$start_time = microtime(true);
|
50 |
$feed = Mage::getModel('feedbackcompany/api')->getFeed($storeid, $crontype);
|
51 |
$results = Mage::getModel('feedbackcompany/reviews')->processFeed($feed, $storeid, $crontype);
|
52 |
+
$results['stats'] = Mage::getModel('feedbackcompany/stats')->processFeed($feed, $storeid);
|
53 |
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
54 |
+
$qty++;
|
55 |
}
|
56 |
}
|
57 |
+
if($qty > 0) {
|
58 |
+
Mage::getModel('feedbackcompany/reviews')->flushCache();
|
59 |
+
}
|
60 |
}
|
61 |
|
62 |
public function processHistory() {
|
63 |
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
64 |
+
$qty = 0;
|
65 |
foreach($storeids as $storeid) {
|
66 |
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled', $storeid);
|
67 |
$cron_enabled = Mage::getStoreConfig('feedbackcompany/reviews/cron', $storeid);
|
72 |
$results = Mage::getModel('feedbackcompany/reviews')->processFeed($feed, $storeid, $crontype);
|
73 |
$results['stats'] = Mage::getModel('feedbackcompany/stats')->processFeed($feed, $storeid);
|
74 |
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
75 |
+
$qty++;
|
76 |
}
|
77 |
}
|
78 |
+
if($qty > 0) {
|
79 |
+
Mage::getModel('feedbackcompany/reviews')->flushCache();
|
80 |
+
}
|
81 |
}
|
82 |
|
83 |
public function cleanLog() {
|
app/code/local/Magmodules/Feedbackcompany/Model/Reviews.php
CHANGED
@@ -130,4 +130,8 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract
|
|
130 |
return $result;
|
131 |
}
|
132 |
|
|
|
|
|
|
|
|
|
133 |
}
|
130 |
return $result;
|
131 |
}
|
132 |
|
133 |
+
public function flushCache() {
|
134 |
+
Mage::app()->getCacheInstance()->cleanType('block_html');
|
135 |
+
}
|
136 |
+
|
137 |
}
|
app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php
CHANGED
@@ -53,6 +53,7 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
53 |
}
|
54 |
}
|
55 |
Mage::getModel('feedbackcompany/stats')->processOverall();
|
|
|
56 |
$this->_redirect('adminhtml/system_config/edit/section/feedbackcompany');
|
57 |
}
|
58 |
|
@@ -75,6 +76,7 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
75 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
76 |
}
|
77 |
}
|
|
|
78 |
$this->_redirect('*/*/index');
|
79 |
}
|
80 |
|
@@ -93,6 +95,7 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
93 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
94 |
}
|
95 |
}
|
|
|
96 |
$this->_redirect('*/*/index');
|
97 |
}
|
98 |
|
@@ -111,6 +114,7 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
111 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
112 |
}
|
113 |
}
|
|
|
114 |
$this->_redirect('*/*/index');
|
115 |
}
|
116 |
|
@@ -129,6 +133,7 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
129 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
130 |
}
|
131 |
}
|
|
|
132 |
$this->_redirect('*/*/index');
|
133 |
}
|
134 |
|
@@ -140,6 +145,7 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
140 |
$i++;
|
141 |
}
|
142 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Succefully deleted all %s saved review(s).', $i));
|
|
|
143 |
$this->_redirect('*/*/index');
|
144 |
}
|
145 |
|
53 |
}
|
54 |
}
|
55 |
Mage::getModel('feedbackcompany/stats')->processOverall();
|
56 |
+
Mage::getModel('feedbackcompany/reviews')->flushCache();
|
57 |
$this->_redirect('adminhtml/system_config/edit/section/feedbackcompany');
|
58 |
}
|
59 |
|
76 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
77 |
}
|
78 |
}
|
79 |
+
Mage::getModel('feedbackcompany/reviews')->flushCache();
|
80 |
$this->_redirect('*/*/index');
|
81 |
}
|
82 |
|
95 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
96 |
}
|
97 |
}
|
98 |
+
Mage::getModel('feedbackcompany/reviews')->flushCache();
|
99 |
$this->_redirect('*/*/index');
|
100 |
}
|
101 |
|
114 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
115 |
}
|
116 |
}
|
117 |
+
Mage::getModel('feedbackcompany/reviews')->flushCache();
|
118 |
$this->_redirect('*/*/index');
|
119 |
}
|
120 |
|
133 |
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
134 |
}
|
135 |
}
|
136 |
+
Mage::getModel('feedbackcompany/reviews')->flushCache();
|
137 |
$this->_redirect('*/*/index');
|
138 |
}
|
139 |
|
145 |
$i++;
|
146 |
}
|
147 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Succefully deleted all %s saved review(s).', $i));
|
148 |
+
Mage::getModel('feedbackcompany/reviews')->flushCache();
|
149 |
$this->_redirect('*/*/index');
|
150 |
}
|
151 |
|
app/code/local/Magmodules/Feedbackcompany/etc/config.xml
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
-
<version>1.2.
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
+
<version>1.2.3</version>
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Connect your Magento shop to The Feedback Company</description>
|
11 |
<notes>First stable release</notes>
|
12 |
<authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
13 |
-
<date>2015-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="1898d4df8746111e1a5404869226b26a"/></dir><dir name="Feedbackreviews"><dir name="Renderer"><file name="Experience.php" hash="b5fd639eea45b31779747da049b66a80"/></dir><file name="Grid.php" hash="e56fee3f655371a066e9f56ce5ae914d"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="4d2bce798a5b9c2b5d62bfe35c27d720"/><file name="Test.php" hash="040ecb43856a68dca4699a63c1e9c9f8"/></dir><dir name="Form"><file name="Heading.php" hash="8f820fe2ad56e3c4be54f7f84bc47eca"/><file name="Note.php" hash="974eaf447da64ec78001cd91f3cc3827"/></dir><dir name="Grid"><file name="Log.php" hash="ceff6fe31ea786257d1fd1c5c7a4ef82"/><file name="Seconds.php" hash="a7e6db7624fee7717cba3048f3f5638b"/><file name="Stars.php" hash="8041613a13a202b0df1d376dc38c5e76"/></dir><dir name="Info"><file name="Info.php" hash="fe80bd3c99f8cd6c814ab2ae8ad4cffe"/></dir></dir><file name="Feedbacklog.php" hash="eb36920b105077ca572137ccb4a9345c"/><file name="Feedbackreviews.php" hash="d1cf617989422aa0533d354dfde0fdf1"/></dir><file name="Custom.php" hash="81c71fd897e67911da525be8e9e8d4a1"/><file name="Reviews.php" hash="9393b1ffb4f9514cad46a51db24e6ab4"/><file name="Sidebar.php" hash="2cf37dc01dbde2a192f1b3a7f81c60c8"/></dir><dir name="Helper"><file name="Data.php" hash="1364831227cc724d3e8bdeca62d3451b"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="1c6f30ede26cadb9fd4c51f916cbfeb2"/></dir><dir name="Reviews"><file name="Collection.php" hash="17f3acddd0e184f923d137433aaa40ee"/></dir><dir name="Stats"><file name="Collection.php" hash="184fe402b66949e0d4fdb95fc6b4189d"/></dir><file name="Log.php" hash="542d942a56d159d5c1af65ed5c6de857"/><file name="Reviews.php" hash="5518780ad915f644ed9cc319def2da8c"/><file name="Stats.php" hash="268aed9ed09e83611b12c7bbbfca5076"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attribute.php" hash="de511d86d47ae252e3097c335302c294"/><file name="Category.php" hash="43e5e5d69b764e9c93f9089e0ec64d26"/><file name="Cronfrequency.php" hash="80f7f624a17328052b156c7fde67ff7a"/><file name="Orderstatus.php" hash="64429a1804e1bc5ec2f0ea89e7627fc8"/><file name="Position.php" hash="3c11a9fba6006528bb904036ca87f619"/><file name="Reviewlink.php" hash="87122c1414c49a24222288fe3e96216c"/><file name="Sidebarlink.php" hash="9e1a817b4253645b5632306ffd89dd03"/></dir></dir></dir><file name="Api.php" hash="145849678951add55a82fbffcfa33318"/><file name="Log.php" hash="e64de82f87f3830914240e24ccbfb402"/><file name="Observer.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
+
<version>1.2.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
10 |
<description>Connect your Magento shop to The Feedback Company</description>
|
11 |
<notes>First stable release</notes>
|
12 |
<authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
13 |
+
<date>2015-06-13</date>
|
14 |
+
<time>12:40:32</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="1898d4df8746111e1a5404869226b26a"/></dir><dir name="Feedbackreviews"><dir name="Renderer"><file name="Experience.php" hash="b5fd639eea45b31779747da049b66a80"/></dir><file name="Grid.php" hash="e56fee3f655371a066e9f56ce5ae914d"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="4d2bce798a5b9c2b5d62bfe35c27d720"/><file name="Test.php" hash="040ecb43856a68dca4699a63c1e9c9f8"/></dir><dir name="Form"><file name="Heading.php" hash="8f820fe2ad56e3c4be54f7f84bc47eca"/><file name="Note.php" hash="974eaf447da64ec78001cd91f3cc3827"/></dir><dir name="Grid"><file name="Log.php" hash="ceff6fe31ea786257d1fd1c5c7a4ef82"/><file name="Seconds.php" hash="a7e6db7624fee7717cba3048f3f5638b"/><file name="Stars.php" hash="8041613a13a202b0df1d376dc38c5e76"/></dir><dir name="Info"><file name="Info.php" hash="fe80bd3c99f8cd6c814ab2ae8ad4cffe"/></dir></dir><file name="Feedbacklog.php" hash="eb36920b105077ca572137ccb4a9345c"/><file name="Feedbackreviews.php" hash="d1cf617989422aa0533d354dfde0fdf1"/></dir><file name="Custom.php" hash="81c71fd897e67911da525be8e9e8d4a1"/><file name="Reviews.php" hash="9393b1ffb4f9514cad46a51db24e6ab4"/><file name="Sidebar.php" hash="2cf37dc01dbde2a192f1b3a7f81c60c8"/></dir><dir name="Helper"><file name="Data.php" hash="1364831227cc724d3e8bdeca62d3451b"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="1c6f30ede26cadb9fd4c51f916cbfeb2"/></dir><dir name="Reviews"><file name="Collection.php" hash="17f3acddd0e184f923d137433aaa40ee"/></dir><dir name="Stats"><file name="Collection.php" hash="184fe402b66949e0d4fdb95fc6b4189d"/></dir><file name="Log.php" hash="542d942a56d159d5c1af65ed5c6de857"/><file name="Reviews.php" hash="5518780ad915f644ed9cc319def2da8c"/><file name="Stats.php" hash="268aed9ed09e83611b12c7bbbfca5076"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attribute.php" hash="de511d86d47ae252e3097c335302c294"/><file name="Category.php" hash="43e5e5d69b764e9c93f9089e0ec64d26"/><file name="Cronfrequency.php" hash="80f7f624a17328052b156c7fde67ff7a"/><file name="Orderstatus.php" hash="64429a1804e1bc5ec2f0ea89e7627fc8"/><file name="Position.php" hash="3c11a9fba6006528bb904036ca87f619"/><file name="Reviewlink.php" hash="87122c1414c49a24222288fe3e96216c"/><file name="Sidebarlink.php" hash="9e1a817b4253645b5632306ffd89dd03"/></dir></dir></dir><file name="Api.php" hash="145849678951add55a82fbffcfa33318"/><file name="Log.php" hash="e64de82f87f3830914240e24ccbfb402"/><file name="Observer.php" hash="bd1fb89d488c75c70958f1eeb7ea1b02"/><file name="Reviews.php" hash="106ad3aa916f60f9399fac966a71c72a"/><file name="Stats.php" hash="1acf7b22daf0e46aa1379b540ca3bfdc"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FeedbacklogController.php" hash="c1ac62ed05266768095a8c8603822c5f"/><file name="FeedbackreviewsController.php" hash="c296ba2bbb21be5081b18cd0bed42e08"/></dir><file name="IndexController.php" hash="da1707d69452f5430305c20c083cba78"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8d51e2aa74e51f8de79650776cff510e"/><file name="config.xml" hash="97c34272ac234cbf694e8598cdb3b2a7"/><file name="system.xml" hash="83fcd0142e450f2e166019fa24bab16b"/></dir><dir name="sql"><dir name="feedbackcompany_setup"><file name="mysql4-install-0.9.0.php" hash="c86ec8f3c3a12cda7dd750cbd21dfca7"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="ef0c26c41ecfe27a20abacd5f041fae6"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_feedbackcompany.xml" hash="e602f5a1e7028f893a598e4b171e26b8"/></dir><dir name="template"><dir name="magmodules"><dir name="feedbackcompany"><dir name="sidebar"><file name="left.phtml" hash="ce6032051f6297d0d7754e209a2fe1fd"/><file name="right.phtml" hash="0033188b9d06524aa61dfd703a3b0f0a"/></dir><dir name="widget"><file name="medium.phtml" hash="d8b924dfb8ecff0c727e1f7175b3cd3e"/><file name="sidebar.phtml" hash="a3823c23c28bb7ee701ecf73faf147d3"/><file name="small.phtml" hash="a01354bab54c15dcce78aa55482c4bce"/></dir><file name="index.phtml" hash="5ece09fd9fb623aaf45773235f6632fc"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_feedbackcompany.xml" hash="886af6aabcc892da5074c93ad0263006"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Feedbackcompany.xml" hash="89e30c33efd62d035f0d231968b471a5"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Feedbackcompany.csv" hash="c9ee3be1fe9081310a138e6690b1dbeb"/></dir><dir name="nl_NL"><file name="Magmodules_Feedbackcompany.csv" hash="b96db18b82e1041cd6f307454b6c3121"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="feedbackcompany"><dir name="images"><file name="5-stars-empty.png" hash="799c499ca785331e7e69d892df52dd48"/><file name="5-stars-full.png" hash="1d06151a2c4da6bb71381538c8a903a5"/><file name="bkg_rating.gif" hash="83c843697e71cbe94ddd75bdedcbcf95"/><file name="bkg_rating2x.gif" hash="f71a52080752ca47b4c19810afd72e54"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="logo.png" hash="6c8d46ba30a7ae87dcb75db12830b33f"/><file name="small_fill.png" hash="2fa2ce516dddb74497ada0ae8be94380"/><file name="small_grey.png" hash="685735e666b7938f19ffe3b420152572"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="sidebar.css" hash="7054e114987ad6f34d590ca91a0156c6"/><file name="style.css" hash="4e2db1d0aa075b49d1bf64774980cc48"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="feedbackcompany"><file name="grid.css" hash="ea7e85df839bf0eb7bc6882608da80b0"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|