4 * Create classes which are used for schema introspection.
6 class CRM_Core_CodeGen_Reflection
extends CRM_Core_CodeGen_BaseTask
{
10 * TRUE if an update is needed.
12 public function needsUpdate() {
13 // Generating this file is fairly cheap, and we don't have robust heuristic
16 // skip this task on test environment as the schema generation should only be triggered during installation/upgrade
17 if (CIVICRM_UF
== 'UnitTests') {
27 public function run() {
28 echo "Generating table list\n";
29 $template = new CRM_Core_CodeGen_Util_Template('php', FALSE);
30 $template->assign('tables', $this->tables
);
31 $template->assign('genCodeChecksum', 'IGNORE');
32 $template->run('listAll.tpl', $this->getAbsFileName());
36 * Get absolute file name.
40 protected function getAbsFileName() {
41 return $this->config
->CoreDAOCodePath
. "AllCoreTables.data.php";