Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*** this is shell
- <?php
- Class DealsShell extends Shell {
- var $tasks = array('Teambuy', 'Dealticker', 'Swarmjam');
- function main() {
- echo "in main\n";
- foreach ($this->tasks as $task) {
- echo "executing $task\n";
- $this->$task->execute();
- }
- }
- }
- /*** this is task
- class TeambuyTask extends Shell {
- public $uses = array('Showreel.Deal', 'Showreel.Teambuy');
- ...
- ..
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement