ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSubmitButton Class Reference
+ Inheritance diagram for ilSubmitButton:
+ Collaboration diagram for ilSubmitButton:

Public Member Functions

 setCommand ($a_value)
 Set submit command. More...
 
 getCommand ()
 Get submit command. More...
 
 render ()
 
- Public Member Functions inherited from ilButtonBase
 __clone ()
 Clone instance. More...
 
 getType ()
 Get button type. More...
 
 setId ($a_value)
 Set id. More...
 
 getId ()
 Get id. More...
 
 setCaption ($a_value, $a_is_lng_id=true)
 Set caption. More...
 
 getCaption ($a_translate=true)
 Get caption. More...
 
 setPrimary ($a_value)
 Toggle primary status. More...
 
 isPrimary ()
 Get primary status. More...
 
 setOmitPreventDoubleSubmission ($a_value)
 Toggle double submission prevention status. More...
 
 getOmitPreventDoubleSubmission ()
 Get double submission prevention status. More...
 
 setOnClick ($a_value)
 Set onclick. More...
 
 getOnClick ()
 Get onclick. More...
 
 setAccessKey ($a_value)
 Set access key. More...
 
 getAccessKey ()
 Get access key. More...
 
 setDisabled ($a_value)
 Toggle disabled status. More...
 
 isDisabled ()
 Get disabled status. More...
 
 addCSSClass ($a_value)
 Add CSS class. More...
 
 getCSSClasses ()
 Get CSS class(es) More...
 
 applyDefaultCss ($apply_default_css=null)
 
 render ()
 Render HTML. More...
 
 getToolbarHTML ()
 

Static Public Member Functions

static getInstance ()
 
- Static Public Member Functions inherited from ilButtonBase
static getInstance ()
 Factory. More...
 

Protected Attributes

 $cmd
 
- Protected Attributes inherited from ilButtonBase
 $type
 
 $id
 
 $caption
 
 $caption_is_lng_id
 
 $primary
 
 $omit_prevent_double_submission
 
 $onclick
 
 $acc_key
 
 $disabled
 
 $css = array()
 
 $apply_default_css = true
 

Additional Inherited Members

- Data Fields inherited from ilButtonBase
const TYPE_SUBMIT = 1
 
const TYPE_LINK = 2
 
const TYPE_SPLIT = 3
 
const TYPE_BUTTON = 4
 
- Protected Member Functions inherited from ilButtonBase
 __construct ($a_type)
 Constructor. More...
 
 setType ($a_value)
 Set button type. More...
 
 gatherCssClasses ()
 Gather all active CSS classes. More...
 
 renderAttributesHelper (array $a_attr)
 Render HTML node attributes. More...
 
 renderAttributes (array $a_additional_attr=null)
 Render current HTML attributes. More...
 
 prepareRender ()
 Prepare render. More...
 

Detailed Description

Definition at line 13 of file class.ilSubmitButton.php.

Member Function Documentation

◆ getCommand()

ilSubmitButton::getCommand ( )

Get submit command.

Parameters
string$a_value

Definition at line 42 of file class.ilSubmitButton.php.

References $cmd.

43  {
44  return $this->cmd;
45  }

◆ getInstance()

static ilSubmitButton::getInstance ( )
static

Definition at line 17 of file class.ilSubmitButton.php.

Referenced by ilAccountCodesTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilSurveyCodesTableGUI\__construct(), ilMDEditorGUI\__setTabs(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilToolbarGUI\addFormButton(), ilSystemStyleIconsGUI\addSelectIconToolbar(), ilToolbarGUI\applyAutoStickyToSingleElement(), ilTestInfoScreenToolbarGUI\build(), ilCertificateGUI\certificateEditor(), ilSurveyParticipantsGUI\codesObject(), ilDclRecordListGUI\createSwitchers(), ilDclTableEditGUI\createTableSwitcher(), ilSystemStyleOverviewGUI\edit(), ilAdvancedMDSettingsGUI\editFields(), ilSurveyEvaluationGUI\evaluation(), ilTestEvaluationGUI\exportFileUploadsForAllParticipants(), ilStudyProgrammeRepositorySearchGUI\fillAutoCompleteToolbar(), ilRepositorySearchGUI\fillAutoCompleteToolbar(), ilNewsTimelineGUI\getDeleteModal(), ilConfirmationGUI\getHTML(), ilObjSurveyGUI\infoScreen(), ilListOfQuestionsTableGUI\init(), ilExAssignmentEditorGUI\listAssignmentsObject(), ilExportGUI\listExportFiles(), ilObjectOwnershipManagementGUI\listObjects(), ilPDSelectedItemsBlockGUI\manageObject(), ilExerciseManagementGUI\membersObject(), ilTestPlayerAbstractGUI\populateDiscardSolutionModal(), ilSurveyEditorGUI\printViewObject(), ilSurveyEditorGUI\questionsObject(), ilObjSurveyQuestionPoolGUI\questionsObject(), ilObjBlogGUI\render(), ilTestQuestionNavigationGUI\renderSubmitButton(), ilTestEvaluationGUI\resetfilterEvaluation(), ilSurveyExecutionGUI\runShowFinishedPage(), ilWorkspaceAccessGUI\share(), ilDclTableViewGUI\show(), ilContainerGUI\showAdministrationPanel(), ilMarkSchemaGUI\showMarkSchema(), ilExerciseManagementGUI\showParticipantObject(), ilContainerGUI\showPasteTreeObject(), ilSearchGUI\showSearch(), ilLuceneUserSearchGUI\showSearchForm(), ilLuceneSearchGUI\showSearchForm(), ilContactGUI\showSubTabs(), and ilExcCriteriaGUI\view().

18  {
19  return new self(self::TYPE_SUBMIT);
20  }
+ Here is the caller graph for this function:

◆ render()

ilSubmitButton::render ( )

Definition at line 52 of file class.ilSubmitButton.php.

References array, ilButtonBase\getCaption(), and ilButtonBase\prepareRender().

53  {
54  $this->prepareRender();
55 
56  $attr = array();
57  $attr["type"] = "submit";
58  $attr["name"] = "cmd[".$this->getCommand()."]";
59  $attr["value"] = $this->getCaption();
60 
61  return '<input'.$this->renderAttributes($attr).' />';
62  }
getCaption($a_translate=true)
Get caption.
prepareRender()
Prepare render.
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ setCommand()

ilSubmitButton::setCommand (   $a_value)

Set submit command.

Parameters
string$a_value

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

Referenced by assFileUploadFileTableGUI\initCommand().

33  {
34  $this->cmd = trim($a_value);
35  }
+ Here is the caller graph for this function:

Field Documentation

◆ $cmd

ilSubmitButton::$cmd
protected

Definition at line 15 of file class.ilSubmitButton.php.

Referenced by getCommand().


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