|
| | __construct ($guiclass) |
| |
| | getSavedMessages () |
| |
| | getMailMessage () |
| |
| | ilPropertyFormGUI () |
| | 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) |
| | 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) |
| | 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) |
| | Add Command button. 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...
|
| |
| | ilFormGUI () |
| | Constructor. 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...
|
| |
| | getHTML () |
| | Get HTML. More...
|
| |
| | getContent () |
| | Get Content. More...
|
| |
| FormMailCodesGUI::__construct |
( |
|
$guiclass | ) |
|
Definition at line 49 of file FormMailCodesGUI.php.
References $_GET, $guiclass, $ilUser, $lng, $options, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ilRadioGroupInputGUI\addOption(), ilFormGUI\setFormAction(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setSize(), and ilPropertyFormGUI\setTitle().
51 parent::__construct();
60 $this->
setTitle($this->lng->txt(
'compose'));
62 $this->subject =
new ilTextInputGUI($this->lng->txt(
'subject'),
'm_subject');
64 $this->subject->setRequired(
true);
69 $this->sendtype->addOption(
new ilCheckboxOption($this->lng->txt(
"not_sent_only"), 1,
''));
70 $this->sendtype->addOption(
new ilCheckboxOption($this->lng->txt(
"send_to_unanswered"), 3,
''));
71 $this->sendtype->addOption(
new ilCheckboxOption($this->lng->txt(
"send_to_answered"), 2,
''));
72 $this->
addItem($this->sendtype);
74 $existingdata = $this->guiclass->object->getExternalCodeRecipients();
75 $existingcolumns = array();
76 if (count($existingdata))
78 $first = array_shift($existingdata);
79 foreach ($first as $key => $value)
81 if (strcmp($key,
'code') != 0 && strcmp($key,
'email') != 0 && strcmp($key,
'sent') != 0) array_push($existingcolumns,
'[' . $key .
']');
86 $settings = $this->guiclass->object->getUserSettings($ilUser->getId(),
'savemessage');
89 $options = array(0 => $this->lng->txt(
'please_select'));
90 foreach ($settings as $setting)
92 $options[$setting[
'settings_id']] = $setting[
'title'];
94 $this->savedmessages =
new ilSelectInputGUI($this->lng->txt(
"saved_messages"),
"savedmessage");
96 $this->
addItem($this->savedmessages);
99 $this->mailmessage =
new ilTextAreaInputGUI($this->lng->txt(
'message_content'),
'm_message');
101 $this->mailmessage->setCols(80);
102 $this->mailmessage->setRows(10);
103 $this->mailmessage->setInfo(sprintf($this->lng->txt(
'message_content_info'), join($existingcolumns,
', ')));
104 $this->
addItem($this->mailmessage);
108 $this->savemessage->setOptionTitle($this->lng->txt(
"save_reuse_message"));
109 $this->savemessage->setValue(1);
111 $this->savemessagetitle =
new ilTextInputGUI($this->lng->txt(
'save_reuse_title'),
'savemessagetitle');
112 $this->savemessagetitle->
setSize(60);
113 $this->savemessage->addSubItem($this->savemessagetitle);
115 $this->
addItem($this->savemessage);
117 if (count($settings))
119 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) $this->
addCommandButton(
"deleteSavedMessage", $this->lng->txt(
"delete_saved_message"));
120 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) $this->
addCommandButton(
"insertSavedMessage", $this->lng->txt(
"insert_saved_message"));
122 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) $this->
addCommandButton(
"sendCodesMail", $this->lng->txt(
"send"));
This class represents an option in a checkbox group.
if(!is_array($argv)) $options
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.