@@ 58-67 (lines=10) @@ | ||
55 | $this->baseLocation = $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 | } |
@@ 78-88 (lines=11) @@ | ||
75 | } |
|
76 | ||
77 | echo "- database has reserved words\n"; |
|
78 | foreach ( $palavrasReservadas as $index => $config ) |
|
79 | { |
|
80 | $attribs = array ( |
|
81 | "%index%" => $index , |
|
82 | "%config%" => $config |
|
83 | ); |
|
84 | echo strtr ( $this->msgReservedWord , $attribs ); |
|
85 | $line = trim ( fgets ( STDIN ) ); |
|
86 | if ( ! empty( $line ) ) |
|
87 | { |
|
88 | $this->getConfig ()->reservedWord[ $index ] = $line; |
|
89 | } |
|
90 | } |
|
91 | } |