ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 (&$tabs_gui)
 administration tabs show only permissions and trash folder More...
 
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor @access public. More...
 
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...
 
 getAdminTabs (&$tabs_gui)
 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 ($in_rep=false)
 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 ()
 
 prepareOutput ()
 prepare output More...
 
 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...
 
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste More...
 
 getTabs (&$tabs_gui)
 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 ($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
 

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 285 of file class.ilObjMailGUI.php.

286 {
287 include_once "./Services/Mail/classes/class.ilFileDataImportMail.php";
288
289 $this->file_obj =& new ilFileDataImportMail();
290
291 return true;
292 }
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 293 of file class.ilObjMailGUI.php.

294 {
295 include_once "Services/Mail/classes/class.ilMailImportParser.php";
296
297 if(!$a_xml)
298 {
299 return false;
300 }
301
302 $this->parser_obj =& new ilMailImportParser($a_xml,$a_mode);
303
304 return true;
305 }

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 385 of file class.ilObjMailGUI.php.

386 {
387 global $ilAccess, $ilErr, $lng, $rbacsystem;
388
389 require_once 'Services/Mail/classes/class.ilMail.php';
390 $mail = new ilMail($_SESSION["AccountId"]);
391 if($rbacsystem->checkAccess('internal_mail', $mail->getMailObjectReferenceId()))
392 {
393 ilUtil::redirect("ilias.php?baseClass=ilMailGUI");
394 exit;
395 }
396 else
397 {
398 if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID))
399 {
400 $_GET["cmd"] = "frameset";
401 $_GET["target"] = "";
402 $_GET["ref_id"] = ROOT_FOLDER_ID;
403 $_GET["baseClass"] = "ilRepositoryGUI";
404 ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"),
406 include("ilias.php");
407 exit;
408 }
409 }
410 $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
411 }
$_GET["client_id"]
$_SESSION["AccountId"]
Class Mail 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.
exit
Definition: login.php:54

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

+ Here is the call graph for this function:

◆ getAdminTabs()

ilObjMailGUI::getAdminTabs ( $tabs_gui)

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

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

350 {
351 $this->getTabs($tabs_gui);
352 }
getTabs(&$tabs_gui)
get tabs abstract method.

References ilObjectGUI\getTabs().

+ Here is the call graph for this function:

◆ importObject()

ilObjMailGUI::importObject ( )

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

191 {
192 global $rbacsystem,$lng;
193
194 if (!$rbacsystem->checkAccess('write',$this->object->getRefId()))
195 {
196 $this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->WARNING);
197 }
198 $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.mail_import.html", "Services/Mail");
199
200 // GET ALREADY CREATED UPLOADED XML FILE
201 $this->__initFileObject();
202 if($this->file_obj->findXMLFile())
203 {
204 $this->tpl->setVariable("TXT_IMPORTED_FILE",$lng->txt("checked_files"));
205 $this->tpl->setVariable("XML_FILE",basename($this->file_obj->getXMLFile()));
206
207 $this->tpl->setVariable("BTN_IMPORT",$this->lng->txt("import"));
208 }
209
210 $this->tpl->setVariable("FORMACTION",
211 $this->ctrl->getFormAction($this));
212 $this->tpl->setVariable("TXT_IMPORT_MAIL",$this->lng->txt("table_mail_import"));
213 $this->tpl->setVariable("TXT_IMPORT_FILE",$this->lng->txt("mail_import_file"));
214 $this->tpl->setVariable("BTN_CANCEL",$this->lng->txt("cancel"));
215 $this->tpl->setVariable("BTN_UPLOAD",$this->lng->txt("upload"));
216
217 return true;
218 }
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 $cb = new ilCheckboxInputGUI($this->lng->txt('mail_use_pear_mail'), 'pear_mail_enable');
96 $cb->setInfo($this->lng->txt('mail_use_pear_mail_info'));
97 $cb->setValue(1);
98 $this->form->addItem($cb);
99
100 // prevent smtp mails
101 $cb = new ilCheckboxInputGUI($this->lng->txt('mail_prevent_smtp_globally'), 'prevent_smtp_globally');
102 $cb->setValue(1);
103 $this->form->addItem($cb);
104
105 $cron_mail = new ilSelectInputGUI($this->lng->txt('cron_mail_notification'), 'mail_notification');
106 $cron_options = array(
107 0 => $this->lng->txt('cron_mail_notification_never'),
108 1 => $this->lng->txt('cron_mail_notification_cron')
109 );
110
111 $cron_mail->setOptions($cron_options);
112 $cron_mail->setInfo($this->lng->txt('cron_mail_notification_desc'));
113 $this->form->addItem($cron_mail);
114
115 // section header
116 $sh = new ilFormSectionHeaderGUI();
117 $sh->setTitle($this->lng->txt('mail').' ('.$this->lng->txt('internal_system').')');
118 $this->form->addItem($sh);
119
120 // max attachment size
121 $ti = new ilNumberInputGUI($this->lng->txt('mail_maxsize_attach'), 'mail_maxsize_attach');
122 $ti->setSuffix($this->lng->txt('kb'));
123 $ti->setInfo($this->lng->txt('mail_max_size_attachments_total'));
124 $ti->setMaxLength(10);
125 $ti->setSize(10);
126 $this->form->addItem($ti);
127
128 // Course/Group member notification
129 $mn = new ilFormSectionHeaderGUI();
130 $mn->setTitle($this->lng->txt('mail_member_notification'));
131 $this->form->addItem($mn);
132
133 include_once "Services/Administration/classes/class.ilAdministrationSettingsFormHandler.php";
136 $this->form,
137 $this
138 );
139
140 $this->form->addCommandButton('save', $this->lng->txt('save'));
141 }
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, 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 220 of file class.ilObjMailGUI.php.

221 {
222 global $rbacsystem,$lng;
223
224 if (!$rbacsystem->checkAccess('write',$this->object->getRefId()))
225 {
226 $this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->WARNING);
227 }
228 $this->__initFileObject();
229 $this->file_obj->findXMLFile();
230 $this->__initParserObject($this->file_obj->getXMLFile(),"import");
231 $this->parser_obj->startParsing();
232 $number = $this->parser_obj->getCountImported();
233 ilUtil::sendInfo($lng->txt("import_finished")." ".$number,true);
234
235 $this->ctrl->redirect($this, "import");
236 }
__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 160 of file class.ilObjMailGUI.php.

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

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

+ Here is the call graph for this function:

◆ setDefaultValues()

ilObjMailGUI::setDefaultValues ( )
private

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

144 {
145 $settings = $this->ilias->getAllSettings();
146 $this->form->setValuesByArray(array(
147 'mail_subject_prefix' => $settings['mail_subject_prefix'] ? $settings['mail_subject_prefix'] : '[ILIAS]',
148 'mail_incoming_mail' => (int)$settings['mail_incoming_mail'],
149 'mail_send_html' => (int)$settings['mail_send_html'],
150 'pear_mail_enable' => $settings['pear_mail_enable'] ? true : false,
151 'mail_external_sender_noreply' => $settings['mail_external_sender_noreply'],
152 'prevent_smtp_globally' => ($settings['prevent_smtp_globally'] == '1') ? true : false,
153 'mail_maxsize_attach' => $settings['mail_maxsize_attach'],
154 'mail_notification' => $settings['mail_notification'],
155 'mail_system_from_name' => $settings['mail_system_sender_name'],
156 'mail_system_return_path' => $settings['mail_system_return_path']
157 ));
158 }

Referenced by viewObject().

+ Here is the caller graph for this function:

◆ uploadObject()

ilObjMailGUI::uploadObject ( )

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

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

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: