Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-07-14-13-42-39
[civicrm-core.git] / CRM / Core / CodeGen / Reflection.php
1 <?php
2
3 /**
4 * Create classes which are used for schema introspection.
5 */
6 class CRM_Core_CodeGen_Reflection extends CRM_Core_CodeGen_BaseTask {
7 function run() {
8 $this->generateListAll();
9 }
10
11 function generateListAll() {
12 $template = new CRM_Core_CodeGen_Util_Template('php');
13 $template->assign('tables', $this->tables);
14
15 $template->run('listAll.tpl', $this->config->CoreDAOCodePath . "AllCoreTables.php");
16 }
17 }