}
/**
- * Find the paths to all key files involved in the gen-code process
+ * Find the path to the main Civi source tree
*
- * @return array
+ * @return string
* @throws RuntimeException
*/
static function findCoreSourceDir() {
/**
* Find files in several directories using several filename patterns
*
- *
* @param array $pairs each item is an array(0 => $searchBaseDir, 1 => $filePattern)
* @return array of file paths
*/
# TODO: pull these settings from configuration
$genCode = new CRM_Core_CodeGen_Main(
- '../CRM/Core/DAO/', // $CoreDAOCodePath
- '../sql/', // $sqlCodePath
- '../', // $phpCodePath
- '../templates/', // $tplCodePath
- array('../packages/Smarty/plugins', '../CRM/Core/Smarty/plugins'), // smarty plugin dirs
- @$argv[3], // cms
- empty($argv[2]) ? NULL : $argv[2], // db version
- empty($argv[1]) ? 'schema/Schema.xml' : $argv[1], // schem afile
- getenv('CIVICRM_GENCODE_DIGEST') ? getenv('CIVICRM_GENCODE_DIGEST') : NULL
+ '../CRM/Core/DAO/', // $CoreDAOCodePath
+ '../sql/', // $sqlCodePath
+ '../', // $phpCodePath
+ '../templates/', // $tplCodePath
+ array('../packages/Smarty/plugins', '../CRM/Core/Smarty/plugins'), // smarty plugin dirs
+ @$argv[3], // cms
+ empty($argv[2]) ? NULL : $argv[2], // db version
+ empty($argv[1]) ? 'schema/Schema.xml' : $argv[1], // schema file
+ getenv('CIVICRM_GENCODE_DIGEST') ? getenv('CIVICRM_GENCODE_DIGEST') : NULL // path to digest file
);
$genCode->main();