ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 ()
 

Data Fields

trait BaseGUIRequest
 Base gui request wrapper. More...
 

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.

32 {
33 $this->initRequest(
34 $http,
36 );
37 }
Refinery Factory $refinery
$http
Definition: deliver.php:30
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.

References ILIAS\Repository\$refinery, and ILIAS\Repository\initRequest().

+ 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.

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 }

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

+ Here is the call graph for this function:

Field Documentation

◆ BaseGUIRequest

trait ILIAS\Repository::BaseGUIRequest

Base gui request wrapper.

This class processes all request parameters which are not handled by form classes already. POST overwrites GET with the same name. POST/GET parameters may be passed to the class for testing purposes.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 33 of file trait.BaseGUIRequest.php.


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