73 : ?array {
77
78 $current_figure = $this->request->getStatFig();
79 $current_time_frame = $this->request->getStatTfr();
80 $current_scope = $this->request->getStatScp();
81
83 $view->setOptions($this->page_id
86 if ($current_figure) {
87 $view->setValue($current_figure);
88 } elseif ($a_is_initial) {
89
90 $current_figure = $this->page_id
93 }
94 $ilToolbar->addInputItem($view, true);
95
96 $options = array();
99 $parts = explode(
"-", $month);
102 }
103 krsort($options);
104
106 $tframe->setOptions($options);
107 if ($current_time_frame) {
108 $tframe->setValue($current_time_frame);
109 } elseif ($a_is_initial) {
110 $opt = array_keys($options);
111 $current_time_frame = array_shift($opt);
112 }
113 $ilToolbar->addInputItem($tframe, true);
114
117 1 =>
"1 " .
$lng->
txt(
"month"),
118 2 =>
"2 " .
$lng->
txt(
"months"),
119 3 =>
"3 " .
$lng->
txt(
"months"),
120 4 =>
"4 " .
$lng->
txt(
"months"),
121 5 =>
"5 " .
$lng->
txt(
"months"),
122 6 =>
"6 " .
$lng->
txt(
"months")
123 ));
124 if ($current_scope) {
125 $scope->setValue($current_scope);
126 } elseif ($a_is_initial) {
127 $current_scope = 1;
128 }
129 $ilToolbar->addInputItem(
$scope,
true);
130
131 $ilToolbar->setFormAction($ilCtrl->getFormAction($this, "view"));
132 $ilToolbar->addFormButton(
$lng->
txt(
"show"),
"view");
133
134 if ($current_figure && $current_time_frame && $current_scope) {
135 $ilToolbar->addSeparator();
136 $ilToolbar->addFormButton(
$lng->
txt(
"export"),
"export");
137
138 return array(
139 "figure" => $current_figure,
140 "month" => $current_time_frame,
141 "scope" => $current_scope
142 );
143 }
144 return null;
145 }
static _numericMonthToString(int $a_month, bool $a_long=true, ?ilLanguage $lng=null)
numeric month to string
loadLanguageModule(string $a_module)
Load language module.
static getFigureOptions()
static getAvailableMonths(int $a_wiki_id)