@@ 292-298 (lines=7) @@ | ||
289 | $generatedParams[$field] = $params[$field]; |
|
290 | } |
|
291 | } |
|
292 | } elseif (is_object($params)) { |
|
293 | foreach ($allFields as $field) { |
|
294 | if (isset($params->{$field})) { |
|
295 | $generatedParams[$field] = $params->{$field}; |
|
296 | } |
|
297 | } |
|
298 | } |
|
299 | ||
300 | return $generatedParams; |
|
301 | } |
|
@@ 338-344 (lines=7) @@ | ||
335 | $generatedPath .= $params[$field].'/'; |
|
336 | } |
|
337 | } |
|
338 | } elseif (is_object($params)) { |
|
339 | foreach ($allFields as $field) { |
|
340 | if (isset($params->{$field})) { |
|
341 | $generatedPath .= $params->{$field}.'/'; |
|
342 | } |
|
343 | } |
|
344 | } |
|
345 | ||
346 | return $generatedPath; |
|
347 | } |