Commit | Line | Data |
---|---|---|
5e434adf ARW |
1 | <?php |
2 | ||
b5c2afd0 EM |
3 | /** |
4 | * Class CRM_Core_CodeGen_BaseTask | |
5 | */ | |
5e434adf ARW |
6 | abstract class CRM_Core_CodeGen_BaseTask implements CRM_Core_CodeGen_ITask { |
7 | protected $config; | |
8 | ||
2558c2b0 | 9 | /** |
2558c2b0 | 10 | */ |
00be9182 | 11 | public function __construct() { |
5e434adf ARW |
12 | } |
13 | ||
2558c2b0 | 14 | /** |
4f1f1f2a CW |
15 | * TODO: this is the most rudimentary possible hack. CG config should |
16 | * eventually be made into a first-class object. | |
17 | * | |
18 | * @param object $config | |
2558c2b0 | 19 | */ |
00be9182 | 20 | public function setConfig($config) { |
5e434adf ARW |
21 | $this->config = $config; |
22 | $this->tables = $this->config->tables; | |
23 | } | |
96025800 | 24 | |
5e434adf | 25 | } |