phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
DeInstanceViewer.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\widgets\dataelement
;
4
5
use
Ajax\semantic\widgets\base\InstanceViewer
;
6
use
Ajax\semantic\html\collections\form\HtmlFormField
;
7
use
Ajax\semantic\html\base\HtmlSemDoubleElement
;
8
9
class
DeInstanceViewer
extends
InstanceViewer
{
10
11
public
function
__construct
($identifier,
$instance
=
NULL
,
$captions
=
NULL
) {
12
parent::__construct($identifier,
$instance
,
$captions
);
13
}
14
15
public
function
getValue
(
$index
){
16
$result
=parent::getValue(
$index
);
17
if
(
$result
instanceof
HtmlFormField
){
18
$lbl
=
new
HtmlSemDoubleElement
(
"lbl-"
.$this->
widgetIdentifier
.
"-"
.
$index
,
"label"
,
""
,
$this
->getCaption(
$index
));
19
$lbl
->setProperty(
"for"
,
$result
->getDataField()->getIdentifier());
20
$this->
captions
[
$index
]=
$lbl
;
21
}
22
return
$result
;
23
}
24
}
Ajax\semantic\html\base\HtmlSemDoubleElement
Base class for Semantic double elements.
Definition
HtmlSemDoubleElement.php:23
Ajax\semantic\html\collections\form\HtmlFormField
Definition
HtmlFormField.php:15
Ajax\semantic\widgets\base\InstanceViewer
Definition
InstanceViewer.php:8
Ajax\semantic\widgets\base\InstanceViewer\$index
static $index
Definition
InstanceViewer.php:32
Ajax\semantic\widgets\base\InstanceViewer\$captions
$captions
Definition
InstanceViewer.php:24
Ajax\semantic\widgets\base\InstanceViewer\$instance
$instance
Definition
InstanceViewer.php:12
Ajax\semantic\widgets\dataelement\DeInstanceViewer
Definition
DeInstanceViewer.php:9
Ajax\semantic\widgets\dataelement\DeInstanceViewer\__construct
__construct($identifier, $instance=NULL, $captions=NULL)
Definition
DeInstanceViewer.php:11
Ajax\semantic\widgets\dataelement\DeInstanceViewer\getValue
getValue($index)
Definition
DeInstanceViewer.php:15
Ajax\semantic\widgets\dataelement
Definition
DataElement.php:3
Ajax
semantic
widgets
dataelement
DeInstanceViewer.php
Generated on Sun Dec 10 2023 16:16:10 for
phpMv-UI
by
doxygen
1.9.8