/**
  * @param ilUDFCheckGUI $parent_obj
  * @param string        $parent_cmd
  * @param string        $template_context
  */
 public function __construct(ilUDFCheckGUI $parent_obj, $parent_cmd = ilUDFCheckGUI::CMD_INDEX, $template_context = "")
 {
     /**
      * @var              $ilCtrl ilCtrl
      * @var ilToolbarGUI $ilToolbar
      */
     global $ilCtrl, $ilToolbar;
     $this->ctrl = $ilCtrl;
     $this->pl = ilUserDefaultsPlugin::getInstance();
     $this->toolbar = $ilToolbar;
     $this->setPrefix(self::USR_DEF_CONTENT);
     $this->setFormName(self::USR_DEF_CONTENT);
     $this->setId(self::USR_DEF_CONTENT);
     $this->setTitle($this->pl->txt('check_table_title'));
     parent::__construct($parent_obj, $parent_cmd, $template_context);
     $this->ctrl->saveParameter($parent_obj, $this->getNavParameter());
     $this->setEnableNumInfo(true);
     $this->setFormAction($this->ctrl->getFormAction($parent_obj));
     $this->addColumns();
     $this->setDefaultOrderField('title');
     $this->setExternalSorting(true);
     $this->setExternalSegmentation(true);
     $this->setRowTemplate('Customizing/global/plugins/Services/EventHandling/EventHook/UserDefaults/templates/default/tpl.settings_row.html');
     $this->parseData();
     $this->toolbar->addButton($this->pl->txt('check_back'), $this->ctrl->getLinkTargetByClass('ilUserSettingsGUI', ilUserSettingsGUI::CMD_INDEX));
     $this->toolbar->addButton($this->pl->txt('check_add'), $this->ctrl->getLinkTarget($parent_obj, ilUDFCheckGUI::CMD_ADD), '', '', '', '', 'submit emphsubmit');
 }
 /**
  * @param $parent_gui
  */
 public function __construct($parent_gui)
 {
     global $ilCtrl, $lng;
     $this->parent_gui = $parent_gui;
     $this->ctrl = $ilCtrl;
     $this->lng = $lng;
     $this->ctrl->saveParameter($parent_gui, 'clip_ext_id');
     $this->setFormAction($this->ctrl->getFormAction($parent_gui));
     $this->initForm();
 }
