phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlFlag.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\html\elements
;
4
5
use
Ajax\common\html\HtmlSingleElement
;
6
use
Ajax\semantic\html\base\constants\Country
;
7
15
class
HtmlFlag
extends
HtmlSingleElement
{
16
protected
$flag
;
17
18
public
function
__construct
(
$identifier
,
$flag
) {
19
parent::__construct(
$identifier
,
"i"
);
20
$this->_template=
'<i class="%flag% flag"></i>'
;
21
$this->flag=
$flag
;
22
}
23
24
public
function
setFlag
(
$flag
) {
25
$this->flag=
$flag
;
26
}
27
28
public
static
function
France
() {
29
return
new
HtmlFlag
(
""
,
Country::FRANCE
);
30
}
31
32
public
static
function
byNum
($num) {
33
return
new
HtmlFlag
(
""
,
Country::getConstantValues
()[$num]);
34
}
35
}
Ajax\common\BaseEnum\getConstantValues
static getConstantValues($postFix="", $prefixBefore=false)
Definition
BaseEnum.php:29
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\HtmlSingleElement
Definition
HtmlSingleElement.php:7
Ajax\semantic\html\base\constants\Country
Definition
Country.php:7
Ajax\semantic\html\base\constants\Country\FRANCE
const FRANCE
Definition
Country.php:8
Ajax\semantic\html\elements\HtmlFlag
Semantic Flag component.
Definition
HtmlFlag.php:15
Ajax\semantic\html\elements\HtmlFlag\byNum
static byNum($num)
Definition
HtmlFlag.php:32
Ajax\semantic\html\elements\HtmlFlag\setFlag
setFlag($flag)
Definition
HtmlFlag.php:24
Ajax\semantic\html\elements\HtmlFlag\France
static France()
Definition
HtmlFlag.php:28
Ajax\semantic\html\elements\HtmlFlag\__construct
__construct($identifier, $flag)
Definition
HtmlFlag.php:18
Ajax\semantic\html\elements\HtmlFlag\$flag
$flag
Definition
HtmlFlag.php:16
Ajax\semantic\html\elements
Ajax
semantic
html
elements
HtmlFlag.php
Generated on Sun Dec 10 2023 16:16:07 for
phpMv-UI
by
doxygen
1.9.8