/*** 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');
...
..
}