Exemple #1
0
 private function _updateConfig()
 {
     $result = $this->prompter->getResults();
     $dbConfig = configGet('dbConfig');
     $dbConfig['dbName'] = $result['name'];
     $dbConfig['charset'] = $result['charset'];
     configSet('dbConfig', $dbConfig);
 }
Exemple #2
0
function loadOptions($argv)
{
    $options = getopt('', configGet('options'));
    if (isset($options['help'])) {
        return false;
    }
    if (isset($options['configDir'])) {
        configSet('configDir', $options['configDir']);
    }
}