RocketWeb_All - Version 1.0.0

Version Notes

Initial release

Download this release

Release Info

Developer Magento Core Team
Extension RocketWeb_All
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/RocketWeb/All/Helper/Data.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php
2
+ class RocketWeb_All_Helper_Data extends Mage_Core_Helper_Data {
3
+
4
+ }
app/code/community/RocketWeb/All/Model/Feed.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class RocketWeb_All_Model_Feed extends Mage_AdminNotification_Model_Feed {
3
+ public function getFeedUrl() {
4
+ $url = (Mage::getStoreConfigFlag(self::XML_USE_HTTPS_PATH) ? 'https://':'http://').'www.rocketweb.com/media/rss-notification.xml';
5
+ return $url;
6
+ }
7
+
8
+
9
+ public function getLastUpdate()
10
+ {
11
+ return Mage::app()->loadCache('rocketweb_notifications_lastcheck');
12
+ }
13
+
14
+ public function setLastUpdate()
15
+ {
16
+ Mage::app()->saveCache(time(), 'rocketweb_notifications_lastcheck');
17
+ return $this;
18
+ }
19
+ }
app/code/community/RocketWeb/All/Model/Observer.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class RocketWeb_All_Model_Observer {
3
+ public function updateNotifications($observer) {
4
+ if (Mage::getStoreConfig('rocketweb_all/general/enable_notifications')) {
5
+ try {
6
+ Mage::getModel('rocketweb_all/feed')->checkUpdate();
7
+ } catch (Exception $e) {
8
+ //silently ignore
9
+ }
10
+ }
11
+ }
12
+ }
app/code/community/RocketWeb/All/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <rocketweb_all translate="title" module="rocketweb_all">
12
+ <title>RocketWeb All</title>
13
+ <sort_order>1006000</sort_order>
14
+ </rocketweb_all>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/RocketWeb/All/etc/config.xml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <RocketWeb_All>
5
+ <version>1.0.0</version>
6
+ </RocketWeb_All>
7
+ </modules>
8
+ <global>
9
+ <helpers>
10
+ <rocketweb_all>
11
+ <class>RocketWeb_All_Helper</class>
12
+ </rocketweb_all>
13
+ </helpers>
14
+ <models>
15
+ <rocketweb_all>
16
+ <class>RocketWeb_All_Model</class>
17
+ </rocketweb_all>
18
+ </models>
19
+ </global>
20
+ <adminhtml>
21
+ <events>
22
+ <controller_action_predispatch>
23
+ <observers>
24
+ <rocketweb_all>
25
+ <type>singleton</type>
26
+ <class>rocketweb_all/observer</class>
27
+ <method>updateNotifications</method>
28
+ </rocketweb_all>
29
+ </observers>
30
+ </controller_action_predispatch>
31
+ </events>
32
+ </adminhtml>
33
+ <default>
34
+ <rocketweb_all>
35
+ <general>
36
+ <enable_notifications>1</enable_notifications>
37
+ </general>
38
+ </rocketweb_all>
39
+ </default>
40
+ </config>
app/code/community/RocketWeb/All/etc/system.xml ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <rocketweb_tab>
5
+ <label>Rocket Web Extensions</label>
6
+ <sort_order>1005001</sort_order>
7
+ </rocketweb_tab>
8
+ </tabs>
9
+ <sections>
10
+ <rocketweb_all translate="label" module="rocketweb_all">
11
+ <label>General</label>
12
+ <tab>rocketweb_tab</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>100</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <general translate="label">
20
+ <label>Settings</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>10</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <enable_notifications translate="label comment">
28
+ <label>Enable notifications?</label>
29
+ <comment><![CDATA[]]></comment>
30
+ <frontend_type>select</frontend_type>
31
+ <source_model>adminhtml/system_config_source_yesno</source_model>
32
+ <sort_order>10</sort_order>
33
+ <show_in_default>1</show_in_default>
34
+ <show_in_website>1</show_in_website>
35
+ <show_in_store>1</show_in_store>
36
+ </enable_notifications>
37
+ </fields>
38
+ </general>
39
+ </groups>
40
+ </rocketweb_all>
41
+ </sections>
42
+ </config>
app/etc/modules/RocketWeb_All.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <RocketWeb_All>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </RocketWeb_All>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>RocketWeb_All</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license>free/open source</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>This extension provides basic functionality for all other Rocket Web extensions</summary>
10
+ <description>This extension provides basic functionality for all other Rocket Web extensions</description>
11
+ <notes>Initial release</notes>
12
+ <authors><author><name>RocketWeb Inc.</name><user>auto-converted</user><email>dev@rocketweb.com</email></author></authors>
13
+ <date>2012-12-12</date>
14
+ <time>10:15:12</time>
15
+ <contents><target name="magecommunity"><dir name="RocketWeb"><dir name="All"><dir name="Helper"><file name="Data.php" hash="e6dbd2a24db3d4d7861ef1c147c1fa76"/></dir><dir name="Model"><file name="Feed.php" hash="8e6a50942b3d1e5837a5ea989b9ef490"/><file name="Observer.php" hash="f6a9c8853b162372d9ed6c6bf7e3f86c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4fd75eb093ed58499256b0104018d523"/><file name="config.xml" hash="f0f72a5904f611a6c8e6d9c6cb074a5b"/><file name="system.xml" hash="90913e8ae8134bbe09c0f0a6552ff395"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="RocketWeb_All.xml" hash="b1c635dc428097a7fca6c9a1da0b7e04"/></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies/>
18
+ </package>