ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilLMPresentationRequest.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11{
15 public function __construct(array $query_params)
16 {
17 $this->requested_ref_id = (int) $query_params["ref_id"];
18 $this->requested_transl = (string) $query_params["transl"]; // handled by presentation status
19 $this->requested_focus_id = (int) $query_params["focus_id"]; // handled by presentation status
20 $this->requested_obj_id = (int) $query_params["obj_id"]; // handled by navigation status
21 $this->requested_back_pg = (string) $query_params["back_pg"];
22 $this->requested_frame = (string) $query_params["frame"];
23 $this->requested_search_string = (string) $query_params["srcstring"];
24 $this->requested_focus_return = (int) $query_params["focus_return"];
25 $this->requested_from_page = (string) $query_params["from_page"];
26 $this->requested_obj_type = (string) $query_params["obj_type"];
27 $this->requested_mob_id = (int) $query_params["mob_id"];
28 $this->requested_cmd = (string) $query_params["cmd"];
29 }
30
34 public function getRequestedRefId() : int
35 {
36 return $this->requested_ref_id;
37 }
38
42 public function getRequestedObjId() : int
43 {
44 return $this->requested_obj_id;
45 }
46
50 public function getRequestedObjType() : string
51 {
52 return $this->requested_obj_type;
53 }
54
58 public function getRequestedTranslation() : string
59 {
60 return $this->requested_transl;
61 }
62
66 public function getRequestedFocusId() : int
67 {
68 return $this->requested_focus_id;
69 }
70
74 public function getRequestedFocusReturn() : int
75 {
76 return $this->requested_focus_return;
77 }
78
82 public function getRequestedBackPage() : string
83 {
84 return $this->requested_back_pg;
85 }
86
90 public function getRequestedSearchString() : string
91 {
92 return $this->requested_search_string;
93 }
94
98 public function getRequestedFrame() : string
99 {
100 return $this->requested_frame;
101 }
102
106 public function getRequestedFromPage() : string
107 {
108 return $this->requested_from_page;
109 }
110
114 public function getRequestedMobId() : int
115 {
116 return $this->requested_mob_id;
117 }
118
122 public function getRequestedCmd() : string
123 {
124 return $this->requested_cmd;
125 }
126
127}
An exception for terminatinating execution or to throw for unit testing.
Learning module presentation request.
__construct(array $query_params)
Constructor.