ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ilButton
 __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...
 
 render ()
 Render HTML. More...
 

Static Public Member Functions

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

Protected Attributes

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

Additional Inherited Members

- Data Fields inherited from ilButton
const TYPE_SUBMIT = 1
 
const TYPE_LINK = 2
 
- Protected Member Functions inherited from ilButton
 __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(), ilSurveyEvaluationGUI\addApprSelectionToToolbar(), ilSurveyParticipantsGUI\codesObject(), ilAdvancedMDSettingsGUI\editFields(), ilSurveyEvaluationGUI\evaluation(), ilSurveyEvaluationGUI\evaluationuser(), ilTestEvaluationGUI\exportFileUploadsForAllParticipants(), ilRepositorySearchGUI\fillAutoCompleteToolbar(), ilConfirmationGUI\getHTML(), ilObjSurveyGUI\infoScreen(), ilListOfQuestionsTableGUI\init(), ilExportGUI\listExportFiles(), ilTestPlayerAbstractGUI\populateLowerNextButtonBlockLeadingToEndOfTest(), ilTestPlayerAbstractGUI\populateLowerNextButtonBlockLeadingToQuestion(), ilTestPlayerAbstractGUI\populateLowerNextButtonBlockLeadingToSummary(), ilTestPlayerAbstractGUI\populateUpperNextButtonBlockLeadingToEndOfTest(), ilTestPlayerAbstractGUI\populateUpperNextButtonBlockLeadingToQuestion(), ilTestPlayerAbstractGUI\populateUpperNextButtonBlockLeadingToSummary(), ilSurveyEditorGUI\questionsObject(), ilObjSurveyQuestionPoolGUI\questionsObject(), ilObjTestGUI\redirectToInfoScreenObject(), ilObjBlogGUI\render(), ilTestEvaluationGUI\resetfilterEvaluation(), ilSurveyExecutionGUI\runShowFinishedPage(), ilWorkspaceAccessGUI\share(), ilMarkSchemaGUI\showMarkSchema(), ilSearchGUI\showSearch(), ilLuceneUserSearchGUI\showSearchForm(), and ilLuceneSearchGUI\showSearchForm().

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 ilButton\getCaption(), and ilButton\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  }
prepareRender()
Prepare render.
getCaption($a_translate=true)
Get caption.
+ 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: