@@ -11,23 +11,23 @@ |
||
11 | 11 | use Ajax\semantic\traits\SemanticWidgetsTrait; |
12 | 12 | |
13 | 13 | class Semantic extends BaseGui { |
14 | - use SemanticComponentsTrait,SemanticHtmlElementsTrait,SemanticHtmlCollectionsTrait, |
|
15 | - SemanticHtmlModulesTrait,SemanticHtmlViewsTrait,SemanticWidgetsTrait; |
|
14 | + use SemanticComponentsTrait,SemanticHtmlElementsTrait,SemanticHtmlCollectionsTrait, |
|
15 | + SemanticHtmlModulesTrait,SemanticHtmlViewsTrait,SemanticWidgetsTrait; |
|
16 | 16 | |
17 | - private $language; |
|
17 | + private $language; |
|
18 | 18 | |
19 | - public function __construct($autoCompile=true) { |
|
20 | - parent::__construct($autoCompile); |
|
21 | - } |
|
19 | + public function __construct($autoCompile=true) { |
|
20 | + parent::__construct($autoCompile); |
|
21 | + } |
|
22 | 22 | |
23 | - public function setLanguage($language){ |
|
24 | - if($language!==$this->language){ |
|
25 | - $file=\realpath(dirname(__FILE__)."/semantic/components/validation/languages/".$language.".js"); |
|
26 | - if(\file_exists($file)){ |
|
27 | - $script=\file_get_contents($file); |
|
28 | - $this->js->exec($script,true); |
|
29 | - $this->language=$language; |
|
30 | - } |
|
31 | - } |
|
32 | - } |
|
23 | + public function setLanguage($language){ |
|
24 | + if($language!==$this->language){ |
|
25 | + $file=\realpath(dirname(__FILE__)."/semantic/components/validation/languages/".$language.".js"); |
|
26 | + if(\file_exists($file)){ |
|
27 | + $script=\file_get_contents($file); |
|
28 | + $this->js->exec($script,true); |
|
29 | + $this->language=$language; |
|
30 | + } |
|
31 | + } |
|
32 | + } |
|
33 | 33 | } |
@@ -11,8 +11,8 @@ discard block |
||
11 | 11 | use Ajax\semantic\traits\SemanticWidgetsTrait; |
12 | 12 | |
13 | 13 | class Semantic extends BaseGui { |
14 | - use SemanticComponentsTrait,SemanticHtmlElementsTrait,SemanticHtmlCollectionsTrait, |
|
15 | - SemanticHtmlModulesTrait,SemanticHtmlViewsTrait,SemanticWidgetsTrait; |
|
14 | + use SemanticComponentsTrait, SemanticHtmlElementsTrait, SemanticHtmlCollectionsTrait, |
|
15 | + SemanticHtmlModulesTrait, SemanticHtmlViewsTrait, SemanticWidgetsTrait; |
|
16 | 16 | |
17 | 17 | private $language; |
18 | 18 | |
@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | parent::__construct($autoCompile); |
21 | 21 | } |
22 | 22 | |
23 | - public function setLanguage($language){ |
|
24 | - if($language!==$this->language){ |
|
23 | + public function setLanguage($language) { |
|
24 | + if ($language!==$this->language) { |
|
25 | 25 | $file=\realpath(dirname(__FILE__)."/semantic/components/validation/languages/".$language.".js"); |
26 | - if(\file_exists($file)){ |
|
26 | + if (\file_exists($file)) { |
|
27 | 27 | $script=\file_get_contents($file); |
28 | - $this->js->exec($script,true); |
|
28 | + $this->js->exec($script, true); |
|
29 | 29 | $this->language=$language; |
30 | 30 | } |
31 | 31 | } |