ILIAS  release_8 Revision v8.24
class.ProfileGUIRequest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\User;
20
22
24{
26
27 public function __construct(
28 \ILIAS\HTTP\Services $http,
29 \ILIAS\Refinery\Factory $refinery,
30 ?array $passed_query_params = null,
31 ?array $passed_post_data = null
32 ) {
33 $this->initRequest(
34 $http,
38 );
39 }
40
41 public function getUserId(): int
42 {
43 $user_id = $this->int("user_id");
44 if ($user_id == 0) {
45 $user_id = $this->int("user");
46 }
47 return $user_id;
48 }
49
50 public function getBackUrl(): string
51 {
52 return $this->str("back_url");
53 }
54
55 public function getBaseClass(): string
56 {
57 return $this->str("baseClass");
58 }
59
60 public function getPrompted(): int
61 {
62 return $this->int("prompted");
63 }
64
65 public function getOsdId(): int
66 {
67 return $this->int("osd_id");
68 }
69
70 public function getFieldId(): string
71 {
72 return $this->str("f");
73 }
74
75 public function getTerm(): string
76 {
77 return $this->str("term");
78 }
79
80 public function getUserFileCapture(): string
81 {
82 $capture = $this->str("userfile_capture");
83
84 if ($capture !== '') {
85 return $capture;
86 }
87
88 return $this->str('user_picture_carry');
89 }
90
91 public function getToken(): string
92 {
93 $query = $this->http->wrapper()->query();
94 if (!$query->has('token')) {
95 return '';
96 }
97
98 return $query->retrieve('token', $this->refinery->kindlyTo()->string());
99 }
100}
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
static http()
Fetches the global http state from ILIAS.
Refinery Factory $refinery
trait BaseGUIRequest
Base gui request wrapper.
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.
$query
$http
Definition: raiseError.php:7