XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
Label.php
Go to the documentation of this file.
1
<?php
2
/*
3
You may not change or alter any portion of this comment or credits
4
of supporting developers from this source code or any supporting source code
5
which is considered copyrighted (c) material of the original comment or credit authors.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
namespace
Xoops\Form
;
13
25
class
Label
extends
Element
26
{
27
35
public
function
__construct
(
$caption
=
''
,
$value
=
''
,
$name
=
''
)
36
{
37
$this->
setCaption
(
$caption
);
38
$this->
setName
(
$name
);
39
$this->
setValue
(
$value
);
40
}
41
47
public
function
render
()
48
{
49
$idName = $this->
getName
();
50
$id
= empty($idName) ?
''
:
' id="'
. $idName .
'"'
;
51
$ret =
'<span'
.
$id
.
'>'
. $this->
getValue
() .
'</span>'
;
52
return
$ret;
53
}
54
}
Xoops\Form\Label\__construct
__construct($caption= '', $value= '', $name= '')
Definition:
Label.php:35
Xoops\Form\Element\setValue
setValue($value)
Definition:
Element.php:199
Xoops\Form\Element\getValue
getValue($encode=false)
Definition:
Element.php:180
Xoops\Form\Element\setCaption
setCaption($caption)
Definition:
Element.php:396
Xoops\Form
Definition:
BlockForm.php:12
$id
$id
Definition:
admin_menu.php:36
Xoops\Form\Element
Definition:
Element.php:28
Xoops\Form\Element\$caption
$caption
Definition:
Element.php:55
Xoops\Form\Label
Definition:
Label.php:25
Xoops\Form\Label\render
render()
Definition:
Label.php:47
Xoops\Form\Element\getName
getName()
Definition:
Element.php:230
$name
$name
Definition:
force_download.php:15
Xoops\Form\Element\$value
$value
Definition:
Element.php:131
Xoops\Form\Element\setName
setName($name)
Definition:
Element.php:220
usr64
htdocs
xoops_lib
Xoops
Form
Label.php
Generated on Fri May 22 2015 03:07:05 for XOOPS by
1.8.9.1