| @@ 252-272 (lines=21) @@ | ||
| 249 | * |
|
| 250 | * @return string |
|
| 251 | */ |
|
| 252 | public function toHttpQuery() |
|
| 253 | { |
|
| 254 | return '?' . http_build_query( |
|
| 255 | array_filter( |
|
| 256 | [ |
|
| 257 | 'actorInstitution' => $this->actorInstitution, |
|
| 258 | 'name' => $this->name, |
|
| 259 | 'type' => $this->type, |
|
| 260 | 'secondFactorId' => $this->secondFactorId, |
|
| 261 | 'email' => $this->email, |
|
| 262 | 'institution' => $this->institution, |
|
| 263 | 'status' => $this->status, |
|
| 264 | 'orderBy' => $this->orderBy, |
|
| 265 | 'orderDirection' => $this->orderDirection |
|
| 266 | ], |
|
| 267 | function ($value) { |
|
| 268 | return !is_null($value); |
|
| 269 | } |
|
| 270 | ) |
|
| 271 | ); |
|
| 272 | } |
|
| 273 | } |
|
| 274 | ||
| @@ 244-265 (lines=22) @@ | ||
| 241 | * |
|
| 242 | * @return string |
|
| 243 | */ |
|
| 244 | public function toHttpQuery() |
|
| 245 | { |
|
| 246 | return '?' . http_build_query( |
|
| 247 | array_filter( |
|
| 248 | [ |
|
| 249 | 'actorInstitution' => $this->actorInstitution, |
|
| 250 | 'name' => $this->name, |
|
| 251 | 'type' => $this->type, |
|
| 252 | 'secondFactorId' => $this->secondFactorId, |
|
| 253 | 'email' => $this->email, |
|
| 254 | 'status' => $this->status, |
|
| 255 | 'institution' => $this->institution, |
|
| 256 | 'orderBy' => $this->orderBy, |
|
| 257 | 'orderDirection' => $this->orderDirection, |
|
| 258 | 'p' => $this->pageNumber, |
|
| 259 | ], |
|
| 260 | function ($value) { |
|
| 261 | return !is_null($value); |
|
| 262 | } |
|
| 263 | ) |
|
| 264 | ); |
|
| 265 | } |
|
| 266 | } |
|
| 267 | ||