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