ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilObjMailGUI Class Reference

Class ilObjMailGUI for admin panel. More...

+ Inheritance diagram for ilObjMailGUI:
+ Collaboration diagram for ilObjMailGUI:

Public Member Functions

 __construct ($a_data, $a_id, $a_call_by_reference)
 Constructor @access public. More...
 
 viewObject ()
 list childs of current object More...
 
 saveObject ()
 save object More...
 
 importObject ()
 
 performImportObject ()
 
 uploadObject ()
 
 __initFileObject ()
 
 __initParserObject ($a_xml, $a_mode)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
- Public Member Functions inherited from ilObjectGUI
 executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page @access public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 list childs of current object More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 

Static Public Member Functions

static _goto ($a_target)
 goto target group More...
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 

Private Member Functions

 initForm ()
 
 setDefaultValues ()
 

Additional Inherited Members

- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $ilias
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs @access public More...
 
 setAdminTabs ()
 set admin tabs @access public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTabs ()
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 
- Protected Attributes inherited from ilObjectGUI
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 

Detailed Description

Class ilObjMailGUI for admin panel.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om $Id$

@ilCtrl_Calls ilObjMailGUI: ilPermissionGUI

Definition at line 17 of file class.ilObjMailGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjMailGUI::__construct (   $a_data,
  $a_id,
  $a_call_by_reference 
)

Constructor @access public.

Definition at line 23 of file class.ilObjMailGUI.php.

24 {
25 $this->type = 'mail';
26 parent::__construct($a_data,$a_id,$a_call_by_reference, false);
27
28 $this->lng->loadLanguageModule('mail');
29 }

Member Function Documentation

◆ __initFileObject()

ilObjMailGUI::__initFileObject ( )

Definition at line 278 of file class.ilObjMailGUI.php.

279 {
280 include_once "./Services/Mail/classes/class.ilFileDataImportMail.php";
281
282 $this->file_obj = new ilFileDataImportMail();
283
284 return true;
285 }
This class handles all operations on files for the exercise object.

Referenced by importObject(), performImportObject(), and uploadObject().

+ Here is the caller graph for this function:

◆ __initParserObject()

ilObjMailGUI::__initParserObject (   $a_xml,
  $a_mode 
)

Definition at line 286 of file class.ilObjMailGUI.php.

287 {
288 include_once "Services/Mail/classes/class.ilMailImportParser.php";
289
290 if(!$a_xml)
291 {
292 return false;
293 }
294
295 $this->parser_obj = new ilMailImportParser($a_xml,$a_mode);
296
297 return true;
298 }

Referenced by performImportObject(), and uploadObject().

+ Here is the caller graph for this function:

◆ _goto()

static ilObjMailGUI::_goto (   $a_target)
static

goto target group

Definition at line 378 of file class.ilObjMailGUI.php.

379 {
380 global $ilAccess, $ilErr, $lng, $rbacsystem;
381
382 require_once 'Services/Mail/classes/class.ilMail.php';
383 $mail = new ilMail($GLOBALS['DIC']['ilUser']->getId());
384 if($rbacsystem->checkAccess('internal_mail', $mail->getMailObjectReferenceId()))
385 {
386 ilUtil::redirect("ilias.php?baseClass=ilMailGUI");
387 exit;
388 }
389 else
390 {
391 if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID))
392 {
393 $_GET["cmd"] = "frameset";
394 $_GET["target"] = "";
395 $_GET["ref_id"] = ROOT_FOLDER_ID;
396 $_GET["baseClass"] = "ilRepositoryGUI";
397 ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"),
399 include("ilias.php");
400 exit;
401 }
402 }
403 $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
404 }
sprintf('%.4f', $callTime)
$_GET["client_id"]
This class handles base functions for mail handling.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static redirect($a_script)
http redirect to other script
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
global $ilErr
Definition: raiseError.php:16

References $_GET, $GLOBALS, $ilErr, ilObjectGUI\$lng, ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, ilUtil\redirect(), ilUtil\sendFailure(), and sprintf.

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjMailGUI::getAdminTabs ( )

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

Definition at line 342 of file class.ilObjMailGUI.php.

343 {
344 $this->getTabs();
345 }
getTabs()
get tabs abstract method.

References ilObjectGUI\getTabs().

+ Here is the call graph for this function:

◆ importObject()

ilObjMailGUI::importObject ( )

Definition at line 183 of file class.ilObjMailGUI.php.

