ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Repository\Trash\TrashGUIRequest Class Reference
+ Collaboration diagram for ILIAS\Repository\Trash\TrashGUIRequest:

Public Member Functions

 __construct (\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery)
 
 getTrashIds ()
 

Detailed Description

Definition at line 25 of file class.TrashGUIRequest.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Repository\Trash\TrashGUIRequest::__construct ( \ILIAS\HTTP\Services  $http,
\ILIAS\Refinery\Factory  $refinery 
)

Definition at line 29 of file class.TrashGUIRequest.php.

References ILIAS\Repository\initRequest().

32  {
33  $this->initRequest(
34  $http,
35  $refinery
36  );
37  }
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.
$http
Definition: raiseError.php:7
Refinery Factory $refinery
+ Here is the call graph for this function:

Member Function Documentation

◆ getTrashIds()

ILIAS\Repository\Trash\TrashGUIRequest::getTrashIds ( )
Returns
int[]

Definition at line 40 of file class.TrashGUIRequest.php.

References ILIAS\Repository\intArray(), and ILIAS\Repository\str().

40  : 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  }
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: