Version Notes
No notes
Download this release
Release Info
Developer | Yireo |
Extension | Yireo_DisableLog |
Version | 0.0.7 |
Comparing to | |
See all releases |
Code changes from version 0.0.6 to 0.0.7
- app/code/community/Yireo/DisableLog/Helper/Data.php +6 -4
- app/code/community/Yireo/DisableLog/Model/Feed.php +4 -4
- app/code/community/Yireo/DisableLog/Model/Observer.php +3 -4
- app/code/community/Yireo/DisableLog/Model/Rewrite/Catalogsearch/Query.php +2 -2
- app/code/community/Yireo/DisableLog/Model/Rewrite/Log/Visitor.php +3 -3
- app/code/community/Yireo/DisableLog/etc/config.xml +2 -2
- app/code/community/Yireo/DisableLog/etc/system.xml +1 -1
- app/etc/modules/Yireo_DisableLog.xml +3 -3
- package.xml +1 -1
app/code/community/Yireo/DisableLog/Helper/Data.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @package Yireo_DisableLog
|
6 |
* @author Yireo (http://www.yireo.com/)
|
7 |
-
* @copyright Copyright
|
8 |
* @license Open Source License (OSL v3)
|
9 |
*/
|
10 |
|
@@ -13,15 +13,17 @@
|
|
13 |
*/
|
14 |
class Yireo_DisableLog_Helper_Data extends Mage_Core_Helper_Abstract
|
15 |
{
|
16 |
-
|
17 |
* Helper-method to determine whether this module is enabled or not
|
18 |
*
|
19 |
-
* @access public
|
20 |
-
* @param null
|
21 |
* @return bool
|
22 |
*/
|
23 |
public function enabled()
|
24 |
{
|
|
|
|
|
|
|
|
|
25 |
return (bool)Mage::getStoreConfig('disablelog/settings/enabled');
|
26 |
}
|
27 |
}
|
4 |
*
|
5 |
* @package Yireo_DisableLog
|
6 |
* @author Yireo (http://www.yireo.com/)
|
7 |
+
* @copyright Copyright 2015 Yireo (http://www.yireo.com/)
|
8 |
* @license Open Source License (OSL v3)
|
9 |
*/
|
10 |
|
13 |
*/
|
14 |
class Yireo_DisableLog_Helper_Data extends Mage_Core_Helper_Abstract
|
15 |
{
|
16 |
+
/**
|
17 |
* Helper-method to determine whether this module is enabled or not
|
18 |
*
|
|
|
|
|
19 |
* @return bool
|
20 |
*/
|
21 |
public function enabled()
|
22 |
{
|
23 |
+
if ((bool)Mage::getStoreConfig('advanced/modules_disable_output/Yireo_DisableLog')) {
|
24 |
+
return false;
|
25 |
+
}
|
26 |
+
|
27 |
return (bool)Mage::getStoreConfig('disablelog/settings/enabled');
|
28 |
}
|
29 |
}
|
app/code/community/Yireo/DisableLog/Model/Feed.php
CHANGED
@@ -4,12 +4,12 @@
|
|
4 |
*
|
5 |
* @author Yireo
|
6 |
* @package Yireo_Common
|
7 |
-
* @copyright Copyright
|
8 |
* @license Open Source License (OSL v3) (OSL)
|
9 |
* @link http://www.yireo.com
|
10 |
*/
|
11 |
|
12 |
-
|
13 |
* Feed Model
|
14 |
*/
|
15 |
class Yireo_DisableLog_Model_Feed extends Mage_AdminNotification_Model_Feed
|
@@ -17,7 +17,7 @@ class Yireo_DisableLog_Model_Feed extends Mage_AdminNotification_Model_Feed
|
|
17 |
/**
|
18 |
* Return the feed URL
|
19 |
*/
|
20 |
-
protected $customFeedUrl = 'www.yireo.com/extfeed?format=feed&platform=magento&extension=disablelog';
|
21 |
|
22 |
/**
|
23 |
* Return the feed URL
|
@@ -26,7 +26,7 @@ class Yireo_DisableLog_Model_Feed extends Mage_AdminNotification_Model_Feed
|
|
26 |
*/
|
27 |
public function getFeedUrl()
|
28 |
{
|
29 |
-
return
|
30 |
}
|
31 |
|
32 |
/**
|
4 |
*
|
5 |
* @author Yireo
|
6 |
* @package Yireo_Common
|
7 |
+
* @copyright Copyright 2015
|
8 |
* @license Open Source License (OSL v3) (OSL)
|
9 |
* @link http://www.yireo.com
|
10 |
*/
|
11 |
|
12 |
+
/**
|
13 |
* Feed Model
|
14 |
*/
|
15 |
class Yireo_DisableLog_Model_Feed extends Mage_AdminNotification_Model_Feed
|
17 |
/**
|
18 |
* Return the feed URL
|
19 |
*/
|
20 |
+
protected $customFeedUrl = 'https://www.yireo.com/extfeed?format=feed&platform=magento&extension=disablelog';
|
21 |
|
22 |
/**
|
23 |
* Return the feed URL
|
26 |
*/
|
27 |
public function getFeedUrl()
|
28 |
{
|
29 |
+
return $this->customFeedUrl;
|
30 |
}
|
31 |
|
32 |
/**
|
app/code/community/Yireo/DisableLog/Model/Observer.php
CHANGED
@@ -4,20 +4,19 @@
|
|
4 |
*
|
5 |
* @author Yireo
|
6 |
* @package DisableLog
|
7 |
-
* @copyright Copyright
|
8 |
* @license Open Source License (OSL v3)
|
9 |
* @link http://www.yireo.com
|
10 |
*/
|
11 |
|
12 |
-
|
13 |
* DisableLog observer to various Magento events
|
14 |
*/
|
15 |
class Yireo_DisableLog_Model_Observer extends Mage_Core_Model_Abstract
|
16 |
{
|
17 |
-
|
18 |
* Method fired on the event <controller_action_predispatch>
|
19 |
*
|
20 |
-
* @access public
|
21 |
* @param Varien_Event_Observer $observer
|
22 |
* @return Yireo_DisableLog_Model_Observer
|
23 |
*/
|
4 |
*
|
5 |
* @author Yireo
|
6 |
* @package DisableLog
|
7 |
+
* @copyright Copyright 2015
|
8 |
* @license Open Source License (OSL v3)
|
9 |
* @link http://www.yireo.com
|
10 |
*/
|
11 |
|
12 |
+
/**
|
13 |
* DisableLog observer to various Magento events
|
14 |
*/
|
15 |
class Yireo_DisableLog_Model_Observer extends Mage_Core_Model_Abstract
|
16 |
{
|
17 |
+
/**
|
18 |
* Method fired on the event <controller_action_predispatch>
|
19 |
*
|
|
|
20 |
* @param Varien_Event_Observer $observer
|
21 |
* @return Yireo_DisableLog_Model_Observer
|
22 |
*/
|
app/code/community/Yireo/DisableLog/Model/Rewrite/Catalogsearch/Query.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @package Yireo_DisableLog
|
6 |
* @author Yireo (http://www.yireo.com/)
|
7 |
-
* @copyright Copyright
|
8 |
* @license Open Source License (OSL v3)
|
9 |
*/
|
10 |
|
@@ -13,7 +13,7 @@ class Yireo_DisableLog_Model_Rewrite_Catalogsearch_Query extends Mage_CatalogSea
|
|
13 |
/**
|
14 |
* Onject initialization
|
15 |
*/
|
16 |
-
|
17 |
{
|
18 |
// If module is disabled
|
19 |
if((bool)Mage::getStoreConfig('disablelog/settings/enabled') == false) {
|
4 |
*
|
5 |
* @package Yireo_DisableLog
|
6 |
* @author Yireo (http://www.yireo.com/)
|
7 |
+
* @copyright Copyright 2015 Yireo (http://www.yireo.com/)
|
8 |
* @license Open Source License (OSL v3)
|
9 |
*/
|
10 |
|
13 |
/**
|
14 |
* Onject initialization
|
15 |
*/
|
16 |
+
public function setPopularity($popularity)
|
17 |
{
|
18 |
// If module is disabled
|
19 |
if((bool)Mage::getStoreConfig('disablelog/settings/enabled') == false) {
|
app/code/community/Yireo/DisableLog/Model/Rewrite/Log/Visitor.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @package Yireo_DisableLog
|
6 |
* @author Yireo (http://www.yireo.com/)
|
7 |
-
* @copyright Copyright
|
8 |
* @license Open Source License (OSL v3)
|
9 |
*/
|
10 |
|
@@ -44,7 +44,7 @@ class Yireo_DisableLog_Model_Rewrite_Log_Visitor extends Mage_Log_Model_Visitor
|
|
44 |
return $rt;
|
45 |
}
|
46 |
|
47 |
-
|
48 |
* Trick to get an unique visitor-ID anyway
|
49 |
*/
|
50 |
public function getId()
|
@@ -57,7 +57,7 @@ class Yireo_DisableLog_Model_Rewrite_Log_Visitor extends Mage_Log_Model_Visitor
|
|
57 |
return abs(crc32(Mage::getModel('core/session')->getSessionId()));
|
58 |
}
|
59 |
|
60 |
-
|
61 |
* Trick to get an unique visitor-ID anyway
|
62 |
*/
|
63 |
public function getVisitorId()
|
4 |
*
|
5 |
* @package Yireo_DisableLog
|
6 |
* @author Yireo (http://www.yireo.com/)
|
7 |
+
* @copyright Copyright 2015 Yireo (http://www.yireo.com/)
|
8 |
* @license Open Source License (OSL v3)
|
9 |
*/
|
10 |
|
44 |
return $rt;
|
45 |
}
|
46 |
|
47 |
+
/**
|
48 |
* Trick to get an unique visitor-ID anyway
|
49 |
*/
|
50 |
public function getId()
|
57 |
return abs(crc32(Mage::getModel('core/session')->getSessionId()));
|
58 |
}
|
59 |
|
60 |
+
/**
|
61 |
* Trick to get an unique visitor-ID anyway
|
62 |
*/
|
63 |
public function getVisitorId()
|
app/code/community/Yireo/DisableLog/etc/config.xml
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @package Yireo_DisableLog
|
7 |
* @author Yireo (http://www.yireo.com/)
|
8 |
-
* @copyright Copyright
|
9 |
* @license Open Source License (OSL v3)
|
10 |
*/
|
11 |
-->
|
@@ -13,7 +13,7 @@
|
|
13 |
|
14 |
<modules>
|
15 |
<Yireo_DisableLog>
|
16 |
-
<version>0.0.
|
17 |
</Yireo_DisableLog>
|
18 |
</modules>
|
19 |
|
5 |
*
|
6 |
* @package Yireo_DisableLog
|
7 |
* @author Yireo (http://www.yireo.com/)
|
8 |
+
* @copyright Copyright 2015 Yireo (http://www.yireo.com/)
|
9 |
* @license Open Source License (OSL v3)
|
10 |
*/
|
11 |
-->
|
13 |
|
14 |
<modules>
|
15 |
<Yireo_DisableLog>
|
16 |
+
<version>0.0.7</version>
|
17 |
</Yireo_DisableLog>
|
18 |
</modules>
|
19 |
|
app/code/community/Yireo/DisableLog/etc/system.xml
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @package Yireo_DisableLog
|
7 |
* @author Yireo (http://www.yireo.com/)
|
8 |
-
* @copyright Copyright
|
9 |
* @license Open Source License (OSL v3)
|
10 |
*/
|
11 |
-->
|
5 |
*
|
6 |
* @package Yireo_DisableLog
|
7 |
* @author Yireo (http://www.yireo.com/)
|
8 |
+
* @copyright Copyright 2015 Yireo (http://www.yireo.com/)
|
9 |
* @license Open Source License (OSL v3)
|
10 |
*/
|
11 |
-->
|
app/etc/modules/Yireo_DisableLog.xml
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @package Yireo_DisableLog
|
7 |
* @author Yireo (http://www.yireo.com/)
|
8 |
-
* @copyright Copyright
|
9 |
* @license Open Software License
|
10 |
*/
|
11 |
-->
|
@@ -15,8 +15,8 @@
|
|
15 |
<active>true</active>
|
16 |
<codePool>community</codePool>
|
17 |
<depends>
|
18 |
-
<Mage_Core
|
19 |
-
<Mage_Log
|
20 |
</depends>
|
21 |
</Yireo_DisableLog>
|
22 |
</modules>
|
5 |
*
|
6 |
* @package Yireo_DisableLog
|
7 |
* @author Yireo (http://www.yireo.com/)
|
8 |
+
* @copyright Copyright 2015 Yireo (http://www.yireo.com/)
|
9 |
* @license Open Software License
|
10 |
*/
|
11 |
-->
|
15 |
<active>true</active>
|
16 |
<codePool>community</codePool>
|
17 |
<depends>
|
18 |
+
<Mage_Core/>
|
19 |
+
<Mage_Log/>
|
20 |
</depends>
|
21 |
</Yireo_DisableLog>
|
22 |
</modules>
|
package.xml
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<package><name>Yireo_DisableLog</name><version>0.0.
|
1 |
<?xml version="1.0"?>
|
2 |
+
<package><name>Yireo_DisableLog</name><version>0.0.7</version><stability>stable</stability><license>Open Source License</license><channel>community</channel><extends></extends><summary>No summary</summary><description>No description</description><notes>No notes</notes><authors><author><name>Yireo</name><user>yireo</user><email>info@yireo.com</email></author></authors><date>2016-02-04</date><time>8:02:40</time><compatible></compatible><dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Yireo_DisableLog.xml" hash="f0054f6533a0456d9e45f558d0126bd1"/></dir></dir><dir name="code"><dir name="community"><dir name="Yireo"><dir name="DisableLog"><dir name="etc"><file name="config.xml" hash="0fc89c5b4435a9ce5c8757791f385bc8"/><file name="system.xml" hash="5f38a8bf370d90cc742321aca3b6b459"/></dir><dir name="Model"><file name="Feed.php" hash="9314ca45a31ad257511d61a66bb7f43b"/><file name="Observer.php" hash="d1f9ba9a8dfcbb604ec33bcf1123bc1c"/><dir name="Rewrite"><dir name="Log"><file name="Visitor.php" hash="01c2d813284e9fd1d3eb8dfa7459c1cd"/></dir><dir name="Catalogsearch"><file name="Query.php" hash="f2cd8ffc58d2ec47ef63a8cdaf3bb1d2"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="c65fb5d15e019724a0f5c5be8380a214"/></dir></dir></dir></dir></dir></dir></target></contents></package>
|