Beispiel #3
0
 /**
  * @param arGUI        $parent_gui
  * @param ActiveRecord $ar
  */
 public function __construct(arGUI $parent_gui, ActiveRecord $ar)
 {
     global $ilCtrl;
     $this->ar = $ar;
     $this->parent_gui = $parent_gui;
     $this->ctrl = $ilCtrl;
     $this->ctrl->saveParameter($parent_gui, 'ar_id');
     $this->setFormName(get_class($ar));
     $this->init();
 }
 /**
  * @param $parent_gui
  */
 public function __construct($parent_gui)
 {
     global $ilCtrl, $tpl;
     /**
      * @var $ilCtrl ilCtrl
      */
     $this->ctrl = $ilCtrl;
     $this->tpl = $tpl;
     $this->pl = ilUserDefaultsPlugin::getInstance();
     $this->ctrl->saveParameter($this, self::IDENTIFIER);
     $this->ctrl->setParameter($this, ilUserSettingsGUI::IDENTIFIER, $_GET[ilUserSettingsGUI::IDENTIFIER]);
     $this->ctrl->saveParameter($parent_gui, ilUserSettingsGUI::IDENTIFIER);
 }
 public function executeCommand()
 {
     $this->ctrl->saveParameter($this, 'nextCommand');
     $nextCommand = explode('::', $_GET['nextCommand']);
     $this->setNextCommandClass($nextCommand[0]);
     $this->setNextCommandCmd($nextCommand[1]);
     $this->ctrl->saveParameter($this->parentGUI, 'lock');
     switch ($this->ctrl->getNextClass()) {
         default:
             $cmd = $this->ctrl->getCmd() . 'Cmd';
             $this->{$cmd}();
     }
 }
 /**
  * @param arGUI        $parent_gui
  * @param ActiveRecord $ar
  */
 public function __construct(arGUI $parent_gui, ActiveRecord $ar)
 {
     global $ilCtrl, $tpl;
     /**
      * @var ilCtrl     $ilCtrl
      * @var ilTemplate $tpl
      */
     $this->ctrl = $ilCtrl;
     $this->tpl = $tpl;
     $this->ar = $ar;
     $this->parent_gui = $parent_gui;
     $this->ctrl->saveParameter($parent_gui, 'ar_id');
     $this->init();
 }
 /**
  * Constructor
  *
  */
 public function __construct($parent_gui, $bibl_setting)
 {
     global $ilCtrl, $lng;
     $this->ctrl = $ilCtrl;
     $this->lng = $lng;
     $this->parent_gui = $parent_gui;
     $this->bibl_setting = $bibl_setting;
     if ($bibl_setting->getId() > 0) {
         $this->action = 'update';
     } else {
         $this->action = 'create';
     }
     $this->ctrl->saveParameter($parent_gui, 'lib_id');
     $this->initForm();
 }
 public function __construct()
 {
     /**
      * @var $tpl	ilTemplate
      * @var $ilCtrl ilCtrl
      * @var $lng	ilLanguage
      * @var $ilUser ilObjUser
      */
     global $tpl, $ilCtrl, $lng, $ilUser;
     $this->tpl = $tpl;
     $this->ctrl = $ilCtrl;
     $this->lng = $lng;
     $this->ctrl->saveParameter($this, 'mobj_id');
     $this->umail = new ilFormatMail($ilUser->getId());
     $this->mfile = new ilFileDataMail($ilUser->getId());
 }
 /**
  * @return bool
  */
 public function executeCommand()
 {
     if ($_GET['mode']) {
         $this->ctrl->saveParameter($this, 'mode');
         $this->ctrl->setParameterByClass("ildatacollectionrecordlistgui", "mode", $_GET['mode']);
     }
     $this->ctrl->saveParameter($this, 'redirect');
     if ($this->record_id) {
         $this->record = ilDataCollectionCache::getRecordCache($this->record_id);
         if (!$this->record->hasPermissionToEdit($this->parent_obj->ref_id) or !$this->record->hasPermissionToView($this->parent_obj->ref_id)) {
             $this->accessDenied();
         }
         $this->table = $this->record->getTable();
         $this->table_id = $this->table->getId();
     } else {
         $this->table = ilDataCollectionCache::getTableCache($this->table_id);
         if (!ilObjDataCollectionAccess::hasAddRecordAccess($_GET['ref_id'])) {
             $this->accessDenied();
         }
     }
     $cmd = $this->ctrl->getCmd();
     switch ($cmd) {
         default:
             $this->{$cmd}();
             break;
     }
     return true;
 }
 private function showSkillSelectionCmd()
 {
     $skillSelectorGUI = $this->buildSkillSelectorGUI();
     if (!$skillSelectorGUI->handleCommand()) {
         $this->ctrl->saveParameter($this, 'question_id');
         $this->tpl->setContent($this->ctrl->getHTML($skillSelectorGUI));
     }
 }
 /**
  * @param ilObjOrgUnitGUI $parent_gui
  */
 public function __construct(ilObjOrgUnitGUI $parent_gui)
 {
     global $tpl, $ilCtrl, $ilAccess, $ilToolbar, $ilLocator, $tree, $lng, $ilLog, $ilias, $ilTabs;
     $this->tpl = $tpl;
     $this->ctrl = $ilCtrl;
     $this->access = $ilAccess;
     $this->locator = $ilLocator;
     $this->toolbar = $ilToolbar;
     $this->tabs = $ilTabs;
     $this->log = $ilLog;
     $this->lng = $lng;
     $this->ilias = $ilias;
     $this->parent_gui = $parent_gui;
     $this->lng->loadLanguageModule('orgu');
     $this->ctrl->saveParameter($this, 'type_id');
     $this->lng->loadLanguageModule('meta');
     $this->checkAccess();
 }
 public function __construct()
 {
     global $tpl, $ilCtrl, $ilToolbar, $ilTabs, $lng, $ilAccess, $ilDB, $ilLocator;
     $this->ctrl = $ilCtrl;
     $this->tpl = $tpl;
     $this->toolbar = $ilToolbar;
     $this->tabs = $ilTabs;
     $this->ref_id = (int) $_GET['ref_id'];
     $this->crs = ilObjectFactory::getInstanceByRefId($this->ref_id);
     $this->definition = srCertificateDefinition::where(array('ref_id' => $this->ref_id))->first();
     $this->pl = ilCertificatePlugin::getInstance();
     $this->lng = $lng;
     $this->access = $ilAccess;
     $this->db = $ilDB;
     $this->ctrl->saveParameter($this, 'ref_id');
     $this->tpl->addJavaScript($this->pl->getStyleSheetLocation('uihk_certificate.js'));
     $this->lng->loadLanguageModule('common');
     $ilLocator->addRepositoryItems();
     $this->tpl->setVariable("LOCATOR", $ilLocator->getHTML());
 }
 /**
  *
  */
 public function executeCommand()
 {
     $this->ctrl->saveParameter($this, 'category_id');
     $cmd = $this->ctrl->getCmd($this->getDefaultCommand());
     $nextClass = $this->ctrl->getNextClass($this);
     switch ($nextClass) {
         default:
             $this->checkPermissions($cmd);
             $this->{$cmd}();
             break;
     }
     $this->handleSubtabs();
 }
 /**
  *
  */
 public function confirmDeleteSignature()
 {
     $signature = srCertificateSignature::find($_GET['signature_id']);
     $item_html = $signature->getFirstName() . " " . $signature->getLastName() . '<br>';
     $this->tabs->clearTargets();
     $this->tabs->setBackTarget($this->pl->txt('common_back'), $this->ctrl->getLinkTarget($this, 'view'));
     ilUtil::sendQuestion($this->pl->txt('signatures_confirm_delete'));
     $toolbar = new ilToolbarGUI();
     $this->ctrl->saveParameter($this, 'signature_id');
     $toolbar->addButton($this->pl->txt('confirm'), $this->ctrl->getLinkTarget($this, 'deleteSignature'));
     $toolbar->addButton($this->pl->txt('cancel'), $this->ctrl->getLinkTarget($this, 'showSignatures'));
     $this->tpl->setContent($item_html . '</br>' . $toolbar->getHTML());
 }
 /**
  * @return ilPropertyFormGUI
  */
 protected function buildForm()
 {
     require_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     $form = new ilPropertyFormGUI();
     $form->setTitle("Mitgliedern Einschreiben");
     $form->setDescription("Bitte geben Sie eine Liste von Emails aus.");
     require_once "Services/Form/classes/class.ilTextAreaInputGUI.php";
     $textarea = new ilTextAreaInputGUI('E-mail Addresse', 'emails');
     $textarea->setRequired(true);
     $textarea->setRows(20);
     $form->addItem($textarea);
     $this->ctrl->saveParameter($this, 'ref_id');
     $form->addCommandButton('save', 'Speichern');
     $form->setFormAction($this->ctrl->getFormAction($this));
     return $form;
 }
 /**
  * @param $tpl
  */
 function buildform($tpl)
 {
     require_once "Services/Form/classes/class.ilPropertyFormGUI.php";
     $form = new ilPropertyFormGUI();
     $form->setTitle("Mitglieder einschreiben");
     $form->setDescription("Bitte geben Sie eine durch Kommata getrennte Liste von E-Mail-Adressen an.");
     require_once "Services/Form/classes/class.ilTextAreaInputGUI.php";
     $textarea = new ilTextAreaInputGUI('E-Mail-Adresse', 'emails');
     $textarea->setRequired(true);
     $textarea->setRows(20);
     $form->addItem($textarea);
     //$form->addCommandButton('TODO', 'Speichern');
     $this->ctrl->saveParameter($this, 'ref_id');
     $form->addCommandButton('save', 'Speichern');
     $form->setFormAction($this->ctrl->getFormAction($this));
     return $form;
 }
 /**
  * Creates an output of the solution of an answer compared to the correct solution
  *
  * @access public
  */
 protected function outCorrectSolution()
 {
     if (!$this->object->getShowSolutionDetails()) {
         ilUtil::sendInfo($this->lng->txt("no_permission"), true);
         $this->ctrl->redirectByClass("ilobjtestgui", "infoScreen");
     }
     $testSession = $this->testSessionFactory->getSession();
     $activeId = $testSession->getActiveId();
     if (!($activeId > 0)) {
         $this->ctrl->redirectByClass("ilobjtestgui", "infoScreen");
     }
     $this->ctrl->saveParameter($this, "pass");
     $pass = (int) $_GET['pass'];
     $questionId = (int) $_GET['evaluation'];
     if ($this->getObjectiveOrientedContainer()->isObjectiveOrientedPresentationRequired()) {
         $testSequence = $this->testSequenceFactory->getSequenceByActiveIdAndPass($activeId, $pass);
         $testSequence->loadFromDb();
         $testSequence->loadQuestions();
         require_once 'Modules/Course/classes/Objectives/class.ilLOTestQuestionAdapter.php';
         $objectivesAdapter = ilLOTestQuestionAdapter::getInstance($testSession);
         $objectivesList = $this->buildQuestionRelatedObjectivesList($objectivesAdapter, $testSequence);
         $objectivesList->loadObjectivesTitles();
     } else {
         $objectivesList = null;
     }
     global $ilTabs;
     if ($this instanceof ilTestEvalObjectiveOrientedGUI) {
         $ilTabs->setBackTarget($this->lng->txt("tst_back_to_virtual_pass"), $this->ctrl->getLinkTarget($this, 'showVirtualPass'));
     } else {
         $ilTabs->setBackTarget($this->lng->txt("tst_back_to_pass_details"), $this->ctrl->getLinkTarget($this, 'outUserPassDetails'));
     }
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $this->tpl->setCurrentBlock("ContentStyle");
     $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
     $this->tpl->parseCurrentBlock();
     $this->tpl->setCurrentBlock("SyntaxStyle");
     $this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
     $this->tpl->parseCurrentBlock();
     $this->tpl->addCss(ilUtil::getStyleSheetLocation("output", "test_print.css", "Modules/Test"), "print");
     if ($this->object->getShowSolutionAnswersOnly()) {
         $this->tpl->addCss(ilUtil::getStyleSheetLocation("output", "test_print_hide_content.css", "Modules/Test"), "print");
     }
     $solution = $this->getCorrectSolutionOutput($questionId, $activeId, $pass, $objectivesList);
     $this->tpl->setContent($solution);
 }
 private function keepAssignmentParameters()
 {
     $this->ctrl->saveParameter($this, 'question_id');
     $this->ctrl->saveParameter($this, 'skill_base_id');
     $this->ctrl->saveParameter($this, 'skill_tref_id');
 }
 /**
  * edit library
  */
 public function edit()
 {
     $this->ctrl->saveParameter($this, 'lib_id');
     $form = new ilObjBibliographicAdminLibrariesFormGUI($this, new ilBibliographicSetting($_REQUEST["lib_id"]));
     $this->parent_gui->tpl->setContent($form->getHTML());
 }