184 {
185 global $rbacsystem,$lng;
186
187 if (!$rbacsystem->checkAccess('write',$this->object->getRefId()))
188 {
189 $this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->WARNING);
190 }
191 $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.mail_import.html", "Services/Mail");
192
193 // GET ALREADY CREATED UPLOADED XML FILE
194 $this->__initFileObject();
195 if($this->file_obj->findXMLFile())
196 {
197 $this->tpl->setVariable("TXT_IMPORTED_FILE",$lng->txt("checked_files"));
198 $this->tpl->setVariable("XML_FILE",basename($this->file_obj->getXMLFile()));
199
200 $this->tpl->setVariable("BTN_IMPORT",$this->lng->txt("import"));
201 }
202
203 $this->tpl->setVariable("FORMACTION",
204 $this->ctrl->getFormAction($this));
205 $this->tpl->setVariable("TXT_IMPORT_MAIL",$this->lng->txt("table_mail_import"));
206 $this->tpl->setVariable("TXT_IMPORT_FILE",$this->lng->txt("mail_import_file"));
207 $this->tpl->setVariable("BTN_CANCEL",$this->lng->txt("cancel"));
208 $this->tpl->setVariable("BTN_UPLOAD",$this->lng->txt("upload"));
209
210 return true;
211 }
redirection script todo: (a better solution should control the processing via a xml file)

References ilObjectGUI\$lng, and __initFileObject().

+ Here is the call graph for this function:

◆ initForm()

ilObjMailGUI::initForm ( )
private

Definition at line 45 of file class.ilObjMailGUI.php.

46 {
47 include_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
48 $this->form = new ilPropertyFormGUI();
49
50 $this->form->setFormAction($this->ctrl->getFormAction($this, 'save'));
51 $this->form->setTitle($this->lng->txt('general_settings'));
52
53 // Subject prefix
54 $pre = new ilTextInputGUI($this->lng->txt('mail_subject_prefix'),'mail_subject_prefix');
55 $pre->setSize(12);
56 $pre->setMaxLength(32);
57 $pre->setInfo($this->lng->txt('mail_subject_prefix_info'));
58 $this->form->addItem($pre);
59
60 // incoming type
61 include_once 'Services/Mail/classes/class.ilMailOptions.php';
62 $options = array(
63 IL_MAIL_LOCAL => $this->lng->txt('mail_incoming_local'),
64 IL_MAIL_EMAIL => $this->lng->txt('mail_incoming_smtp'),
65 IL_MAIL_BOTH => $this->lng->txt('mail_incoming_both')
66 );
67 $si = new ilSelectInputGUI($this->lng->txt('mail_incoming'), 'mail_incoming_mail');
68 $si->setOptions($options);
69 $this->ctrl->setParameterByClass('ilobjuserfoldergui', 'ref_id', USER_FOLDER_ID);
70 $si->setInfo(sprintf($this->lng->txt('mail_settings_incoming_type_see_also'), $this->ctrl->getLinkTargetByClass('ilobjuserfoldergui', 'settings')));
71 $this->ctrl->clearParametersByClass('ilobjuserfoldergui');
72 $this->form->addItem($si);
73
74 $send_html = new ilCheckboxInputGUI($this->lng->txt('mail_send_html'), 'mail_send_html');
75 $send_html->setInfo($this->lng->txt('mail_send_html_info'));
76 $send_html->setValue(1);
77 $this->form->addItem($send_html);
78
79 // noreply address
80 $ti = new ilTextInputGUI($this->lng->txt('mail_external_sender_noreply'), 'mail_external_sender_noreply');
81 $ti->setInfo($this->lng->txt('info_mail_external_sender_noreply'));
82 $ti->setMaxLength(255);
83 $this->form->addItem($ti);
84
85 $system_from_name = new ilTextInputGUI($this->lng->txt('mail_system_from_name'), 'mail_system_from_name');
86 $system_from_name->setInfo($this->lng->txt('mail_system_from_name_info'));
87 $system_from_name->setMaxLength(255);
88 $this->form->addItem($system_from_name);
89
90 $system_return_path = new ilTextInputGUI($this->lng->txt('mail_system_return_path'), 'mail_system_return_path');
91 $system_return_path->setInfo($this->lng->txt('mail_system_return_path_info'));
92 $system_return_path->setMaxLength(255);
93 $this->form->addItem($system_return_path);
94
95 // prevent smtp mails
96 $cb = new ilCheckboxInputGUI($this->lng->txt('mail_prevent_smtp_globally'), 'prevent_smtp_globally');
97 $cb->setValue(1);
98 $this->form->addItem($cb);
99
100 $cron_mail = new ilSelectInputGUI($this->lng->txt('cron_mail_notification'), 'mail_notification');
101 $cron_options = array(
102 0 => $this->lng->txt('cron_mail_notification_never'),
103 1 => $this->lng->txt('cron_mail_notification_cron')
104 );
105
106 $cron_mail->setOptions($cron_options);
107 $cron_mail->setInfo($this->lng->txt('cron_mail_notification_desc'));
108 $this->form->addItem($cron_mail);
109
110 // section header
111 $sh = new ilFormSectionHeaderGUI();
112 $sh->setTitle($this->lng->txt('mail').' ('.$this->lng->txt('internal_system').')');
113 $this->form->addItem($sh);
114
115 // max attachment size
116 $ti = new ilNumberInputGUI($this->lng->txt('mail_maxsize_attach'), 'mail_maxsize_attach');
117 $ti->setSuffix($this->lng->txt('kb'));
118 $ti->setInfo($this->lng->txt('mail_max_size_attachments_total'));
119 $ti->setMaxLength(10);
120 $ti->setSize(10);
121 $this->form->addItem($ti);
122
123 // Course/Group member notification
124 $mn = new ilFormSectionHeaderGUI();
125 $mn->setTitle($this->lng->txt('mail_member_notification'));
126 $this->form->addItem($mn);
127
128 include_once "Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php";
131 $this->form,
132 $this
133 );
134
135 $this->form->addCommandButton('save', $this->lng->txt('save'));
136 }
const IL_MAIL_BOTH
const IL_MAIL_LOCAL
const IL_MAIL_EMAIL
const USER_FOLDER_ID
Class ilObjUserFolder.
static addFieldsToForm($a_form_id, ilPropertyFormGUI $a_form, ilObjectGUI $a_parent_gui)
This class represents a checkbox property in a property form.
This class represents a section header in a property form.
This class represents a number property in a property form.
This class represents a property form user interface.
This class represents a selection list property in a property form.
This class represents a text property in a property form.
if(!is_array($argv)) $options

