phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Semantic.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Ajax;
4 
12 
13 class Semantic extends BaseGui {
16 
17  private $language;
18 
19  public function __construct($autoCompile=true) {
20  parent::__construct($autoCompile);
21  }
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  }
33 }
BaseGui Phalcon library.
Definition: BaseGui.php:18
__construct($autoCompile=true)
Definition: Semantic.php:19
setLanguage($language)
Definition: Semantic.php:23