Stores the processor configuration
/processor/config.php Highlighted file source
Line 23: * Contains the {@link Config} class
Line 31: * Stores the processor configuration
Line 33: class Config {
Line 45: * Load and validate a config file
Line 58: echo "ERROR:\nRequired config option '\$dpgProjectName' not set.\n";
Line 63: echo "ERROR:\nRequired config option '\$dpgProjectCode' not set.\n";
Line 75: if (file_exists(__DIR__ . '/../database.config.php')) {
Line 76: $result = $this->loadSharedDatabaseConfig();
Line 78: echo "ERROR:\nConfig file 'database.config.php' was found but could not be parsed.\n";
Line 84: echo "ERROR:\nRequired config option '\$dpgOutputters' not set and 'database.config.php' file not found.\n";
Line 90: echo "ERROR:\nRequired config option '\$dpgBaseDirectory' not set or directory does not exist.\n";
Line 109: * If no outputters have been specified, load the common "database.config.php" file
Line 112: * @return Outputter If a outputter could be parsed from the configuration
Line 115: private function loadSharedDatabaseConfig() {
Line 116: require __DIR__ . '/../database.config.php';
/processor/database_outputter.php Highlighted file source
Line 387: * @param Config $config The project config
Line 395: public function output($files, Config $config)
Line 404: $code = $this->sql_safen($config->getProjectCode());
Line 411: $update_data['name'] = $this->sql_safen($config->getProjectName());
Line 412: $update_data['license'] = $this->sql_safen($config->getLicenseText());
Line 419: $insert_data['name'] = $this->sql_safen($config->getProjectName());
Line 420: $insert_data['code'] = $this->sql_safen($config->getProjectCode());
Line 421: $insert_data['license'] = $this->sql_safen($config->getLicenseText());
/processor/main.php Highlighted file source
Line 54: if ($argument == '--config') continue;
Line 56: $config = new Config();
Line 57: $result = $config->load($argument);
Line 64: foreach ($config->getOutputters() as $outputter) {
Line 71: $file_names = get_filenames($config->getBaseDirectory(), '', $config->getExcludeDirectories());
Line 83: if (isset($parsers[$ext]) and in_array($ext, $config->languages)) {
Line 85: $result = $parsers[$ext]->parseFile($config->getBaseDirectory(), $file);
Line 113: if ($config->getDocsDirectory() != '') {
Line 117: $file_names = get_filenames($config->getDocsDirectory(), '', array());
Line 129: $content = file_get_contents($config->getDocsDirectory() . $file);
Line 141: foreach ($config->getTransformers() as $transformer) {
Line 154: foreach ($config->getOutputters() as $outputter) {
Line 157: $result = $outputter->output($parser_model, $config);
A total of 41 lines in 6 files were found