Detailed Description
- Author
- Jens Conze
- Version
- $Id$
Definition at line 12 of file class.ilMailAttachmentGUI.php.
Member Function Documentation
ilMailAttachmentGUI::cancelSaveAttachments |
( |
| ) |
|
ilMailAttachmentGUI::confirmDeleteAttachments |
( |
| ) |
|
Definition at line 137 of file class.ilMailAttachmentGUI.php.
References $_POST, $files, ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
{
{
$this->showAttachments();
return true;
}
foreach(
$_POST[
'filename'] as $value)
{
}
if(strlen(($error = $this->mfile->unlinkFiles(
$files))))
{
}
else
{
$mailData = $this->umail->getSavedData();
if(is_array($mailData['attachments']))
{
$tmp = array();
for($i = 0; $i < count($mailData['attachments']); $i++)
{
if(!in_array($mailData[
'attachments'][$i],
$files))
{
$tmp[] = $mailData['attachments'][$i];
}
}
$this->umail->saveAttachments($tmp);
}
}
$this->showAttachments();
}
ilMailAttachmentGUI::deleteAttachments |
( |
| ) |
|
Definition at line 110 of file class.ilMailAttachmentGUI.php.
References $_POST, $filename, ilUtil\sendInfo(), and ilUtil\stripSlashes().
{
{
$this->showAttachments();
return;
}
$this->tpl->setTitle($this->lng->txt('mail'));
require_once 'Services/Utilities/classes/class.ilConfirmationGUI.php';
$confirmation->setFormAction($this->ctrl->getFormAction($this, 'confirmDeleteAttachments'));
$confirmation->setConfirm($this->lng->txt('confirm'), 'confirmDeleteAttachments');
$confirmation->setCancel($this->lng->txt('cancel'), 'showAttachments');
$confirmation->setHeaderText($this->lng->txt('mail_sure_delete_file'));
{
}
$this->tpl->setContent($confirmation->getHtml());
$this->tpl->show();
}
ilMailAttachmentGUI::executeCommand |
( |
| ) |
|
Definition at line 59 of file class.ilMailAttachmentGUI.php.
References $cmd.
{
$forward_class = $this->ctrl->getNextClass($this);
switch($forward_class)
{
default:
if(!(
$cmd = $this->ctrl->getCmd()))
{
$cmd =
'showAttachments';
}
break;
}
return true;
}
ilMailAttachmentGUI::uploadFile |
( |
| ) |
|
Field Documentation
ilMailAttachmentGUI::$ctrl |
|
private |
ilMailAttachmentGUI::$lng |
|
private |
ilMailAttachmentGUI::$mfile |
|
private |
ilMailAttachmentGUI::$tpl |
|
private |
ilMailAttachmentGUI::$umail |
|
private |
The documentation for this class was generated from the following file: