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
4
7
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}
static getConstantValues($postFix="", $prefixBefore=false)
Definition BaseEnum.php:29
Semantic Flag component.
Definition HtmlFlag.php:15
__construct($identifier, $flag)
Definition HtmlFlag.php:18