References $options, $si, ilAdministrationSettingsFormHandler\addFieldsToForm(), ilAdministrationSettingsFormHandler\FORM_MAIL, IL_MAIL_BOTH, IL_MAIL_EMAIL, IL_MAIL_LOCAL, sprintf, and USER_FOLDER_ID.

Referenced by saveObject(), and viewObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ performImportObject()

ilObjMailGUI::performImportObject ( )

Definition at line 213 of file class.ilObjMailGUI.php.

214 {
215 global $rbacsystem,$lng;
216
217 if (!$rbacsystem->checkAccess('write',$this->object->getRefId()))
218 {
219 $this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->WARNING);
220 }
221 $this->__initFileObject();
222 $this->file_obj->findXMLFile();
223 $this->__initParserObject($this->file_obj->getXMLFile(),"import");
224 $this->parser_obj->startParsing();
225 $number = $this->parser_obj->getCountImported();
226 ilUtil::sendInfo($lng->txt("import_finished")." ".$number,true);
227
228 $this->ctrl->redirect($this, "import");
229 }
__initParserObject($a_xml, $a_mode)
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.

References ilObjectGUI\$lng, __initFileObject(), __initParserObject(), and ilUtil\sendInfo().

+ Here is the call graph for this function:

◆ saveObject()

ilObjMailGUI::saveObject ( )

save object

@access public

Reimplemented from ilObjectGUI.

Definition at line 154 of file class.ilObjMailGUI.php.

155 {
156 global $rbacsystem, $ilSetting;
157
158 if(!$rbacsystem->checkAccess('write', $this->object->getRefId()))
159 {
160 $this->ilias->raiseError($this->lng->txt('msg_no_perm_write'), $this->ilias->error_obj->WARNING);
161 }
162
163 $this->initForm();
164 if($this->form->checkInput())
165 {
166 $this->ilias->setSetting('mail_send_html',$this->form->getInput('mail_send_html'));
167 $this->ilias->setSetting('mail_subject_prefix',$this->form->getInput('mail_subject_prefix'));
168 $this->ilias->setSetting('mail_incoming_mail', (int)$this->form->getInput('mail_incoming_mail'));
169 $this->ilias->setSetting('mail_maxsize_attach', $this->form->getInput('mail_maxsize_attach'));
170 $this->ilias->setSetting('mail_external_sender_noreply', $this->form->getInput('mail_external_sender_noreply'));
171 $this->ilias->setSetting('prevent_smtp_globally', (int)$this->form->getInput('prevent_smtp_globally'));
172 $this->ilias->setSetting('mail_notification', (int)$this->form->getInput('mail_notification'));
173 $ilSetting->set('mail_system_sender_name', $this->form->getInput('mail_system_from_name'));
174 $ilSetting->set('mail_system_return_path', $this->form->getInput('mail_system_return_path'));
175
176 ilUtil::sendSuccess($this->lng->txt('saved_successfully'));
177 }
178 $this->form->setValuesByPost();
179
180 $this->tpl->setContent($this->form->getHTML());
181 }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
global $ilSetting
Definition: privfeed.php:17

