ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.TrashGUIRequest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Repository\Trash
;
22
23
use
ILIAS\Repository
;
24
25
class
TrashGUIRequest
26
{
27
use
Repository\BaseGUIRequest
;
28
29
public
function
__construct
(
30
\
ILIAS
\
HTTP
\
Services
$http
,
31
\
ILIAS
\
Refinery
\
Factory
$refinery
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
}
ILIAS\Repository\$refinery
Refinery Factory $refinery
Definition:
trait.BaseGUIRequest.php:36
ILIAS
Interface Observer Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
array_map
ILIAS\Repository\str
str(string $key)
Definition:
trait.BaseGUIRequest.php:106
ILIAS\Repository
ILIAS\Repository\Trash
Definition:
class.TrashGUIRequest.php:21
$http
$http
Definition:
deliver.php:30
ILIAS\Repository\BaseGUIRequest
trait BaseGUIRequest
Base gui request wrapper.
Definition:
trait.BaseGUIRequest.php:34
ILIAS\Repository\Trash\TrashGUIRequest\__construct
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery)
Definition:
class.TrashGUIRequest.php:29
Services
ILIAS\Repository\initRequest
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.
Definition:
trait.BaseGUIRequest.php:48
Factory
ILIAS\Repository\Trash\TrashGUIRequest\getTrashIds
getTrashIds()
Definition:
class.TrashGUIRequest.php:40
ILIAS\Repository\intArray
intArray(string $key)
Definition:
trait.BaseGUIRequest.php:71
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:35
ILIAS\Repository\Trash\TrashGUIRequest
Definition:
class.TrashGUIRequest.php:25
components
ILIAS
Repository
Trash
class.TrashGUIRequest.php
Generated on Sun Aug 31 2025 23:03:36 for ILIAS by
1.8.13 (using
Doxyfile
)