19 declare(strict_types=1);
47 $this->request = $http->request();
48 $this->request_wrapper = $http->wrapper()->query();
54 $this->print_view_type_token
66 $this->data_factory->uri(
67 $this->request->getUri()->__toString()
79 if ($this->request_wrapper->retrieve(
80 $this->row_id_token->getName(),
82 ) === [
'ALL_OBJECTS']) {
84 fn($record) => $record[
'question_id'],
88 return $this->request_wrapper->retrieve(
89 $this->row_id_token->getName(),
92 $this->refinery->kindlyTo()->int(),
101 if (!$this->request_wrapper->has($this->print_view_type_token->getName())) {
104 return $this->request_wrapper->retrieve(
105 $this->print_view_type_token->getName(),
106 $this->
refinery->kindlyTo()->string()
112 return $this->url_builder->withParameter(
122 return $this->url_builder->withParameter(
126 $this->print_view_type_token,
130 $this->request_wrapper->retrieve(
131 $this->row_id_token->getName(),
140 $this->url_builder->withParameter($this->action_token, $action),
147 return $this->request_wrapper->retrieve(
149 $this->
refinery->custom()->transformation(
150 function (?
string $v): ?
string {
154 $tv = $this->
refinery->kindlyTo()->string()->transform($v);
if($err=$client->getError()) $namespace
getRowBoundURLBuilder(string $action)
getName()
Get the full name of the token including its namespace.
retrieveStringOrNull(URLBuilderToken $token)
ServerRequestInterface $request
getActionURL(string $action)
URLBuilderToken $print_view_type_token
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
RequestWrapper $request_wrapper
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(HTTPService $http, protected Refinery $refinery, protected DataFactory $data_factory, array $namespace)
URLBuilderToken $row_id_token
URLBuilderToken $action_token
getRowIds(\ilObjTest $obj_test)
getPrintViewTypeURL(string $action, string $type)