References $ilSetting, initForm(), and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ setDefaultValues()

ilObjMailGUI::setDefaultValues ( )
private

Definition at line 138 of file class.ilObjMailGUI.php.

139 {
140 $settings = $this->ilias->getAllSettings();
141 $this->form->setValuesByArray(array(
142 'mail_subject_prefix' => $settings['mail_subject_prefix'] ? $settings['mail_subject_prefix'] : '[ILIAS]',
143 'mail_incoming_mail' => (int)$settings['mail_incoming_mail'],
144 'mail_send_html' => (int)$settings['mail_send_html'],
145 'mail_external_sender_noreply' => $settings['mail_external_sender_noreply'],
146 'prevent_smtp_globally' => ($settings['prevent_smtp_globally'] == '1') ? true : false,
147 'mail_maxsize_attach' => $settings['mail_maxsize_attach'],
148 'mail_notification' => $settings['mail_notification'],
149 'mail_system_from_name' => $settings['mail_system_sender_name'],
150 'mail_system_return_path' => $settings['mail_system_return_path']
151 ));
152 }

Referenced by viewObject().

+ Here is the caller graph for this function:

◆ uploadObject()

ilObjMailGUI::uploadObject ( )

Definition at line 233 of file class.ilObjMailGUI.php.

234 {
235 global $rbacsystem,$lng;
236
237 if (!$rbacsystem->checkAccess('write',$this->object->getRefId()))
238 {
239 $this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->WARNING);
240 }
241
242 $this->__initFileObject();
243 if(!$this->file_obj->storeUploadedFile($_FILES["importFile"])) // STEP 1 save file in ...import/mail
244 {
245 $this->message = $lng->txt("import_file_not_valid");
246 $this->file_obj->unlinkLast();
247 }
248 else if(!$this->file_obj->unzip())
249 {
250 $this->message = $lng->txt("cannot_unzip_file"); // STEP 2 unzip uplaoded file
251 $this->file_obj->unlinkLast();
252 }
253 else if(!$this->file_obj->findXMLFile()) // STEP 3 getXMLFile
254 {
255 $this->message = $lng->txt("cannot_find_xml");
256 $this->file_obj->unlinkLast();
257 }
258 else if(!$this->__initParserObject($this->file_obj->getXMLFile(),"check"))
259 {
260 $this->message = $lng->txt("error_parser"); // STEP 4 init sax parser
261 }
262 else if(!$this->parser_obj->startParsing())
263 {
264 $this->message = $lng->txt("users_not_imported").":<br/>"; // STEP 5 start parsing
265 $this->message .= $this->parser_obj->getNotAssignableUsers();
266 }
267 // FINALLY CHECK ERROR
268 if(!$this->message)
269 {
270 $this->message = $lng->txt("uploaded_and_checked");
271 }
272 ilUtil::sendInfo($this->message,true);
273
274 $this->ctrl->redirect($this, "import");
275 }

References ilObjectGUI\$lng, __initFileObject(), __initParserObject(), and ilUtil\sendInfo().

+ Here is the call graph for this function:

◆ viewObject()

ilObjMailGUI::viewObject ( )

list childs of current object

@access public

Reimplemented from ilObjectGUI.

Definition at line 31 of file class.ilObjMailGUI.php.

32 {
33 global $ilAccess;
34
35 if(!$ilAccess->checkAccess('write,read', '', $this->object->getRefId()))
36 {
37 $this->ilias->raiseError($this->lng->txt('msg_no_perm_write'), $this->ilias->error_obj->WARNING);
38 }
39
40 $this->initForm();
41 $this->setDefaultValues();
42 $this->tpl->setContent($this->form->getHTML());
43 }

References initForm(), and setDefaultValues().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: