ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 ()
 Render HTML. More...
 
- 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 ()
 
 getToolbarHTML ()
 Get input item HTML to be inserted into ilToolbarGUI. More...
 

Static Public Member Functions

static getInstance ()
 Factory. More...
 
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.

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

References $cmd.

◆ getInstance()

static ilSubmitButton::getInstance ( )
static

Factory.

Returns
self

Reimplemented from ilButtonBase.

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

18 {
19 return new self(self::TYPE_SUBMIT);
20 }

References ilButtonBase\TYPE_SUBMIT.

Referenced by ilSurveyCodesTableGUI\__construct(), ilAccountCodesTableGUI\__construct(), ilWikiExportOrderTableGUI\__construct(), ilMDEditorGUI\__setTabs(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilToolbarGUI\addFormButton(), ilToolbarGUI\applyAutoStickyToSingleElement(), ilSurveyParticipantsGUI\codesObject(), ilAdvancedMDSettingsGUI\editFields(), ilSurveyEvaluationGUI\evaluation(), ilSurveyEvaluationGUI\evaluationuser(), ilStudyProgrammeRepositorySearchGUI\fillAutoCompleteToolbar(), ilRepositorySearchGUI\fillAutoCompleteToolbar(), ilConfirmationGUI\getHTML(), ilObjSurveyGUI\infoScreen(), ilListOfQuestionsTableGUI\init(), ilExAssignmentEditorGUI\listAssignmentsObject(), ilExportGUI\listExportFiles(), ilObjectOwnershipManagementGUI\listObjects(), ilPDSelectedItemsBlockGUI\manageObject(), ilExerciseManagementGUI\membersObject(), ilTestPlayerAbstractGUI\populateDiscardSolutionModal(), ilTestPlayerAbstractGUI\populateNavWhileEditModal(), ilSurveyEditorGUI\printViewObject(), ilObjSurveyQuestionPoolGUI\questionsObject(), ilSurveyEditorGUI\questionsObject(), ilObjBlogGUI\render(), ilTestQuestionNavigationGUI\renderSubmitButton(), ilSurveyExecutionGUI\runShowFinishedPage(), ilWorkspaceAccessGUI\share(), ilMarkSchemaGUI\showMarkSchema(), ilExerciseManagementGUI\showParticipantObject(), ilContainerGUI\showPasteTreeObject(), ilSearchGUI\showSearch(), ilLuceneSearchGUI\showSearchForm(), ilLuceneUserSearchGUI\showSearchForm(), and ilExcCriteriaGUI\view().

+ Here is the caller graph for this function:

◆ render()

ilSubmitButton::render ( )

Render HTML.

Returns
string

Reimplemented from ilButtonBase.

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

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 }
prepareRender()
Prepare render
getCaption($a_translate=true)
Get caption.

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

+ 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.

33 {
34 $this->cmd = trim($a_value);
35 }

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: