ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilQuestionBrowserTableGUI.php
Go to the documentation of this file.
1 <?php
2 
20 
31 {
32  private \ILIAS\TestQuestionPool\InternalRequestService $request;
34  protected \ILIAS\Notes\Service $notes;
35  protected \ILIAS\UI\Factory $ui_factory;
36  protected \ILIAS\UI\Renderer $renderer;
37  protected $editable = true;
38  protected $writeAccess = false;
39  protected $totalPoints = 0;
40  protected $confirmdelete;
41  protected array $filter = [];
42 
43  protected $taxIds = array();
44 
48  protected $questionCommentingEnabled = false;
49 
50  public function __construct($a_parent_obj, $a_parent_cmd, $a_write_access = false, $confirmdelete = false, $taxIds = array(), $enableCommenting = false)
51  {
52  $this->setQuestionCommentingEnabled($enableCommenting);
53 
54  // Bugfix: #0019539
55  if ($confirmdelete) {
56  $this->setId("qpl_confirm_del_" . $a_parent_obj->object->getRefId());
57  } else {
58  $this->setId("qpl_qst_brows_" . $a_parent_obj->object->getRefId());
59  }
60 
61  parent::__construct($a_parent_obj, $a_parent_cmd);
62 
63  global $DIC;
64  $lng = $DIC['lng'];
65  $ilCtrl = $DIC['ilCtrl'];
66  $this->request = $DIC->testQuestionPool()->internal()->request();
67  $this->lng = $lng;
68  $this->ctrl = $ilCtrl;
69  $this->questioninfo = $DIC->testQuestionPool()->questionInfo();
70 
71  $this->renderer = $DIC->ui()->renderer();
72  $this->ui_factory = $DIC->ui()->factory();
73 
74  $this->confirmdelete = $confirmdelete;
75  $this->setWriteAccess($a_write_access);
76  $this->taxIds = $taxIds;
77 
78  $qplSetting = new ilSetting("qpl");
79 
80  $this->setFormName('questionbrowser');
81  $this->setStyle('table', 'fullwidth');
82  if (!$confirmdelete) {
83  $this->addColumn('', '', '1%');
84  $this->addColumn($this->lng->txt("title"), 'title', '');
85  foreach ($this->getSelectedColumns() as $c) {
86  if (strcmp($c, 'description') == 0) {
87  $this->addColumn($this->lng->txt("description"), 'description', '');
88  }
89  if (strcmp($c, 'type') == 0) {
90  $this->addColumn($this->lng->txt("question_type"), 'ttype', '');
91  }
92  // According to mantis #12713
93  if (strcmp($c, 'points') == 0) {
94  $this->addColumn($this->lng->txt("points"), 'points', '', false, 'ilCenterForced');
95  }
96  if (strcmp($c, 'statistics') == 0) {
97  $this->addColumn($this->lng->txt('statistics'), '', '');
98  }
99  if (strcmp($c, 'author') == 0) {
100  $this->addColumn($this->lng->txt("author"), 'author', '');
101  }
102  if ($c == 'lifecycle') {
103  $this->addColumn($this->lng->txt('qst_lifecycle'), 'lifecycle', '');
104  }
105  if ($this->isQuestionCommentingEnabled() && $c == 'comments') {
106  $this->addColumn($this->lng->txt("ass_comments"), 'comments', '');
107  }
108  if (strcmp($c, 'created') == 0) {
109  $this->addColumn($this->lng->txt("create_date"), 'created', '');
110  }
111  if (strcmp($c, 'tstamp') == 0) {
112  $this->addColumn($this->lng->txt("last_update"), 'tstamp', '');
113  }
114  }
115  $this->addColumn($this->lng->txt('actions'), '');
116  $this->setSelectAllCheckbox('q_id');
117  } else {
118  $this->addColumn($this->lng->txt("title"), 'title', '');
119  foreach ($this->getSelectedColumns() as $c) {
120  if (strcmp($c, 'description') == 0) {
121  $this->addColumn($this->lng->txt("description"), 'description', '');
122  }
123  if (strcmp($c, 'type') == 0) {
124  $this->addColumn($this->lng->txt("question_type"), 'ttype', '');
125  }
126  }
127  }
128 
129  if ($this->getWriteAccess()) {
130  if ($confirmdelete) {
131  $this->addCommandButton('confirmDeleteQuestions', $this->lng->txt('confirm'));
132  $this->addCommandButton('cancelDeleteQuestions', $this->lng->txt('cancel'));
133  } else {
134  $this->addMultiCommand('copy', $this->lng->txt('copy'));
135  $this->addMultiCommand('move', $this->lng->txt('move'));
136  $this->addMultiCommand('exportQuestion', $this->lng->txt('export'));
137  $this->addMultiCommand('deleteQuestions', $this->lng->txt('delete'));
138  }
139  }
140 
141  $this->setRowTemplate("tpl.il_as_qpl_questionbrowser_row.html", "Modules/TestQuestionPool");
142 
143  $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
144  $this->setDefaultOrderField("title");
145  $this->setDefaultOrderDirection("asc");
146 
147  $this->setShowRowsSelector(true);
148 
149  if ($confirmdelete) {
150  $this->disable('sort');
151  $this->disable('select_all');
152  } else {
153  $this->enable('sort');
154  $this->enable('header');
155  $this->enable('select_all');
156  $this->setFilterCommand('filterQuestionBrowser');
157  $this->setResetCommand('resetQuestionBrowser');
158  $this->initFilter();
159  }
160  $this->notes = $DIC->notes();
161  if ($this->isQuestionCommentingEnabled()) {
162  $this->notes->gui()->initJavascript();
163  }
164  }
165 
169  public function isQuestionCommentingEnabled(): bool
170  {
172  }
173 
178  {
179  $this->questionCommentingEnabled = $questionCommentingEnabled;
180  }
181 
182  protected function isCommentsColumnSelected(): bool
183  {
184  return in_array('comments', $this->getSelectedColumns());
185  }
186 
187  public function setQuestionData($questionData): void
188  {
189  if ($this->isQuestionCommentingEnabled() && ($this->isCommentsColumnSelected() || $this->filter['commented'])) {
190  foreach ($questionData as $key => $data) {
191  $notes_context = $this->notes
192  ->data()
193  ->context(
194  $this->parent_obj->object->getId(),
195  $data['question_id'],
196  'quest'
197  );
198  $numComments = $this->notes
199  ->domain()
200  ->getNrOfCommentsForContext($notes_context);
201 
202  if ($this->filter['commented'] && !$numComments) {
203  unset($questionData[$key]);
204  continue;
205  }
206 
207  $questionData[$key]['comments'] = $numComments;
208  }
209  }
210 
211  $this->setData($questionData);
212  }
213 
214  public function getSelectableColumns(): array
215  {
216  global $DIC;
217  $lng = $DIC['lng'];
218  $cols["description"] = array(
219  "txt" => $lng->txt("description"),
220  "default" => true
221  );
222  $cols["type"] = array(
223  "txt" => $lng->txt("question_type"),
224  "default" => true
225  );
226  if (!$this->confirmdelete) {
227  $cols["points"] = array(
228  "txt" => $lng->txt("points"),
229  "default" => true
230  );
231  $cols["statistics"] = array(
232  "txt" => $lng->txt("statistics"),
233  "default" => true
234  );
235  $cols["author"] = array(
236  "txt" => $lng->txt("author"),
237  "default" => true
238  );
239  $cols['lifecycle'] = array(
240  'txt' => $lng->txt('qst_lifecycle'),
241  'default' => true
242  );
243  if ($this->isQuestionCommentingEnabled()) {
244  $cols["comments"] = array(
245  "txt" => $lng->txt("comments"),
246  "default" => true
247  );
248  }
249  $cols["created"] = array(
250  "txt" => $lng->txt("create_date"),
251  "default" => true
252  );
253  $cols["tstamp"] = array(
254  "txt" => $lng->txt("last_update"),
255  "default" => true
256  );
257  }
258  return $cols;
259  }
260 
264  public function initFilter(): void
265  {
266  global $DIC;
267  $lng = $DIC['lng'];
268 
269  $ti = new ilTextInputGUI($lng->txt("title"), "title");
270  $ti->setMaxLength(64);
271  $ti->setValidationRegexp('/^[^%]+$/is');
272  $ti->setSize(20);
273  $this->addFilterItem($ti);
274  $ti->readFromSession();
275  $this->filter["title"] = $ti->getValue();
276 
277  // description
278  $ti = new ilTextInputGUI($lng->txt("description"), "description");
279  $ti->setMaxLength(64);
280  $ti->setSize(20);
281  $ti->setValidationRegexp('/^[^%]+$/is');
282  $this->addFilterItem($ti);
283  $ti->readFromSession();
284  $this->filter["description"] = $ti->getValue();
285 
286  if (!$this->confirmdelete) {
287  // author
288  $ti = new ilTextInputGUI($lng->txt("author"), "author");
289  $ti->setMaxLength(64);
290  $ti->setSize(20);
291  $ti->setValidationRegexp('/^[^%]+$/is');
292  $this->addFilterItem($ti);
293  $ti->readFromSession();
294  $this->filter["author"] = $ti->getValue();
295  }
296 
297  // lifecycle
298  $lifecycleOptions = array_merge(
299  array('' => $this->lng->txt('qst_lifecycle_filter_all')),
300  ilAssQuestionLifecycle::getDraftInstance()->getSelectOptions($this->lng)
301  );
302  $lifecycleInp = new ilSelectInputGUI($this->lng->txt('qst_lifecycle'), 'lifecycle');
303  $lifecycleInp->setOptions($lifecycleOptions);
304  $this->addFilterItem($lifecycleInp);
305  $lifecycleInp->readFromSession();
306  $this->filter['lifecycle'] = $lifecycleInp->getValue();
307 
309  $options = array();
310  $options[""] = $lng->txt('filter_all_question_types');
311  foreach ($types as $translation => $row) {
312  $options[$row['type_tag']] = $translation;
313  }
314 
315  $si = new ilSelectInputGUI($this->lng->txt("question_type"), "type");
316  $si->setOptions($options);
317  $this->addFilterItem($si);
318  $si->readFromSession();
319  $this->filter["type"] = $si->getValue();
320 
321  if ($this->parent_obj->object->getShowTaxonomies()) {
322  foreach ($this->taxIds as $taxId) {
323  $postvar = "tax_$taxId";
324 
325  $inp = new ilTaxSelectInputGUI($taxId, $postvar, true);
326  $this->addFilterItem($inp);
327  $inp->readFromSession();
328  $this->filter[$postvar] = $inp->getValue();
329  }
330  }
331 
332  // comments
333  if ($this->isQuestionCommentingEnabled()) {
334  $comments = new ilCheckboxInputGUI($lng->txt('ass_commented_questions_only'), 'commented');
335  $this->addFilterItem($comments);
336  $comments->readFromSession();
337  $this->filter['commented'] = $comments->getChecked();
338  }
339  }
340 
341  public function fillHeader(): void
342  {
343  foreach ($this->column as $key => $column) {
344  if (strcmp($column['text'], $this->lng->txt("points")) == 0) {
345  $this->column[$key]['text'] = $this->lng->txt("points") . "&nbsp;(" . $this->totalPoints . ")";
346  }
347  }
348  parent::fillHeader();
349  }
350 
357  public function fillRow(array $a_set): void
358  {
359  $class = strtolower(assQuestionGUI::_getGUIClassNameForId($a_set["question_id"]));
360  $this->ctrl->setParameterByClass("ilAssQuestionPageGUI", "q_id", $a_set["question_id"]);
361  $this->ctrl->setParameterByClass("ilAssQuestionPreviewGUI", "q_id", $a_set["question_id"]);
362  $this->ctrl->setParameterByClass($class, "q_id", $a_set["question_id"]);
363  $points = 0;
364 
365  $actions = [];
366 
367  if (!$this->confirmdelete) {
368  $this->tpl->setCurrentBlock('checkbox');
369  $this->tpl->setVariable('CB_QUESTION_ID', $a_set["question_id"]);
370  $this->tpl->parseCurrentBlock();
371 
372  if ($a_set["complete"] == 0) {
373  $icon = $this->ui_factory->symbol()->icon()->custom(ilUtil::getImagePath("standard/icon_alert.svg"), $this->lng->txt("warning_question_not_complete"));
374  $this->tpl->setCurrentBlock("qpl_warning");
375  $this->tpl->setVariable("ICON_WARNING", $this->renderer->render($icon));
376  $this->tpl->parseCurrentBlock();
377  } else {
378  $points = $a_set["points"];
379  }
380  $this->totalPoints += $points;
381 
382  foreach ($this->getSelectedColumns() as $c) {
383  if (strcmp($c, 'points') == 0) {
384  $this->tpl->setCurrentBlock('points');
385  $this->tpl->setVariable("QUESTION_POINTS", $points);
386  $this->tpl->parseCurrentBlock();
387  }
388  if (strcmp($c, 'statistics') == 0) {
389  $this->tpl->setCurrentBlock('statistics');
390  $this->tpl->setVariable("LINK_ASSESSMENT", $this->ctrl->getLinkTargetByClass('ilAssQuestionPreviewGUI', ilAssQuestionPreviewGUI::CMD_STATISTICS));
391  $this->tpl->setVariable("TXT_ASSESSMENT", $this->lng->txt("statistics"));
392  $this->tpl->setVariable("IMG_ASSESSMENT", ilUtil::getImagePath("assessment.gif", "Modules/TestQuestionPool"));
393  $this->tpl->parseCurrentBlock();
394  }
395  if (strcmp($c, 'author') == 0) {
396  $this->tpl->setCurrentBlock('author');
397  $this->tpl->setVariable("QUESTION_AUTHOR", $a_set["author"]);
398  $this->tpl->parseCurrentBlock();
399  }
400  if ($c == 'lifecycle') {
401  $lifecycle = ilAssQuestionLifecycle::getInstance($a_set['lifecycle']);
402 
403  $this->tpl->setCurrentBlock('lifecycle');
404  $this->tpl->setVariable("QUESTION_LIFECYCLE", $lifecycle->getTranslation($this->lng));
405  $this->tpl->parseCurrentBlock();
406  }
407  if ($c == 'comments' && $this->isQuestionCommentingEnabled()) {
408  $this->tpl->setCurrentBlock('comments');
409  $this->tpl->setVariable("COMMENTS", $this->getCommentsHtml($a_set));
410  $this->tpl->parseCurrentBlock();
411  }
412  if (strcmp($c, 'created') == 0) {
413  $this->tpl->setCurrentBlock('created');
414  $this->tpl->setVariable('QUESTION_CREATED', ilDatePresentation::formatDate(new ilDateTime($a_set['created'], IL_CAL_UNIX)));
415  $this->tpl->parseCurrentBlock();
416  }
417  if (strcmp($c, 'tstamp') == 0) {
418  $this->tpl->setCurrentBlock('updated');
419  $this->tpl->setVariable('QUESTION_UPDATED', ilDatePresentation::formatDate(new ilDateTime($a_set['tstamp'], IL_CAL_UNIX)));
420  $this->tpl->parseCurrentBlock();
421  }
422  }
423 
424  $actions[] = $this->ui_factory->link()->standard(
425  $this->lng->txt('preview'),
426  $this->ctrl->getLinkTargetByClass('ilAssQuestionPreviewGUI', ilAssQuestionPreviewGUI::CMD_SHOW)
427  );
428 
429  $actions[] = $this->ui_factory->link()->standard(
430  $this->lng->txt('statistics'),
431  $this->ctrl->getLinkTargetByClass('ilAssQuestionPreviewGUI', ilAssQuestionPreviewGUI::CMD_STATISTICS)
432  );
433 
434  if ($this->getEditable()) {
435  $this->ctrl->setParameterByClass($a_set['type_tag'] . 'GUI', 'q_id', $a_set['question_id']);
436  $editHref = $this->ctrl->getLinkTargetByClass($a_set['type_tag'] . 'GUI', 'editQuestion');
437  $this->ctrl->setParameterByClass($a_set['type_tag'] . 'GUI', 'q_id', null);
438  $actions[] = $this->ui_factory->link()->standard($this->lng->txt('edit_question'), $editHref);
439 
440  $editPageHref = $this->ctrl->getLinkTargetByClass('ilAssQuestionPageGUI', 'edit');
441  $actions[] = $this->ui_factory->link()->standard($this->lng->txt('edit_page'), $editPageHref);
442  }
443 
444  if ($this->getWriteAccess()) {
445  $this->ctrl->setParameter($this->parent_obj, 'q_id', $a_set['question_id']);
446  $moveHref = $this->ctrl->getLinkTarget($this->parent_obj, 'move');
447  $this->ctrl->setParameter($this->parent_obj, 'q_id', null);
448  $actions[] = $this->ui_factory->link()->standard($this->lng->txt('move'), $moveHref);
449 
450  $this->ctrl->setParameter($this->parent_obj, 'q_id', $a_set['question_id']);
451  $copyHref = $this->ctrl->getLinkTarget($this->parent_obj, 'copy');
452  $this->ctrl->setParameter($this->parent_obj, 'q_id', null);
453  $actions[] = $this->ui_factory->link()->standard($this->lng->txt('copy'), $copyHref);
454 
455  $this->ctrl->setParameter($this->parent_obj, 'q_id', $a_set['question_id']);
456  $deleteHref = $this->ctrl->getLinkTarget($this->parent_obj, 'deleteQuestions');
457  $this->ctrl->setParameter($this->parent_obj, 'q_id', null);
458  $actions[] = $this->ui_factory->link()->standard($this->lng->txt('delete'), $deleteHref);
459  }
460 
461  if ($this->getEditable()) {
462  $this->ctrl->setParameterByClass('ilAssQuestionFeedbackEditingGUI', 'q_id', $a_set['question_id']);
463  $feedbackHref = $this->ctrl->getLinkTargetByClass('ilAssQuestionFeedbackEditingGUI', ilAssQuestionFeedbackEditingGUI::CMD_SHOW);
464  $this->ctrl->setParameterByClass('ilAssQuestionFeedbackEditingGUI', 'q_id', null);
465  $actions[] = $this->ui_factory->link()->standard($this->lng->txt('tst_feedback'), $feedbackHref);
466 
467  $this->ctrl->setParameterByClass('ilAssQuestionHintsGUI', 'q_id', $a_set['question_id']);
468  $hintsHref = $this->ctrl->getLinkTargetByClass('ilAssQuestionHintsGUI', ilAssQuestionHintsGUI::CMD_SHOW_LIST);
469  $this->ctrl->setParameterByClass('ilAssQuestionHintsGUI', 'q_id', null);
470  $actions[] = $this->ui_factory->link()->standard($this->lng->txt('tst_question_hints_tab'), $hintsHref);
471  }
472 
473  if ($this->isQuestionCommentingEnabled()) {
474  $actions[] = $this->ui_factory->link()->standard($this->lng->txt('ass_comments'), $this->getCommentsAjaxLink($a_set['question_id']));
475  }
476  } else {
477  $this->tpl->setCurrentBlock('hidden');
478  $this->tpl->setVariable('HIDDEN_QUESTION_ID', $a_set["question_id"]);
479  $this->tpl->parseCurrentBlock();
480  }
481 
482  foreach ($this->getSelectedColumns() as $c) {
483  if (strcmp($c, 'description') == 0) {
484  $this->tpl->setCurrentBlock('description');
485  $this->tpl->setVariable("QUESTION_COMMENT", $a_set['description']);
486  $this->tpl->parseCurrentBlock();
487  }
488  if (strcmp($c, 'type') == 0) {
489  $this->tpl->setCurrentBlock('type');
490  $this->tpl->setVariable("QUESTION_TYPE", $this->questioninfo->getQuestionTypeName($a_set["question_id"]));
491  $this->tpl->parseCurrentBlock();
492  }
493  }
494  $this->tpl->setVariable('QUESTION_ID', $a_set["question_id"]);
495  if (!$this->confirmdelete) {
496  $this->tpl->setVariable('QUESTION_HREF_LINKED', $this->ctrl->getLinkTargetByClass('ilAssQuestionPreviewGUI', ilAssQuestionPreviewGUI::CMD_SHOW));
497  $this->tpl->setVariable('QUESTION_TITLE_LINKED', $a_set['title']);
498 
499  $dropdown = $this->ui_factory->dropdown()->standard($actions)->withLabel($this->lng->txt('actions'));
500 
501  $this->tpl->setVariable('ACTIONS', $this->renderer->render($dropdown));
502  } else {
503  $this->tpl->setVariable('QUESTION_ID_UNLINKED', $a_set['question_id']);
504  $this->tpl->setVariable('QUESTION_TITLE_UNLINKED', $a_set['title']);
505  }
506  }
507 
508  public function setEditable($value): void
509  {
510  $this->editable = $value;
511  }
512 
513  public function getEditable(): bool
514  {
515  return $this->editable;
516  }
517 
518  public function setWriteAccess($value): void
519  {
520  $this->writeAccess = $value;
521  }
522 
523  public function getWriteAccess(): bool
524  {
525  return $this->writeAccess;
526  }
527 
532  public function numericOrdering(string $a_field): bool
533  {
534  if (in_array($a_field, array('points', 'created', 'tstamp', 'comments'))) {
535  return true;
536  }
537 
538  return false;
539  }
540 
541  protected function getCommentsHtml($qData): string
542  {
543  if (!$qData['comments']) {
544  return '';
545  }
546 
547  $ajax_link = $this->getCommentsAjaxLink($qData['question_id']);
548 
549  $comment_glyph = $this->ui_factory->symbol()->glyph()->comment()->withCounter(
550  $this->ui_factory->counter()->status($qData['comments'])
551  )->withAdditionalOnLoadCode(function ($id) use ($ajax_link): string {
552  return "document.getElementById('$id').onclick = function (event) { $ajax_link; };";
553  });
554  return $this->renderer->render($comment_glyph);
555  }
556 
557  protected function getCommentsAjaxLink($questionId): string
558  {
559  $ajax_hash = ilCommonActionDispatcherGUI::buildAjaxHash(1, $this->request->getRefId(), 'quest', $this->parent_obj->object->getId(), 'quest', $questionId);
560  $update_code = "il.UI.counter.getCounterObject($(\".ilTableOuter\")).incrementStatusCount(1);";
561  return ilCommentGUI::getListCommentsJSCall($ajax_hash, $update_code);
562  }
563 }
setData(array $a_data)
enable(string $a_module_name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a selection list property in a property form.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
static _getGUIClassNameForId($a_q_id)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setResetCommand(string $a_val, string $a_caption="")
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
ILIAS TestQuestionPool InternalRequestService $request
setOptions(array $a_options)
const IL_CAL_UNIX
setFormName(string $a_name="")
__construct($a_parent_obj, $a_parent_cmd, $a_write_access=false, $confirmdelete=false, $taxIds=array(), $enableCommenting=false)
ilLanguage $lng
const CMD_SHOW_LIST
command constants
setId(string $a_val)
global $DIC
Definition: feed.php:28
setStyle(string $a_element, string $a_style)
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
__construct(VocabulariesInterface $vocabularies)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setFilterCommand(string $a_val, string $a_caption="")
string $key
Consumer key/client ID value.
Definition: System.php:193
setDefaultOrderDirection(string $a_defaultorderdirection)
$comments
fillRow(array $a_set)
fill row public
$lifecycle
setQuestionCommentingEnabled(bool $questionCommentingEnabled)
static buildAjaxHash(int $node_type, ?int $node_id, string $obj_type, int $obj_id, string $sub_type=null, int $sub_id=null, int $news_id=0)
Build ajax hash.
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
disable(string $a_module_name)
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)
static getListCommentsJSCall(string $a_hash, string $a_update_code=null)
Get list comments js call.
addMultiCommand(string $a_cmd, string $a_text)
static _getQuestionTypes($all_tags=false, $fixOrder=false, $withDeprecatedTypes=true)