コード例 #1
0
 /**
  * Constructor
  *
  * @access public
  * @param
  * @return
  */
 public function __construct($a_parent_obj, $a_parent_cmd, $a_exp_obj)
 {
     parent::__construct($a_parent_obj, $a_parent_cmd, $a_exp_obj);
     // NOT REQUIRED ANYMORE, PROBLEM NOW FIXED IN THE ROOT
     // KEEP CODE, JF OPINIONS / ROOT FIXINGS CAN CHANGE
     //$this->addCustomColumn($this->lng->txt('actions'), $this, 'formatActionsList');
 }
コード例 #2
0
 /**
  * List export files
  *
  * @param
  * @return
  */
 function listExportFiles()
 {
     global $tpl, $ilToolbar, $ilCtrl, $lng;
     // creation buttons
     $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
     if (count($this->getFormats()) > 1) {
         // type selection
         foreach ($this->getFormats() as $f) {
             $options[$f["key"]] = $f["txt"];
         }
         include_once "./Services/Form/classes/class.ilSelectInputGUI.php";
         $si = new ilSelectInputGUI($lng->txt("type"), "format");
         $si->setOptions($options);
         $ilToolbar->addInputItem($si, true);
         $ilToolbar->addFormButton($lng->txt("exp_create_file"), "createExportFile");
     } else {
         $format = $this->getFormats();
         $format = $format[0];
         $ilToolbar->addFormButton($lng->txt("exp_create_file") . " (" . $format["txt"] . ")", "create_" . $format["key"]);
     }
     include_once "./Services/Export/classes/class.ilExportTableGUI.php";
     $table = new ilExportTableGUI($this, "listExportFiles", $this->obj);
     $table->setSelectAllCheckbox("file");
     foreach ($this->getCustomColumns() as $c) {
         $table->addCustomColumn($c["txt"], $c["obj"], $c["func"]);
     }
     foreach ($this->getCustomMultiCommands() as $c) {
         $table->addCustomMultiCommand($c["txt"], "multi_" . $c["func"]);
     }
     $tpl->setContent($table->getHTML());
 }