39 $this->
ctrl = $DIC->ctrl();
40 $this->
access = $DIC->access();
41 $this->questioninfo = $DIC->testQuestion();
43 $this->
setId(
"cont_qpl");
44 $this->pool_ref_id = $a_pool_ref_id;
54 $this->
addColumn($this->
lng->txt(
"cont_question_type"),
'ttype',
'');
58 $this->
setRowTemplate(
"tpl.copy_sa_quest_row.html",
"components/ILIAS/COPage");
77 foreach ($all_types as $k => $v) {
78 $all_ids[] = $v[
"question_type_id"];
82 if ($access->
checkAccess(
"read",
"", $this->pool_ref_id)) {
87 $DIC[
"component.repository"]
90 $questionList->load();
92 $data = $questionList->getQuestionDataArray();
97 if (in_array($d[
"question_type_fi"], $all_ids)) {
105 protected function fillRow(array $a_set): void
113 $this->tpl->setCurrentBlock(
"cmd");
114 $this->tpl->setVariable(
118 $this->tpl->setVariable(
120 $lng->
txt(
"cont_copy_question_into_page")
122 $this->tpl->parseCurrentBlock();
126 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
127 $this->tpl->setVariable(
129 $this->questioninfo->getGeneralQuestionProperties($a_set[
"question_id"])->getTypeName(
$lng)
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)
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance) ...
getLinkTarget(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
setFormName(string $a_name="")
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_pool_ref_id)
static _lookupObjId(int $ref_id)
static & _getSelfAssessmentQuestionTypes($all_tags=false)
static _lookupTitle(int $obj_id)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
QuestionInterface $questioninfo
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setParentObjId(?int $parentObjId)
__construct(Container $dic, ilPlugin $plugin)
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)
setParameter(object $a_gui_obj, string $a_parameter, $a_value)