| @@ 272-293 (lines=22) @@ | ||
| 269 | * |
|
| 270 | * @return string |
|
| 271 | */ |
|
| 272 | public function toHttpQuery() |
|
| 273 | { |
|
| 274 | return '?' . http_build_query( |
|
| 275 | array_filter( |
|
| 276 | [ |
|
| 277 | 'actorInstitution' => $this->actorInstitution, |
|
| 278 | 'actorId' => $this->actorId, |
|
| 279 | 'name' => $this->name, |
|
| 280 | 'type' => $this->type, |
|
| 281 | 'secondFactorId' => $this->secondFactorId, |
|
| 282 | 'email' => $this->email, |
|
| 283 | 'institution' => $this->institution, |
|
| 284 | 'status' => $this->status, |
|
| 285 | 'orderBy' => $this->orderBy, |
|
| 286 | 'orderDirection' => $this->orderDirection |
|
| 287 | ], |
|
| 288 | function ($value) { |
|
| 289 | return !is_null($value); |
|
| 290 | } |
|
| 291 | ) |
|
| 292 | ); |
|
| 293 | } |
|
| 294 | } |
|
| 295 | ||
| @@ 264-286 (lines=23) @@ | ||
| 261 | * |
|
| 262 | * @return string |
|
| 263 | */ |
|
| 264 | public function toHttpQuery() |
|
| 265 | { |
|
| 266 | return '?' . http_build_query( |
|
| 267 | array_filter( |
|
| 268 | [ |
|
| 269 | 'actorInstitution' => $this->actorInstitution, |
|
| 270 | 'actorId' => $this->actorId, |
|
| 271 | 'name' => $this->name, |
|
| 272 | 'type' => $this->type, |
|
| 273 | 'secondFactorId' => $this->secondFactorId, |
|
| 274 | 'email' => $this->email, |
|
| 275 | 'status' => $this->status, |
|
| 276 | 'institution' => $this->institution, |
|
| 277 | 'orderBy' => $this->orderBy, |
|
| 278 | 'orderDirection' => $this->orderDirection, |
|
| 279 | 'p' => $this->pageNumber, |
|
| 280 | ], |
|
| 281 | function ($value) { |
|
| 282 | return !is_null($value); |
|
| 283 | } |
|
| 284 | ) |
|
| 285 | ); |
|
| 286 | } |
|
| 287 | } |
|
| 288 | ||