@@ 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 | } |
@@ 69-79 (lines=11) @@ | ||
66 | } |
|
67 | ||
68 | echo "- database has reserved words\n"; |
|
69 | foreach ( $palavrasReservadas as $index => $config ) { |
|
70 | $attribs = array ( |
|
71 | "%index%" => $index, |
|
72 | "%config%" => $config |
|
73 | ); |
|
74 | echo strtr ( $this->msgReservedWord, $attribs ); |
|
75 | $line = trim ( fgets ( STDIN ) ); |
|
76 | if ( !empty( $line ) ) { |
|
77 | $this->getConfig ()->reservedWord[ $index ] = $line; |
|
78 | } |
|
79 | } |
|
80 | } |
|
81 | ||
82 | /** |