ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.TrashGUIRequest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
26 {
28 
29  public function __construct(
32  ) {
33  $this->initRequest(
34  $http,
35  $refinery
36  );
37  }
38 
40  public function getTrashIds(): array
41  {
42  $trash_ids = $this->intArray("trash_id");
43  if (count($trash_ids) > 0) {
44  return $trash_ids;
45  }
46  $trash_ids = $this->str("trash_ids");
47  if ($trash_ids === "") {
48  return [];
49  }
50 
51  return array_map('intval', explode(",", $trash_ids));
52  }
53 }
Refinery Factory $refinery
Interface Observer Contains several chained tasks and infos about them.
$http
Definition: deliver.php:30
trait BaseGUIRequest
Base gui request wrapper.
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery)
initRequest(HTTP\Services $http, Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
Query params and post data parameters are used for testing.
Builds data types.
Definition: Factory.php:35