ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMailFormAttachmentPropertyGUI Class Reference
+ Inheritance diagram for ilMailFormAttachmentPropertyGUI:
+ Collaboration diagram for ilMailFormAttachmentPropertyGUI:

Public Member Functions

 __construct ($buttonLabel)
 Form Element for showing Mail Attachments.
 addItem ($label)
 Add Attachment Item to list.
 insert ($a_tpl)
- Public Member Functions inherited from ilFormPropertyGUI
 __construct ($a_title="", $a_postvar="")
 Constructor.
executeCommand ()
 Execute command.
 getType ()
 Get Type.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setPostVar ($a_postvar)
 Set Post Variable.
 getPostVar ()
 Get Post Variable.
 getFieldId ()
 Get Post Variable.
 setInfo ($a_info)
 Set Information Text.
 getInfo ()
 Get Information Text.
 setAlert ($a_alert)
 Set Alert Text.
 getAlert ()
 Get Alert Text.
 setRequired ($a_required)
 Set Required.
 getRequired ()
 Get Required.
 setDisabled ($a_disabled)
 Set Disabled.
 getDisabled ()
 Get Disabled.
 checkInput ()
 Check input, strip slashes etc.
 setParentForm ($a_parentform)
 Set Parent Form.
 getParentForm ()
 Get Parent Form.
 setParent ($a_val)
 Set Parent GUI object.
 getParent ()
 Get Parent GUI object.
 getSubForm ()
 Get sub form html.
 hideSubForm ()
 Sub form hidden on init?
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders)
 getHiddenTitle ()
 Get hidden title.
 getItemByPostVar ($a_post_var)
 Get item by post var.
 serializeData ()
 serialize data
 unserializeData ($a_data)
 unserialize data
 writeToSession ()
 Write to session.
 clearFromSession ()
 Clear session value.
 readFromSession ()
 Read from session.
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties)

Data Fields

 $buttonLabel
 $items = array()

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type.
- Protected Attributes inherited from ilFormPropertyGUI
 $type
 $title
 $postvar
 $info
 $alert
 $required = false
 $parentgui
 $parentform
 $hidden_title = ""

Detailed Description

Constructor & Destructor Documentation

ilMailFormAttachmentPropertyGUI::__construct (   $buttonLabel)

Form Element for showing Mail Attachments.

Parameters
stringButtonlabel (e.g. edit or add)

Definition at line 23 of file class.ilMailFormAttachmentFormPropertyGUI.php.

References $buttonLabel, and $lng.

{
global $lng;
$this->buttonLabel = $buttonLabel;
parent::__construct($lng->txt('attachments'));
}

Member Function Documentation

ilMailFormAttachmentPropertyGUI::addItem (   $label)

Add Attachment Item to list.

Parameters
stringLabel for item including additional information like Filesize.

Definition at line 36 of file class.ilMailFormAttachmentFormPropertyGUI.php.

{
$this->items[] = $label;
}
ilMailFormAttachmentPropertyGUI::insert (   $a_tpl)

Definition at line 41 of file class.ilMailFormAttachmentFormPropertyGUI.php.

References $tpl.

{
$tpl = new ilTemplate('tpl.mail_new_attachments.html', true, true, 'Services/Mail');
foreach($this->items as $item)
{
$tpl->setCurrentBlock('attachment_list_item');
$tpl->setVariable('ATTACHMENT_LABEL', $item);
$tpl->parseCurrentBlock();
}
$tpl->setVariable('ATTACHMENT_BUTTON_LABEL', $this->buttonLabel);
$a_tpl->setCurrentBlock("prop_generic");
$a_tpl->setVariable("PROP_GENERIC", $tpl->get());
$a_tpl->parseCurrentBlock();
}

Field Documentation

ilMailFormAttachmentPropertyGUI::$buttonLabel

Definition at line 16 of file class.ilMailFormAttachmentFormPropertyGUI.php.

Referenced by __construct().

ilMailFormAttachmentPropertyGUI::$items = array()

The documentation for this class was generated from the following file: