@@ -99,12 +99,12 @@ |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * Adds an image |
|
| 103 | - * @param string $src |
|
| 104 | - * @param string $alt |
|
| 105 | - * @param boolean $before |
|
| 106 | - * @return HtmlImg |
|
| 107 | - */ |
|
| 102 | + * Adds an image |
|
| 103 | + * @param string $src |
|
| 104 | + * @param string $alt |
|
| 105 | + * @param boolean $before |
|
| 106 | + * @return HtmlImg |
|
| 107 | + */ |
|
| 108 | 108 | public function addImage($src, $alt="", $before=true) { |
| 109 | 109 | $img=new HtmlImg("image-" . $this->identifier, $src, $alt); |
| 110 | 110 | $img->setClass(""); |
@@ -50,14 +50,14 @@ |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * render the content of $controller::$action and set the response to a new panel |
|
| 54 | - * @param JsUtils $js |
|
| 55 | - * @param string $title The panel title |
|
| 56 | - * @param object $initialController |
|
| 57 | - * @param string $controller a Phalcon controller |
|
| 58 | - * @param string $action a Phalcon action |
|
| 59 | - * @param array $params |
|
| 60 | - */ |
|
| 53 | + * render the content of $controller::$action and set the response to a new panel |
|
| 54 | + * @param JsUtils $js |
|
| 55 | + * @param string $title The panel title |
|
| 56 | + * @param object $initialController |
|
| 57 | + * @param string $controller a Phalcon controller |
|
| 58 | + * @param string $action a Phalcon action |
|
| 59 | + * @param array $params |
|
| 60 | + */ |
|
| 61 | 61 | public function forwardPanel(JsUtils $js,$title,$initialController,$controller,$action,$params=array()){ |
| 62 | 62 | return $this->addPanel($title, $js->forward($initialController, $controller, $action,$params)); |
| 63 | 63 | } |
@@ -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 | } |
@@ -93,8 +93,8 @@ |
||
| 93 | 93 | public function getHtmlComponent($identifier){ |
| 94 | 94 | return $this->htmlComponents[$identifier]??''; |
| 95 | 95 | } |
| 96 | - public function clearComponents(){ |
|
| 97 | - $this->components=[]; |
|
| 98 | - $this->htmlComponents=[]; |
|
| 99 | - } |
|
| 96 | + public function clearComponents(){ |
|
| 97 | + $this->components=[]; |
|
| 98 | + $this->htmlComponents=[]; |
|
| 99 | + } |
|
| 100 | 100 | } |