ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMailFormAttachmentPropertyGUI Class Reference
+ Inheritance diagram for ilMailFormAttachmentPropertyGUI:
+ Collaboration diagram for ilMailFormAttachmentPropertyGUI:

Public Member Functions

 __construct (string $buttonLabel)
 
 addItem (string $label)
 
 insert (ilTemplate $a_tpl)
 
- Public Member Functions inherited from ilFormPropertyGUI
 __construct (string $a_title="", string $a_postvar="")
 
 executeCommand ()
 
 getType ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setPostVar (string $a_postvar)
 
 getPostVar ()
 
 getFieldId ()
 
 setInfo (string $a_info)
 
 getInfo ()
 
 setAlert (string $a_alert)
 
 getAlert ()
 
 setRequired (bool $a_required)
 
 getRequired ()
 
 setDisabled (bool $a_disabled)
 
 getDisabled ()
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setParentForm (ilPropertyFormGUI $a_parentform)
 
 getParentForm ()
 
 setParent (ilFormPropertyGUI $a_val)
 
 getParent ()
 
 getSubForm ()
 
 hideSubForm ()
 
 setHiddenTitle (string $a_val)
 
 getHiddenTitle ()
 
 getItemByPostVar (string $a_post_var)
 Get item by post var. More...
 
 serializeData ()
 
 unserializeData (string $a_data)
 
 setParentTable ($a_val)
 Set parent table. More...
 
 getParentTable ()
 Get parent table. More...
 
 writeToSession ()
 
 clearFromSession ()
 
 readFromSession ()
 
 getHiddenTag (string $a_post_var, string $a_value)
 
 setMulti (bool $a_multi, bool $a_sortable=false, bool $a_addremove=true)
 
 getMulti ()
 
 setMultiValues (array $a_values)
 
 getMultiValues ()
 
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g. More...
 
 stripSlashesAddSpaceFallback (string $a_str)
 Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More...
 
 getTableFilterLabelFor ()
 Get label "for" attribute value for filter. More...
 
 getFormLabelFor ()
 Get label "for" attribute value for form. More...
 
 setRequestParam (string $key, $val)
 This writes the request (aka post) values. More...
 

Data Fields

string $buttonLabel
 
array $items = []
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters (string $a_text)
 Remove prohibited characters see #19159. More...
 
- Protected Member Functions inherited from ilFormPropertyGUI
 setType (string $a_type)
 
 checkParentFormTable ()
 
 getSessionKey ()
 
 getMultiIconsHTML ()
 
 int ($key)
 
 intArray ($key)
 
 str ($key)
 
 raw ($key)
 
 strArray ($key)
 
 arrayArray ($key)
 
 isRequestParamArray (string $key)
 
 getRequestParam (string $key, Refinery\Transformation $t)
 
- Protected Attributes inherited from ilFormPropertyGUI
array $set_params = []
 
ilTable2GUI $parent_table = null
 
ilFormPropertyGUI $parent_gui = null
 
ilCtrl $ctrl
 
ilLanguage $lng
 
string $type = ""
 
string $title = ""
 
string $postvar = ""
 
string $info = ""
 
string $alert = ""
 
bool $required = false
 
ilPropertyFormGUI $parentform = null
 
string $hidden_title = ""
 
bool $multi = false
 
bool $multi_sortable = false
 
bool $multi_addremove = true
 
array $multi_values = []
 
RequestInterface $request
 
HTTP Services $http
 
Refinery Factory $refinery = null
 
bool $disabled = false
 
ilGlobalTemplateInterface $global_tpl = null
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMailFormAttachmentPropertyGUI::__construct ( string  $buttonLabel)

Definition at line 32 of file class.ilMailFormAttachmentPropertyGUI.php.

References $buttonLabel, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\lng(), and ilFormPropertyGUI\setTitle().

33  {
34  $this->buttonLabel = $buttonLabel;
36  $this->setTitle($this->lng->txt('attachments'));
37  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ addItem()

ilMailFormAttachmentPropertyGUI::addItem ( string  $label)

Definition at line 39 of file class.ilMailFormAttachmentPropertyGUI.php.

39  : void
40  {
41  $this->items[] = $label;
42  }

◆ insert()

ilMailFormAttachmentPropertyGUI::insert ( ilTemplate  $a_tpl)

Definition at line 44 of file class.ilMailFormAttachmentPropertyGUI.php.

References $tpl, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().

44  : void
45  {
46  $tpl = new ilTemplate('tpl.mail_new_attachments.html', true, true, 'Services/Mail');
47 
48  foreach ($this->items as $item) {
49  $tpl->setCurrentBlock('attachment_list_item');
50  $tpl->setVariable('ATTACHMENT_LABEL', $item);
51  $tpl->parseCurrentBlock();
52  }
53  $tpl->setVariable('ATTACHMENT_BUTTON_LABEL', $this->buttonLabel);
54 
55  $a_tpl->setCurrentBlock('prop_generic');
56  $a_tpl->setVariable('PROP_GENERIC', $tpl->get());
57  $a_tpl->parseCurrentBlock();
58  }
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:514
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41
+ Here is the call graph for this function:

Field Documentation

◆ $buttonLabel

string ilMailFormAttachmentPropertyGUI::$buttonLabel

Definition at line 28 of file class.ilMailFormAttachmentPropertyGUI.php.

Referenced by __construct().

◆ $items

array ilMailFormAttachmentPropertyGUI::$items = []

Definition at line 30 of file class.ilMailFormAttachmentPropertyGUI.php.


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