4include_once 
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateSetting.php';
 
   26                $this->parent_object = $a_parent_obj;
 
   38                $next_class = 
$ilCtrl->getNextClass($this);
 
   64                if($ilAccess->checkAccess(
'write',
'',
$_REQUEST[
"ref_id"]))
 
   66                        $ilToolbar->addButton(
 
   67                                $lng->txt(
'didactic_import_btn'),
 
   68                                $ilCtrl->getLinkTarget($this,
'showImportForm')
 
   73                include_once 
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateSettingsTableGUI.php';
 
   78                $GLOBALS[
'tpl']->setContent($table->getHTML());
 
   90                $ilTabs->clearTargets();
 
   91                $ilTabs->setBackTarget(
 
   92                        $this->lng->txt(
'didactic_back_to_overview'),
 
   93                        $ilCtrl->getLinkTarget($this,
'overview')
 
  100                $GLOBALS[
'tpl']->setContent($form->getHTML());
 
  111                include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  113                $form->setShowTopButtons(
false);
 
  114                $form->setFormAction(
$ilCtrl->getFormAction($this));
 
  115                $form->setTitle($this->lng->txt(
'didactic_import_table_title'));
 
  116                $form->addCommandButton(
'importTemplate', $this->lng->txt(
'import'));
 
  117                $form->addCommandButton(
'overview', $this->lng->txt(
'cancel'));
 
  120                $file->setSuffixes(array(
'xml'));
 
  121                $file->setRequired(TRUE);
 
  122                $form->addItem(
$file);
 
  136                if(!$ilAccess->checkAccess(
'write',
'',
$_REQUEST[
"ref_id"]))
 
  138                        $this->ctrl->redirect($this, 
"overview");
 
  142                if(!$form->checkInput())
 
  145                        $form->setValuesByPost();
 
  150                include_once 
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateImport.php';
 
  154                $file = $form->getInput(
'file');
 
  163                $import->setInputFile($tmp);
 
  175                $ilCtrl->redirect($this,
'overview');
 
  189                        return $ilCtrl->redirect($this,
'overview');
 
  192                $ilTabs->clearTargets();
 
  193                $ilTabs->setBackTarget(
 
  194                        $this->lng->txt(
'didactic_back_to_overview'),
 
  195                        $ilCtrl->getLinkTarget($this,
'overview')
 
  199                $ilCtrl->saveParameter($this,
'tplid');
 
  206                $GLOBALS[
'tpl']->setContent($form->getHTML());
 
  216                if(!$ilAccess->checkAccess(
'write',
'',
$_REQUEST[
"ref_id"]))
 
  218                        $this->ctrl->redirect($this, 
"overview");
 
  224                if($form->checkInput())
 
  226                        $temp->setTitle($form->getInput(
'title'));
 
  227                        $temp->setDescription($form->getInput(
'description'));
 
  228                        $temp->setInfo($form->getInput(
'info'));
 
  229                        $temp->setAssignments(array($form->getInput(
'type')));
 
  233                        $ilCtrl->redirect($this,
'overview');
 
  237                $form->setValuesByPost();
 
  248                include_once 
'./Services/Form/classes/class.ilPropertyFormGUI.php';
 
  250                $form->setShowTopButtons(
false);
 
  251                $form->setFormAction(
$ilCtrl->getFormAction($this,
'updateTemplate'));
 
  252                $form->setTitle($this->lng->txt(
'didactic_edit_tpl'));
 
  253                $form->addCommandButton(
'updateTemplate', $this->lng->txt(
'save'));
 
  254                $form->addCommandButton(
'overview', $this->lng->txt(
'cancel'));
 
  260                $title->setMaxLength(64);
 
  261                $title->setRequired(
true);
 
  262                $form->addItem($title);
 
  268                $form->addItem($desc);
 
  274                $form->addItem(
$info);
 
  278                $type->setRequired(
true);
 
  280                $type->setValue(isset($assigned[0]) ? $assigned[0] : 
'');
 
  281                $subs = $objDefinition->getCreatableSubobjects(
'root', 
false);
 
  283                foreach(array_merge($subs,array(
'fold' => 1)) as $obj => $null)
 
  285                        if($objDefinition->isAllowedInRepository($obj))
 
  287                                $options[$obj] = $this->lng->txt(
'obj_'.$obj);
 
  291                $form->addItem($type);
 
  303                if(!$ilAccess->checkAccess(
'write',
'',
$_REQUEST[
"ref_id"]))
 
  305                        $this->ctrl->redirect($this, 
"overview");
 
  311                        return $ilCtrl->redirect($this,
'overview');
 
  314                include_once 
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateCopier.php';
 
  320                $ilCtrl->redirect($this,
'overview');
 
  333                        return $ilCtrl->redirect($this,
'overview');
 
  336                include_once 
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateXmlWriter.php';
 
  341                        $writer->xmlDumpMem(TRUE), 
 
  342                        $writer->getSetting()->getTitle().
'.xml',
 
  357                        return $ilCtrl->redirect($this,
'overview');
 
  360                include_once 
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
 
  363                $confirm->setFormAction(
$ilCtrl->getFormAction($this));
 
  364                $confirm->setConfirm($this->lng->txt(
'delete'), 
'deleteTemplates');
 
  365                $confirm->setCancel($this->lng->txt(
'cancel'), 
'overview');
 
  367                foreach((array) 
$_REQUEST[
'tpls'] as $tplid)
 
  370                        $confirm->addItem(
'tpls[]', 
$tpl->getId(), 
$tpl->getTitle());
 
  374                $GLOBALS[
'tpl']->setContent($confirm->getHTML());
 
  387                if(!$ilAccess->checkAccess(
'write',
'',
$_REQUEST[
"ref_id"]))
 
  389                        $this->ctrl->redirect($this, 
"overview");
 
  395                        return $ilCtrl->redirect($this,
'overview');
 
  398                foreach((array) 
$_REQUEST[
'tpls'] as $tplid)
 
  405                $ilCtrl->redirect($this,
'overview');
 
  418                if(!$ilAccess->checkAccess(
'write',
'',
$_REQUEST[
"ref_id"]))
 
  420                        $this->ctrl->redirect($this, 
"overview");
 
  425                        return $ilCtrl->redirect($this,
'overview');
 
  436                $ilCtrl->redirect($this,
'overview');
 
  449                if(!$ilAccess->checkAccess(
'write',
'',
$_REQUEST[
"ref_id"]))
 
  451                        $this->ctrl->redirect($this, 
"overview");
 
  457                        return $ilCtrl->redirect($this,
'overview');
 
  468                $ilCtrl->redirect($this,
'overview');
 
Confirmation screen class.
Copy a didactic template and all subitems.
Description of ilDidacticTemplateImportException.
Description of ilDidacticTemplateImport.
getDescription()
Get description.
getAssignments()
Get object assignemnts.
getInfo()
Get installation info text.
Settings for a single didactic template.
copyTemplate()
Copy on template.
deactivateTemplates()
Activate didactic templates @global ilErrorHandling $ilErr @global ilCtrl $ilCtrl.
createImportForm()
Create template import form.
exportTemplate()
Export one template.
executeCommand()
Execute command.
updateTemplate()
Update template.
initEditTemplate(ilDidacticTemplateSetting $set)
Init edit template form.
__construct($a_parent_obj)
Constructor.
overview()
Show didactic template administration.
showImportForm(ilPropertyFormGUI $form=NULL)
Show template import form.
confirmDelete()
Show delete confirmation screen.
activateTemplates()
Activate didactic templates @global ilErrorHandling $ilErr @global ilCtrl $ilCtrl.
importTemplate()
Import template.
editTemplate(ilPropertyFormGUI $form=null)
Edit template.
deleteTemplates()
Delete chosen didactic templates @global ilErrorHandling $ilErr @global ilCtrl $ilCtrl.
Description of ilDidacticTemplateSettingsTableGUI.
static getLogger($a_component_id)
Get component logger.
This class represents a text area property in a property form.
This class represents a text property in a property form.
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
static sendQuestion($a_info="", $a_keep=false)
Send Question to Screen.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static deliverData($a_data, $a_filename, $mime="application/octet-stream", $charset="")
deliver data for download via browser.
static ilTempnam($a_temp_path=null)
Create a temporary file in an ILIAS writable directory.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
if(!is_array($argv)) $options