Index: trunk/phase3/CREDITS |
— | — | @@ -8,6 +8,7 @@ |
9 | 9 | * Brion Vibber |
10 | 10 | * Bryan Tong Minh |
11 | 11 | * Chad Horohoe |
| 12 | +* Daniel Friesen |
12 | 13 | * Greg Sabino Mullane |
13 | 14 | * Hojjat |
14 | 15 | * Mohamed Magdy |
Index: trunk/phase3/includes/parser/Preprocessor_Hash.php |
— | — | @@ -1173,6 +1173,32 @@ |
1174 | 1174 | return !count( $this->numberedArgs ) && !count( $this->namedArgs ); |
1175 | 1175 | } |
1176 | 1176 | |
| 1177 | + function getArguments() { |
| 1178 | + $arguments = array(); |
| 1179 | + foreach ( array_merge( |
| 1180 | + array_keys($this->numberedArgs), |
| 1181 | + array_keys($this->namedArgs)) as $key ) { |
| 1182 | + $arguments[$key] = $this->getArgument($key); |
| 1183 | + } |
| 1184 | + return $arguments; |
| 1185 | + } |
| 1186 | + |
| 1187 | + function getNumberedArguments() { |
| 1188 | + $arguments = array(); |
| 1189 | + foreach ( array_keys($this->numberedArgs) as $key ) { |
| 1190 | + $arguments[$key] = $this->getArgument($key); |
| 1191 | + } |
| 1192 | + return $arguments; |
| 1193 | + } |
| 1194 | + |
| 1195 | + function getNamedArguments() { |
| 1196 | + $arguments = array(); |
| 1197 | + foreach ( array_keys($this->namedArgs) as $key ) { |
| 1198 | + $arguments[$key] = $this->getArgument($key); |
| 1199 | + } |
| 1200 | + return $arguments; |
| 1201 | + } |
| 1202 | + |
1177 | 1203 | function getNumberedArgument( $index ) { |
1178 | 1204 | if ( !isset( $this->numberedArgs[$index] ) ) { |
1179 | 1205 | return false; |
Index: trunk/phase3/includes/parser/Preprocessor_DOM.php |
— | — | @@ -1218,6 +1218,32 @@ |
1219 | 1219 | return !count( $this->numberedArgs ) && !count( $this->namedArgs ); |
1220 | 1220 | } |
1221 | 1221 | |
| 1222 | + function getArguments() { |
| 1223 | + $arguments = array(); |
| 1224 | + foreach ( array_merge( |
| 1225 | + array_keys($this->numberedArgs), |
| 1226 | + array_keys($this->namedArgs)) as $key ) { |
| 1227 | + $arguments[$key] = $this->getArgument($key); |
| 1228 | + } |
| 1229 | + return $arguments; |
| 1230 | + } |
| 1231 | + |
| 1232 | + function getNumberedArguments() { |
| 1233 | + $arguments = array(); |
| 1234 | + foreach ( array_keys($this->numberedArgs) as $key ) { |
| 1235 | + $arguments[$key] = $this->getArgument($key); |
| 1236 | + } |
| 1237 | + return $arguments; |
| 1238 | + } |
| 1239 | + |
| 1240 | + function getNamedArguments() { |
| 1241 | + $arguments = array(); |
| 1242 | + foreach ( array_keys($this->namedArgs) as $key ) { |
| 1243 | + $arguments[$key] = $this->getArgument($key); |
| 1244 | + } |
| 1245 | + return $arguments; |
| 1246 | + } |
| 1247 | + |
1222 | 1248 | function getNumberedArgument( $index ) { |
1223 | 1249 | if ( !isset( $this->numberedArgs[$index] ) ) { |
1224 | 1250 | return false; |