function ExternElementMainTemplateSemBrowse($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array('name', 'includeurl', 'grouping', 'semstart', 'semrange', 'semswitch', 'allseminars', 'rangepathlevel', 'time', 'lecturer', 'semclasses', 'aliasesgrouping', 'nameformat', 'language', 'genericdatafields', 'mode', 'countshowsublevels', 'startitem', 'disableemptylevels', 'selectedeventtypes', 'resultsortby', 'maxnumberofhits', 'maxpagesresultbrowser'); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); }
/** * Constructor * */ function ExternElementMainTemplatePersondetails ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'nameformat', 'dateformat', 'language', 'studiplink', 'defaultaddr', 'onlylecturers' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); }
/** * Constructor * */ function ExternElementMainTemplatePersons ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'sort', 'groupsalias', 'groupsvisible', 'grouping', 'nameformat', 'defaultadr', 'genericdatafields' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); $this->edit_function = 'editSort'; }
/** * Constructor * */ function ExternElementMainPersondetails ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'genericdatafields', 'order', 'visible', 'aliases', 'width', 'showcontact', 'showimage', 'wholesite', 'nameformat', 'dateformat', 'language', 'studiplink', 'urlcss', 'title', 'copyright', 'author' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); }
/** * Constructor * */ function ExternElementMainPersons ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'genericdatafields', 'order', 'visible', 'aliases', 'width', 'width_pp', 'sort', 'groupsalias', 'groupsvisible', 'grouping', 'wholesite', 'nameformat', 'repeatheadrow', 'urlcss', 'title', 'bodystyle', 'bodyclass', 'copyright', 'author', 'defaultadr' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); }
/** * Constructor * */ function ExternElementMainSemLectureTree ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'table_width', 'table_align', 'table_border', 'table_bgcolor', 'table_bordercolor', 'table_cellpadding', 'table_cellspacing', 'table_class', 'table_style', 'wholesite', 'urlcss', 'title', 'bodystyle', 'bodyclass' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); }
/** * Constructor * */ function ExternElementMainLecturedetails ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'genericdatafields', 'order', 'visible', 'aliases', 'aliaspredisc', 'aliasfirstmeeting', 'headlinerow', 'rangepathlevel', 'studipinfo', 'studiplink', 'studiplinktarget', 'wholesite', 'nameformat', 'urlcss', 'title', 'language', 'copyright', 'author' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); }
/** * Constructor * */ function ExternElementMainTemplateLectures ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'grouping', 'semstart', 'semrange', 'semswitch', 'allseminars', 'rangepathlevel', 'time', 'lecturer', 'semclasses', 'textnogroups', 'aliasesgrouping', 'nameformat', 'language', "nodatatext" ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); $this->edit_function = 'editSort'; }
/** * Constructor * */ function ExternElementMainLecturestable ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'order', 'visible', 'aliases', 'width', 'widthpp', 'grouping', 'semstart', 'semrange', 'semswitch', 'allseminars', 'rangepathlevel', 'addinfo', 'time', 'lecturer', 'repeatheadrow', 'semclasses', 'textlectures', 'textgrouping', 'textnogroups', 'aliasesgrouping', 'wholesite', 'nameformat', 'language', 'urlcss', 'title', 'copyright', 'author', 'genericdatafields' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); }
/** * Constructor * */ function ExternElementMainDownload ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'order', 'visible', 'aliases', 'width', 'sort', 'wholesite', 'lengthdesc', 'nameformat', 'urlcss', 'title', 'nodatatext', 'dateformat', 'language', 'iconpic', 'icontxt', 'iconpdf', 'iconppt', 'iconxls', 'iconrtf', 'iconzip', 'icondefault', 'copyright', 'author' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); }
/** * Constructor * */ function ExternElementMainTemplateNews ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'order', 'visible', 'aliases', 'width', 'width_pp', 'sort', 'studiplink', 'wholesite', 'nameformat', 'dateformat', 'language', 'urlcss', 'title', 'nodatatext', 'copyright', 'author', 'showdateauthor', 'notauthorlink' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); $this->edit_function = 'editSort'; }
/** * Constructor * */ function ExternElementMainTemplateDownload ($module_name, &$data_fields, &$field_names, &$config) { $this->attributes = array( 'name', 'sort', 'lengthdesc', 'nameformat', 'nodatatext', 'dateformat', 'language', 'iconpic', 'icontxt', 'iconpdf', 'iconppt', 'iconxls', 'iconrtf', 'iconzip', 'icondefault' ); $this->real_name = _("Grundeinstellungen"); $this->description = _("In den Grundeinstellungen können Sie allgemeine Daten des Moduls ändern."); parent::ExternElementMain($module_name, $data_fields, $field_names, $config); $this->edit_function = 'editSort'; }
/** * The constructor of a child class has to call this parent constructor! */ function ExternModule ($range_id, $module_name, $config_id = NULL, $set_config = NULL, $global_id = NULL) { foreach ($GLOBALS["EXTERN_MODULE_TYPES"] as $type => $module) { if ($module["module"] == $module_name) { $this->type = $type; break; } } // the module is called via extern.php (not via the admin area) and there is // no config_id so it's necessary to check the range_id if (!$config_id && !$this->checkRangeId($range_id)) { $this->printError(); } if (is_null($this->type)) { $this->printError(); } $this->name = $module_name; if ($config_id) { $this->config = ExternConfig::GetInstance($range_id, $module_name, $config_id); } else { $this->config = ExternConfig::GetInstance($range_id, $module_name); } // the "Main"-element is included in every module and needs information // about the data this module handles with $this->elements["Main"] = ExternElementMain::GetInstance($module_name, $this->data_fields, $this->field_names, $this->config); // instantiate the registered elements foreach ($this->registered_elements as $name => $registered_element) { if (is_int($name) || !$name) { $this->elements[$registered_element] = ExternElement::GetInstance($this->config, $registered_element); } else { $this->elements[$name] = ExternElement::GetInstance($this->config, $registered_element); $this->elements[$name]->name = $name; } } if ($set_config && !$config_id) { $config = $this->getDefaultConfig(); $this->config->setDefaultConfiguration($config); } // overwrite modules configuration with global configuration if (!is_null($global_id)) { $this->config->setGlobalConfig(ExternConfig::GetInstance($range_id, $module_name, $global_id), $this->registered_elements); } $this->setup(); }
function checkFormValues () { if ($fault = parent::checkFormValues()) { if ($_POST["Main_nameformat"] == "" && $fault["Main_nameformat"][0] == TRUE) { $fault["Main_nameformat"][0] = FALSE; } return $fault; } return FALSE; }