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
21 public function run() {
22 echo "Generating table list\n";
23 $template = new CRM_Core_CodeGen_Util_Template('php');
24 $template->assign('tables', $this->tables
);
25 $template->assign('genCodeChecksum', 'IGNORE');
26 $template->run('listAll.tpl', $this->getAbsFileName());
30 * Get absolute file name.
34 protected function getAbsFileName() {
35 return $this->config
->CoreDAOCodePath
. "AllCoreTables.data.php";