ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilSubmitButton.php
Go to the documentation of this file.
1
<?php
2
25
class
ilSubmitButton
extends
ilButtonBase
26
{
27
protected
string
$cmd
=
""
;
28
29
public
static
function
getInstance
(): self
30
{
31
return
new
self
(self::TYPE_SUBMIT);
32
}
33
34
35
//
36
// properties
37
//
38
42
public
function
setCommand
(
string
$a_value): void
43
{
44
$this->cmd = trim($a_value);
45
}
46
47
public
function
getCommand
(): string
48
{
49
return
$this->cmd
;
50
}
51
52
53
//
54
// render
55
//
56
57
public
function
render
(): 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
}
68
}
ilSubmitButton
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilSubmitButton.php:25
ilSubmitButton\getCommand
getCommand()
Definition:
class.ilSubmitButton.php:47
ilSubmitButton\setCommand
setCommand(string $a_value)
Set submit command.
Definition:
class.ilSubmitButton.php:42
ilButtonBase\prepareRender
prepareRender()
Definition:
class.ilButtonBase.php:213
ilSubmitButton\getInstance
static getInstance()
Definition:
class.ilSubmitButton.php:29
ilSubmitButton\$cmd
string $cmd
Definition:
class.ilSubmitButton.php:27
ilButtonBase\renderAttributes
renderAttributes(array $a_additional_attr=null)
Render current HTML attributes.
Definition:
class.ilButtonBase.php:195
ilButtonBase
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilButtonBase.php:25
ilSubmitButton\render
render()
Definition:
class.ilSubmitButton.php:57
ilButtonBase\getCaption
getCaption(bool $a_translate=true)
Definition:
class.ilButtonBase.php:90
Services
UIComponent
Button
classes
class.ilSubmitButton.php
Generated on Sun Aug 31 2025 22:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)