35include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
   51                parent::__construct();
 
   63                $this->
setTitle($this->lng->txt(
'compose'));
 
   65                $this->subject = 
new ilTextInputGUI($this->lng->txt(
'subject'), 
'm_subject');
 
   66                $this->subject->setSize(50);
 
   67                $this->subject->setRequired(
true);
 
   71                $this->sendtype->addOption(
new ilCheckboxOption($this->lng->txt(
"send_to_all"), 0, 
''));
 
   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))
 
   82                        $first = array_shift($existingdata);
 
   83                        foreach ($first as $key => $value)
 
   85                                if (strcmp($key, 
'code') != 0 && strcmp($key, 
'email') != 0 && strcmp($key, 
'sent') != 0) array_push($existingcolumns, 
'[' . $key . 
']');
 
   89                $settings = $this->guiclass->getObject()->getUserSettings(
$ilUser->getId(), 
'savemessage');
 
   92                        $options = array(0 => $this->lng->txt(
'please_select'));
 
   93                        foreach ($settings as $setting)
 
   95                                $options[$setting[
'settings_id']] = $setting[
'title'];
 
   97                        $this->savedmessages = 
new ilSelectInputGUI($this->lng->txt(
"saved_messages"), 
"savedmessage");
 
   98                        $this->savedmessages->setOptions(
$options);
 
   99                        $this->
addItem($this->savedmessages);
 
  102                $this->mailmessage = 
new ilTextAreaInputGUI($this->lng->txt(
'message_content'), 
'm_message');
 
  103                $this->mailmessage->setRequired(
true);
 
  104                $this->mailmessage->setCols(80);
 
  105                $this->mailmessage->setRows(10);
 
  106                $this->mailmessage->setInfo(
sprintf($this->lng->txt(
'message_content_info'), join($existingcolumns, 
', ')));
 
  107                $this->
addItem($this->mailmessage);
 
  111                $this->savemessage->setOptionTitle($this->lng->txt(
"save_reuse_message"));
 
  112                $this->savemessage->setValue(1);
 
  114                $this->savemessagetitle = 
new ilTextInputGUI($this->lng->txt(
'save_reuse_title'), 
'savemessagetitle');
 
  115                $this->savemessagetitle->setSize(60);
 
  116                $this->savemessage->addSubItem($this->savemessagetitle);
 
  118                $this->
addItem($this->savemessage);
 
  120                if (count($settings))
 
  122                        if ($ilAccess->checkAccess(
"write", 
"", 
$_GET[
"ref_id"])) $this->
addCommandButton(
"deleteSavedMessage", $this->lng->txt(
"delete_saved_message"));
 
  123                        if ($ilAccess->checkAccess(
"write", 
"", 
$_GET[
"ref_id"])) $this->
addCommandButton(
"insertSavedMessage", $this->lng->txt(
"insert_saved_message"));
 
  128                        if(!(
int)
$ilSetting->get(
'prevent_smtp_globally'))
 
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
This class represents an option in a checkbox group.
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable.
This class represents a text area property in a property form.
This class represents a text property in a property form.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if(!is_array($argv)) $options