19declare(strict_types=1);
23use Psr\Http\Message\ServerRequestInterface;
44 protected DataFactory $data_factory,
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(),
81 $this->refinery->identity()
82 ) === [
'ALL_OBJECTS']) {
84 fn($record) => $record[
'question_id'],
88 return $this->request_wrapper->retrieve(
89 $this->row_id_token->getName(),
90 $this->refinery->kindlyTo()->listOf(
91 $this->refinery->byTrying([
92 $this->refinery->kindlyTo()->int(),
93 $this->refinery->always(
null)
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()
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 {
The scope of this class is split ilias-conform URI's into components.
withParameter(string $key, $value)
Get URI with modified parameters.
Class ArrayBasedRequestWrapper.
URLBuilderToken $action_token
getPrintViewTypeURL(string $action, string $type)
getRowBoundURLBuilder(string $action)
ServerRequestInterface $request
getRowIds(\ilObjTest $obj_test)
retrieveStringOrNull(URLBuilderToken $token)
getActionURL(string $action)
URLBuilderToken $print_view_type_token
__construct(HTTPService $http, protected Refinery $refinery, protected DataFactory $data_factory, array $namespace)
URLBuilderToken $row_id_token
RequestWrapper $request_wrapper
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if($err=$client->getError()) $namespace