ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSubmitButton Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilSubmitButton:
+ Collaboration diagram for ilSubmitButton:

Public Member Functions

 setCommand (string $a_value)
 Set submit command. More...
 
 getCommand ()
 
 render ()
 
- Public Member Functions inherited from ilButtonBase
 __clone ()
 
 getType ()
 
 setId (?string $a_value)
 
 getId ()
 
 setCaption (string $a_value, bool $a_is_lng_id=true)
 
 getCaption (bool $a_translate=true)
 
 setPrimary (bool $a_value)
 
 isPrimary ()
 
 setOmitPreventDoubleSubmission (bool $a_value)
 Toggle double submission prevention status. More...
 
 getOmitPreventDoubleSubmission ()
 
 setOnClick (string $a_value)
 
 getOnClick ()
 
 setDisabled (bool $a_value)
 
 isDisabled ()
 
 addCSSClass (string $a_value)
 
 getCSSClasses ()
 
 applyDefaultCss (?bool $apply_default_css=null)
 
 render ()
 
 getToolbarHTML ()
 Get input item HTML to be inserted into ilToolbarGUI. More...
 

Static Public Member Functions

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

Protected Attributes

string $cmd = ""
 
- Protected Attributes inherited from ilButtonBase
ilLanguage $lng
 
int $type = 0
 
string $id = ""
 
string $caption = ""
 
bool $caption_is_lng_id = false
 
bool $primary = false
 
bool $omit_prevent_double_submission = false
 
string $onclick = ""
 
int $acc_key = 0
 
bool $disabled = false
 
array $css = array()
 
bool $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 (int $a_type)
 
 setType (int $a_value)
 
 gatherCssClasses ()
 
 renderAttributesHelper (array $a_attr)
 
 renderAttributes (?array $a_additional_attr=null)
 Render current HTML attributes. More...
 
 prepareRender ()
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Submit Button GUI

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Deprecated:
9 Use KS Buttons instead

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

Member Function Documentation

◆ getCommand()

ilSubmitButton::getCommand ( )

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

References $cmd.

Referenced by render().

47  : string
48  {
49  return $this->cmd;
50  }
+ Here is the caller graph for this function:

◆ getInstance()

static ilSubmitButton::getInstance ( )
static

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

Referenced by ilToolbarGUI\addFormButton(), ilToolbarGUI\applyAutoStickyToSingleElement(), ilRepositorySearchGUI\fillAutoCompleteToolbar(), ilConfirmationGUI\getHTML(), and ilSearchBaseGUI\renderSearch().

29  : self
30  {
31  return new self(self::TYPE_SUBMIT);
32  }
+ Here is the caller graph for this function:

◆ render()

ilSubmitButton::render ( )

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

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

57  : string
58  {
59  $this->prepareRender();
60 
61  $attr = array();
62  $attr["type"] = "submit";
63  $attr["name"] = "cmd[" . $this->getCommand() . "]";
64  $attr["value"] = $this->getCaption();
65 
66  return '<input' . $this->renderAttributes($attr) . ' />';
67  }
renderAttributes(?array $a_additional_attr=null)
Render current HTML attributes.
getCaption(bool $a_translate=true)
+ Here is the call graph for this function:

◆ setCommand()

ilSubmitButton::setCommand ( string  $a_value)

Set submit command.

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

42  : void
43  {
44  $this->cmd = trim($a_value);
45  }

Field Documentation

◆ $cmd

string ilSubmitButton::$cmd = ""
protected

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

Referenced by getCommand().


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