<?php /** * The args for the list-cli-scripts script. * * @copyright Clear Line Web Design, 2007-08-03 */ echo "Do you want to list all the CLI scripts in the project?\n"; $all_project = CLIScripts_InputReader::ask_yes_no_question(); if (!$all_project) { $section_and_module = HaddockProjectOrganisation_CLIModuleDirectoryFinder::find_section_and_module($args, 'search-section', "Search for scripts in which section?\n", 'search-module', "Search for scripts in which module?\n"); } else { $section_and_module = NULL; } echo "Do you want to refresh the wrapper scripts?\n"; $refresh_wrapper_scripts = CLIScripts_InputReader::ask_yes_no_question(); if (!$silent) { if ($all_project) { echo "Searching the entire project.\n"; } else { echo "Searching individual modules.\n"; } if (isset($section_and_module)) { print_r($section_and_module); } echo ($refresh_wrapper_scripts ? 'R' : 'Not r') . "efreshing the wrapper scripts.\n"; }
// echo "No match!\n"; } } $class_name .= '_'; $stn_low = Formatting_ListOfWords::get_list_of_words_for_string($short_table_name, '_'); //echo 'print_r($stn_low): ' . "\n"; //print_r($stn_low); $class_name .= $stn_low->get_words_as_camel_case_string(); switch ($entity) { case 'table': $class_name .= 'Table'; break; } echo "Class name: {$class_name}\n"; echo "Is this class name acceptable?\n"; $class_name_acceptable = CLIScripts_InputReader::ask_yes_no_question(); if (!$class_name_acceptable) { echo "Please type the name of the class:\n"; $class_name = trim(fgets(STDIN)); } } if (isset($args['class-filename'])) { $class_filename = $args['class-filename']; } else { $class_filename = ''; if (!$module_directory->has_classes_directory()) { $module_directory->create_classes_directory(); } $classes_directory = $module_directory->get_classes_directory(); $class_filename = $classes_directory->get_filename_for_db_class($entity, $type, $class_name); }