ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilUploadDefinitionForm Class Reference

PhpIncludeInspection More...

+ Collaboration diagram for ilUploadDefinitionForm:

Public Member Functions

 getForm ($action)
 

Protected Attributes

 $form
 
 $lng
 

Detailed Description

PhpIncludeInspection

Upload definition

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

/

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

Member Function Documentation

◆ getForm()

ilUploadDefinitionForm::getForm (   $action)

Definition at line 31 of file class.ilUploadDefinitionForm.php.

References $action, $form, array, and ilFileInputGUI\setSuffixes().

32  {
33  $this->form = new ilPropertyFormGUI();
34  $this->form->setFormAction($action);
35  $this->form->setTitle($this->lng->txt('upload_process'));
36 
37  $upload_input = new ilFileInputGUI($this->lng->txt('process_definition_file'), 'process_file');
38  $upload_input->setSuffixes(array('xml','bpmn','bpmn2'));
39  $upload_input->setInfo($this->lng->txt('process_definition_file_info'));
40  $upload_input->setRequired(true);
41  $this->form->addItem($upload_input);
42 
43  $this->form->addCommandButton('upload', $this->lng->txt('upload_process'));
44  $this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
45 
46  return $this->form;
47  }
This class represents a property form user interface.
$action
This class represents a file property in a property form.
Create styles array
The data for the language used.
setSuffixes($a_suffixes)
Set Accepted Suffixes.
+ Here is the call graph for this function:

Field Documentation

◆ $form

ilUploadDefinitionForm::$form
protected

Definition at line 19 of file class.ilUploadDefinitionForm.php.

Referenced by getForm().

◆ $lng

ilUploadDefinitionForm::$lng
protected

Definition at line 22 of file class.ilUploadDefinitionForm.php.


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