|
| __construct ($guiclass) |
|
| getSavedMessages () |
|
| getMailMessage () |
|
| __construct () |
| Constructor. More...
|
|
| executeCommand () |
| Execute command. More...
|
|
| setTableWidth ($a_width) |
| Set table width. More...
|
|
| getTableWidth () |
| get table width More...
|
|
| setMode ($a_mode) |
| Set Mode ('std', 'subform'). More...
|
|
| getMode () |
| Get Mode ('std', 'subform'). More...
|
|
| setTitle ($a_title) |
| Set Title. More...
|
|
| getTitle () |
| Get Title. More...
|
|
| setTitleIcon ($a_titleicon) |
| Set TitleIcon. More...
|
|
| getTitleIcon () |
| Get TitleIcon. More...
|
|
| setDescription ($a_val) |
| Set description. More...
|
|
| getDescription () |
| Get description. More...
|
|
| setTopAnchor ($a_val) |
| Set top anchor. More...
|
|
| getTopAnchor () |
| Get top anchor. More...
|
|
| setShowTopButtons ($a_val) |
| Get show top buttons. More...
|
|
| getShowTopButtons () |
| Set show top buttons. More...
|
|
| addItem ($a_item) |
| Add Item (Property, SectionHeader). More...
|
|
| removeItemByPostVar ($a_post_var, $a_remove_unused_headers=false) |
| Remove Item. More...
|
|
| getItemByPostVar ($a_post_var) |
| Get Item by POST variable. More...
|
|
| setItems ($a_items) |
| Set Items. More...
|
|
| getItems () |
| Get Items. More...
|
|
| getInputItemsRecursive () |
| returns a flat array of all input items including the possibly existing subitems recursively More...
|
|
| setDisableStandardMessage ($a_val) |
| Set disable standard message. More...
|
|
| getDisableStandardMessage () |
| Get disable standard message. More...
|
|
| getHideLabels () |
| Get a value indicating whether the labels should be hidden or not. More...
|
|
| setHideLabels ($a_value=true) |
| Set a value indicating whether the labels should be hidden or not. More...
|
|
| setValuesByArray ($a_values, $a_restrict_to_value_keys=false) |
| Set form values from an array. More...
|
|
| setValuesByPost () |
| Set form values from POST values. More...
|
|
| checkInput () |
| Check Post Input. More...
|
|
| getInput ($a_post_var, $ensureValidation=true) |
| Returns the value of a HTTP-POST variable, identified by the passed id. More...
|
|
| addCustomProperty ( $a_title, $a_html, $a_info="", $a_alert="", $a_required=false) |
| Add a custom property. More...
|
|
| addCommandButton ($a_cmd, $a_text, $a_id="") |
| Add Command button. More...
|
|
| getCommandButtons () |
| Return all Command buttons. More...
|
|
| clearCommandButtons () |
| Remove all command buttons. More...
|
|
| getContent () |
| Get Content. More...
|
|
| insertItem ($item, $a_sub_item=false) |
|
| getHTML () |
|
| getFileUpload ($a_field, $a_index=null, $a_sub_index=null) |
| Get file upload data. More...
|
|
| hasFileUpload ($a_field, $a_index=null, $a_sub_index=null) |
| Was any file uploaded? More...
|
|
| moveFileUpload ($a_target_directory, $a_field, $a_target_name=null, $a_index=null, $a_sub_index=null) |
| Move upload to target directory. More...
|
|
| setFormAction ($a_formaction) |
| Set FormAction. More...
|
|
| getFormAction () |
| Get FormAction. More...
|
|
| setTarget ($a_target) |
| Set Target. More...
|
|
| getTarget () |
| Get Target. More...
|
|
| setMultipart ($a_multipart) |
| Set Enctype Multipart/Formdata true/false. More...
|
|
| getMultipart () |
| Get Enctype Multipart/Formdata true/false. More...
|
|
| setId ($a_id) |
| Set Id. More...
|
|
| getId () |
| Get Id. More...
|
|
| setName ($a_name) |
| Set Name. More...
|
|
| getName () |
| Get Name. More...
|
|
| setKeepOpen ($a_keepopen) |
| Set Keep Form Tag Open. More...
|
|
| getKeepOpen () |
| Get Keep Form Tag Open. More...
|
|
| setOpenTag ($a_open) |
| Enable/Disable Open Form Tag. More...
|
|
| getOpenTag () |
| Get Open Form Tag Enabled. More...
|
|
| setCloseTag ($a_val) |
| Set close tag. More...
|
|
| getCloseTag () |
| Get close tag. More...
|
|
| setPreventDoubleSubmission ($a_val) |
| Set prevent double submission. More...
|
|
| getPreventDoubleSubmission () |
| Get prevent double submission. More...
|
|
| getHTML () |
| Get HTML. More...
|
|
| getContent () |
| Get Content. More...
|
|
FormMailCodesGUI::__construct |
( |
|
$guiclass | ) |
|
Definition at line 47 of file FormMailCodesGUI.php.
References $_GET, $DIC, $guiclass, $ilSetting, $ilUser, $key, ilPropertyFormGUI\$lng, PHPMailer\PHPMailer\$options, ilPropertyFormGUI\$settings, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilRadioGroupInputGUI\addOption(), ilUtil\sendInfo(), ilFormGUI\setFormAction(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setSize(), and ilPropertyFormGUI\setTitle().
51 parent::__construct();
53 $ilAccess = $DIC->access();
56 $rbacsystem = $DIC->rbac()->system();
62 $this->
setFormAction($this->ctrl->getFormAction($this->guiclass));
63 $this->
setTitle($this->lng->txt(
'compose'));
65 $this->subject =
new ilTextInputGUI($this->lng->txt(
'subject'),
'm_subject');
67 $this->subject->setRequired(
true);
72 $this->sendtype->addOption(
new ilCheckboxOption($this->lng->txt(
"not_sent_only"), 1,
''));
73 $this->sendtype->addOption(
new ilCheckboxOption($this->lng->txt(
"send_to_unanswered"), 3,
''));
74 $this->sendtype->addOption(
new ilCheckboxOption($this->lng->txt(
"send_to_answered"), 2,
''));
75 $this->
addItem($this->sendtype);
77 $existingdata = $this->guiclass->getObject()->getExternalCodeRecipients();
79 $existingcolumns = array();
80 if (count($existingdata)) {
81 $first = array_shift($existingdata);
82 foreach ($first as
$key => $value) {
83 if (strcmp(
$key,
'code') != 0 && strcmp(
$key,
'email') != 0 && strcmp(
$key,
'sent') != 0) {
84 array_push($existingcolumns,
'[' .
$key .
']');
89 $settings = $this->guiclass->getObject()->getUserSettings(
$ilUser->getId(),
'savemessage');
91 $options = array(0 => $this->lng->txt(
'please_select'));
93 $options[$setting[
'settings_id']] = $setting[
'title'];
95 $this->savedmessages =
new ilSelectInputGUI($this->lng->txt(
"saved_messages"),
"savedmessage");
97 $this->
addItem($this->savedmessages);
100 $this->mailmessage =
new ilTextAreaInputGUI($this->lng->txt(
'message_content'),
'm_message');
102 $this->mailmessage->setCols(80);
103 $this->mailmessage->setRows(10);
104 $this->mailmessage->setInfo(sprintf($this->lng->txt(
'message_content_info'), join(
', ', $existingcolumns)));
105 $this->
addItem($this->mailmessage);
109 $this->savemessage->setOptionTitle($this->lng->txt(
"save_reuse_message"));
110 $this->savemessage->setValue(1);
112 $this->savemessagetitle =
new ilTextInputGUI($this->lng->txt(
'save_reuse_title'),
'savemessagetitle');
113 $this->savemessagetitle->
setSize(60);
114 $this->savemessage->addSubItem($this->savemessagetitle);
116 $this->
addItem($this->savemessage);
119 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
120 $this->
addCommandButton(
"deleteSavedMessage", $this->lng->txt(
"delete_saved_message"));
122 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
123 $this->
addCommandButton(
"insertSavedMessage", $this->lng->txt(
"insert_saved_message"));
127 if ((
int)
$ilSetting->get(
'mail_allow_external')) {
This class represents an option in a checkbox group.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
setSize($a_size)
Set Size.
This class represents a text property in a property form.
This class represents a text area property in a property form.