Created
May 28, 2010 17:14
-
-
Save LeeSaferite/417431 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<modules> | |
<MyCompany_MyModule> | |
<version>1.0.0</version> | |
</MyCompany_MyModule> | |
</modules> | |
<global> | |
<models> | |
<cron> | |
<rewrite> | |
<observer>MyCompany_MyModule_Model_Observer</observer> | |
</rewrite> | |
</cron> | |
</models> | |
</global> | |
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyCompany_MyModule_Model_Observer extends Mage_Cron_Model_Observer | |
{ | |
/** | |
* Process cron queue | |
* Geterate tasks schedule | |
* Cleanup tasks schedule | |
* | |
* @param Varien_Event_Observer $observer | |
*/ | |
public function dispatch($observer) | |
{ | |
// DO YOUR STUFF HERE | |
parent::dispatch($observer); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment