forked from AOEpeople/Aoe_Scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AOEpeople#153 from LeeSaferite/patch-3
Add missing event name prefix and object names
- Loading branch information
Showing
3 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
app/code/community/Aoe/Scheduler/Model/Resource/Schedule/Collection.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
class Aoe_Scheduler_Model_Resource_Schedule_Collection extends Mage_Cron_Model_Resource_Schedule_Collection | ||
{ | ||
/** | ||
* Event name prefix for events that are dispatched by this class | ||
* | ||
* @var string | ||
*/ | ||
protected $_eventPrefix = 'aoe_scheduler_schedule_collection'; | ||
|
||
/** | ||
* Event parameter name that references this object in an event | ||
* | ||
* In an observer method you can use $observer->getData('collection') or $observer->getData('data_object') to get this object | ||
* | ||
* @var string | ||
*/ | ||
protected $_eventObject = 'collection'; | ||
} |
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
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