4include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
    5include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
 
   43    public function __construct($a_parent_obj, $a_parent_cmd, $a_pool_ref_id)
 
   47        $this->ctrl = 
$DIC->ctrl();
 
   48        $this->access = 
$DIC->access();
 
   50        $this->
setId(
"cont_qpl");
 
   51        $this->pool_ref_id = $a_pool_ref_id;
 
   54        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   60        $this->
addColumn($this->lng->txt(
"title"), 
'title', 
'');
 
   61        $this->
addColumn($this->lng->txt(
"cont_question_type"), 
'ttype', 
'');
 
   62        $this->
addColumn($this->lng->txt(
"actions"), 
'', 
'');
 
   65        $this->
setRowTemplate(
"tpl.copy_sa_quest_row.html", 
"Services/COPage");
 
   67        $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
 
   85        include_once(
"./Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php");
 
   88        foreach ($all_types as $k => $v) {
 
   89            $all_ids[] = $v[
"question_type_id"];
 
   93        if (
$access->checkAccess(
"read", 
"", $this->pool_ref_id)) {
 
   94            require_once 
'Modules/TestQuestionPool/classes/class.ilAssQuestionList.php';
 
  100            $questionList->setParentObjId($this->pool_obj_id);
 
  101            $questionList->load();
 
  103            $data = $questionList->getQuestionDataArray();
 
  105            $questions = array();
 
  108                if (in_array(
$d[
"question_type_fi"], $all_ids)) {
 
  127        $ctrl->setParameter($this->parent_obj, 
"q_id", $a_set[
"question_id"]);
 
  128        $ctrl->setParameter($this->parent_obj, 
"subCmd", 
"copyQuestion");
 
  129        $this->tpl->setCurrentBlock(
"cmd");
 
  130        $this->tpl->setVariable(
 
  132            $ctrl->getLinkTarget($this->parent_obj, $this->parent_cmd)
 
  134        $this->tpl->setVariable(
 
  136            $lng->txt(
"cont_copy_question_into_page")
 
  138        $this->tpl->parseCurrentBlock();
 
  139        $ctrl->setParameter($this->parent_obj, 
"subCmd", 
"listPoolQuestions");
 
  142        $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
 
  143        $this->tpl->setVariable(
 
An exception for terminatinating execution or to throw for unit testing.
static _getQuestionTypeName($type_tag)
Return the translation for a given question type tag.
Table to select self assessment questions for copying into learning resources.
__construct($a_parent_obj, $a_parent_cmd, $a_pool_ref_id)
ilCopySelfAssQuestionTableGUI constructor.
getQuestions()
Get questions.
static & _getSelfAssessmentQuestionTypes($all_tags=false)
Get all self assessment question types.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setFormName($a_formname="")
Set Form name.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
for( $i=6;$i< 13;$i++) for($i=1; $i< 13; $i++) $d