ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\News\StandardGUIRequest Class Reference
+ Collaboration diagram for ILIAS\News\StandardGUIRequest:

Public Member Functions

 __construct (\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
 
 getRefId ()
 
 getNewsId ()
 
 getNewsPage ()
 
 getNewsRefId ()
 
 getNewsContext ()
 
 getDeleteMedia ()
 
 getRenderedNews ()
 
 getNewsAction ()
 
 getId ()
 
 getCmd ()
 
 getDashboardPeriod ()
 
 getNewsPer ()
 
 getNewsIds ()
 
 getFilterOff ()
 

Data Fields

trait BaseGUIRequest
 Base gui request wrapper. More...
 

Detailed Description

Definition at line 23 of file class.StandardGUIRequest.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\News\StandardGUIRequest::__construct ( \ILIAS\HTTP\Services  $http,
\ILIAS\Refinery\Factory  $refinery,
?array  $passed_query_params = null,
?array  $passed_post_data = null 
)

Definition at line 27 of file class.StandardGUIRequest.php.

32 {
33 $this->initRequest(
34 $http,
36 $passed_query_params,
37 $passed_post_data
38 );
39 }
$http
Definition: deliver.php:30
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.

References ILIAS\UI\examples\Layout\Page\Standard\$refinery, and ILIAS\Repository\initRequest().

+ Here is the call graph for this function:

Member Function Documentation

◆ getCmd()

ILIAS\News\StandardGUIRequest::getCmd ( )

Definition at line 90 of file class.StandardGUIRequest.php.

90 : string
91 {
92 return $this->str("cmd");
93 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getDashboardPeriod()

ILIAS\News\StandardGUIRequest::getDashboardPeriod ( )

Definition at line 95 of file class.StandardGUIRequest.php.

95 : string
96 {
97 return $this->str("news_pd_period");
98 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getDeleteMedia()

ILIAS\News\StandardGUIRequest::getDeleteMedia ( )

Definition at line 70 of file class.StandardGUIRequest.php.

70 : int
71 {
72 return $this->int("media_delete");
73 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getFilterOff()

ILIAS\News\StandardGUIRequest::getFilterOff ( )

Definition at line 110 of file class.StandardGUIRequest.php.

110 : bool
111 {
112 $cmd = $this->str("cmdFilter"); // workaround since toggleOff adds asynch flag
113 return ($cmd === "toggleOff");
114 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getId()

ILIAS\News\StandardGUIRequest::getId ( )

Definition at line 85 of file class.StandardGUIRequest.php.

85 : int
86 {
87 return $this->int("id");
88 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getNewsAction()

ILIAS\News\StandardGUIRequest::getNewsAction ( )

Definition at line 80 of file class.StandardGUIRequest.php.

80 : string
81 {
82 return $this->str("news_action");
83 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getNewsContext()

ILIAS\News\StandardGUIRequest::getNewsContext ( )

Definition at line 65 of file class.StandardGUIRequest.php.

65 : string
66 {
67 return $this->str("news_context");
68 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getNewsId()

ILIAS\News\StandardGUIRequest::getNewsId ( )

Definition at line 46 of file class.StandardGUIRequest.php.

46 : int
47 {
48 $id = $this->int("news_id");
49 if ($id === 0) {
50 $id = $this->int("id");
51 }
52 return $id;
53 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id, and ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getNewsIds()

ILIAS\News\StandardGUIRequest::getNewsIds ( )

Definition at line 105 of file class.StandardGUIRequest.php.

105 : array
106 {
107 return $this->intArray("news_id");
108 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

◆ getNewsPage()

ILIAS\News\StandardGUIRequest::getNewsPage ( )

Definition at line 55 of file class.StandardGUIRequest.php.

55 : int
56 {
57 return $this->int("news_page");
58 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getNewsPer()

ILIAS\News\StandardGUIRequest::getNewsPer ( )

Definition at line 100 of file class.StandardGUIRequest.php.

100 : string
101 {
102 return $this->str("news_per");
103 }

References ILIAS\Repository\str().

+ Here is the call graph for this function:

◆ getNewsRefId()

ILIAS\News\StandardGUIRequest::getNewsRefId ( )

Definition at line 60 of file class.StandardGUIRequest.php.

60 : int
61 {
62 return $this->int("news_ref_id");
63 }

References ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getRefId()

ILIAS\News\StandardGUIRequest::getRefId ( )

Definition at line 41 of file class.StandardGUIRequest.php.

41 : int
42 {
43 return $this->int("ref_id");
44 }

References ILIAS\Repository\int().

Referenced by ilNewsForContextBlockGUI\addToSettingsForm().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRenderedNews()

ILIAS\News\StandardGUIRequest::getRenderedNews ( )

Definition at line 75 of file class.StandardGUIRequest.php.

75 : array
76 {
77 return $this->intArray("rendered_news");
78 }

References ILIAS\Repository\intArray().

+ Here is the call graph for this function:

Field Documentation

◆ BaseGUIRequest

trait ILIAS\Repository::BaseGUIRequest

Base gui request wrapper.

This class processes all request parameters which are not handled by form classes already. POST overwrites GET with the same name. POST/GET parameters may be passed to the class for testing purposes.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 33 of file trait.BaseGUIRequest.php.


The documentation for this class was generated from the following file: