ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilSubmitButton.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
require_once
"Services/UIComponent/Button/classes/class.ilButtonBase.php"
;
5
13
class
ilSubmitButton
extends
ilButtonBase
14
{
15
protected
$cmd
;
// [string]
16
17
public
static
function
getInstance
()
18
{
19
return
new
self
(self::TYPE_SUBMIT);
20
}
21
22
23
//
24
// properties
25
//
26
32
public
function
setCommand
($a_value)
33
{
34
$this->cmd = trim($a_value);
35
}
36
42
public
function
getCommand
()
43
{
44
return
$this->cmd
;
45
}
46
47
48
//
49
// render
50
//
51
52
public
function
render
()
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
}
63
}
ilSubmitButton
Definition:
class.ilSubmitButton.php:13
ilSubmitButton\getCommand
getCommand()
Get submit command.
Definition:
class.ilSubmitButton.php:42
ilButtonBase\getCaption
getCaption($a_translate=true)
Get caption.
Definition:
class.ilButtonBase.php:125
ilButtonBase\prepareRender
prepareRender()
Prepare render.
Definition:
class.ilButtonBase.php:344
ilSubmitButton\getInstance
static getInstance()
Definition:
class.ilSubmitButton.php:17
ilSubmitButton\setCommand
setCommand($a_value)
Set submit command.
Definition:
class.ilSubmitButton.php:32
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilButtonBase
Definition:
class.ilButtonBase.php:13
ilSubmitButton\render
render()
Definition:
class.ilSubmitButton.php:52
php
ilSubmitButton\$cmd
$cmd
Definition:
class.ilSubmitButton.php:15
Services
UIComponent
Button
classes
class.ilSubmitButton.php
Generated on Fri Jan 24 2025 19:01:16 for ILIAS by
1.8.13 (using
Doxyfile
)