ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilJsLinkButton.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.ilButton.php"
;
5
12
class
ilJsLinkButton
extends
ilButton
13
{
14
protected
$target
;
15
16
public
static
function
getInstance
()
17
{
18
return
new
self
(self::TYPE_LINK);
19
}
20
25
public
function
setTarget
($a_value)
26
{
27
$this->target = trim($a_value);
28
}
29
34
public
function
getTarget
()
35
{
36
return
$this->target
;
37
}
38
43
protected
function
renderCaption
()
44
{
45
return
' '
. $this->
getCaption
() .
' '
;
46
}
47
48
public
function
render
()
49
{
50
$this->
prepareRender
();
51
52
$attr =
array
();
53
54
$attr[
"target"
] = $this->
getTarget
();
55
$attr[
"name"
] = $this->
getName
();
56
$attr[
"onclick"
] = $this->
getOnClick
();
57
58
return
'<a'
. $this->
renderAttributes
($attr) .
'>'
.
59
$this->
renderCaption
() .
'</a>'
;
60
}
61
}
ilButton\getName
getName()
Definition:
class.ilButton.php:400
ilJsLinkButton\getTarget
getTarget()
Get target.
Definition:
class.ilJsLinkButton.php:34
ilButtonBase\getOnClick
getOnClick()
Get onclick.
Definition:
class.ilButtonBase.php:195
ilJsLinkButton\$target
$target
Definition:
class.ilJsLinkButton.php:14
ilButton
Definition:
class.ilButton.php:11
ilButtonBase\getCaption
getCaption($a_translate=true)
Get caption.
Definition:
class.ilButtonBase.php:125
ilButtonBase\prepareRender
prepareRender()
Prepare render.
Definition:
class.ilButtonBase.php:344
ilJsLinkButton\render
render()
Definition:
class.ilJsLinkButton.php:48
ilJsLinkButton\getInstance
static getInstance()
Definition:
class.ilJsLinkButton.php:16
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilJsLinkButton
Definition:
class.ilJsLinkButton.php:12
ilJsLinkButton\setTarget
setTarget($a_value)
Set target.
Definition:
class.ilJsLinkButton.php:25
ilButtonBase\renderAttributes
renderAttributes(array $a_additional_attr=null)
Render current HTML attributes.
Definition:
class.ilButtonBase.php:315
php
ilJsLinkButton\renderCaption
renderCaption()
Prepare caption for render.
Definition:
class.ilJsLinkButton.php:43
Services
UIComponent
Button
classes
class.ilJsLinkButton.php
Generated on Fri Jan 24 2025 19:01:16 for ILIAS by
1.8.13 (using
Doxyfile
)