Index: trunk/phase3/includes/Message.php |
— | — | @@ -148,7 +148,11 @@ |
149 | 149 | * @return Message: $this |
150 | 150 | */ |
151 | 151 | public function params( /*...*/ ) { |
152 | | - $args_values = array_values( func_get_args() ); |
| 152 | + $args = func_get_args(); |
| 153 | + if ( isset( $args[0] ) && is_array( $args[0] ) ) { |
| 154 | + $args = $args[0]; |
| 155 | + } |
| 156 | + $args_values = array_values( $args ); |
153 | 157 | $this->parameters = array_merge( $this->parameters, $args_values ); |
154 | 158 | return $this; |
155 | 159 | } |
— | — | @@ -163,6 +167,9 @@ |
164 | 168 | */ |
165 | 169 | public function rawParams( /*...*/ ) { |
166 | 170 | $params = func_get_args(); |
| 171 | + if ( isset( $params[0] ) && is_array( $params[0] ) ) { |
| 172 | + $params = $params[0]; |
| 173 | + } |
167 | 174 | foreach( $params as $param ) { |
168 | 175 | $this->parameters[] = self::rawParam( $param ); |
169 | 176 | } |
— | — | @@ -177,6 +184,9 @@ |
178 | 185 | */ |
179 | 186 | public function numParams( /*...*/ ) { |
180 | 187 | $params = func_get_args(); |
| 188 | + if ( isset( $params[0] ) && is_array( $params[0] ) ) { |
| 189 | + $params = $params[0]; |
| 190 | + } |
181 | 191 | foreach( $params as $param ) { |
182 | 192 | $this->parameters[] = self::numParam( $param ); |
183 | 193 | } |