| @@ 58-67 (lines=10) @@ | ||
| 55 | $this->baseLocation = dirname ( $basePath ); |
|
| 56 | ||
| 57 | $arrayIO = array_diff_key ( $this->configs , $argv ); |
|
| 58 | foreach ( $arrayIO as $index => $config ) |
|
| 59 | { |
|
| 60 | $attribs = array ( "%index%" => $index , "%config%" => $config ); |
|
| 61 | echo strtr ( $this->msg , $attribs ); |
|
| 62 | $line = trim ( fgets ( STDIN ) ); |
|
| 63 | if ( ! empty( $line ) ) |
|
| 64 | { |
|
| 65 | $this->configs[ $index ] = strtolower ( $line ); |
|
| 66 | } |
|
| 67 | } |
|
| 68 | $this->configs ['version'] = Config::$version; |
|
| 69 | return $argv + array_filter ( $this->configs ); |
|
| 70 | } |
|
| @@ 72-82 (lines=11) @@ | ||
| 69 | } |
|
| 70 | ||
| 71 | echo "- database has reserved words\n"; |
|
| 72 | foreach ( $palavrasReservadas as $index => $config ) { |
|
| 73 | $attribs = array ( |
|
| 74 | "%index%" => $index, |
|
| 75 | "%config%" => $config |
|
| 76 | ); |
|
| 77 | echo strtr ( $this->msgReservedWord, $attribs ); |
|
| 78 | $line = trim ( fgets ( STDIN ) ); |
|
| 79 | if ( !empty( $line ) ) { |
|
| 80 | $this->getConfig ()->reservedWord[ $index ] = $line; |
|
| 81 | } |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|