@@ -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 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | private $language; |
18 | 18 | |
19 | - private $style; |
|
19 | + private $style; |
|
20 | 20 | |
21 | 21 | public function __construct($autoCompile=true) { |
22 | 22 | parent::__construct($autoCompile); |
@@ -34,25 +34,25 @@ discard block |
||
34 | 34 | } |
35 | 35 | } |
36 | 36 | |
37 | - public function compile($internal = false) { |
|
38 | - if($this->style!=null){ |
|
39 | - parent::compile($internal); |
|
40 | - }else { |
|
41 | - if ($internal === false && $this->autoCompile === true) |
|
42 | - throw new \Exception("Impossible to compile if autoCompile is set to 'true'"); |
|
43 | - $style=$this->style; |
|
44 | - foreach ($this->components as $component) { |
|
45 | - $component->addToProperty("class", $style); |
|
46 | - $component->compile(); |
|
47 | - } |
|
48 | - } |
|
49 | - } |
|
50 | - |
|
51 | - public function setStyle($style='inverted'){ |
|
52 | - $this->style=$style; |
|
53 | - } |
|
54 | - |
|
55 | - public function getStyle(){ |
|
56 | - return $this->style; |
|
57 | - } |
|
37 | + public function compile($internal = false) { |
|
38 | + if($this->style!=null){ |
|
39 | + parent::compile($internal); |
|
40 | + }else { |
|
41 | + if ($internal === false && $this->autoCompile === true) |
|
42 | + throw new \Exception("Impossible to compile if autoCompile is set to 'true'"); |
|
43 | + $style=$this->style; |
|
44 | + foreach ($this->components as $component) { |
|
45 | + $component->addToProperty("class", $style); |
|
46 | + $component->compile(); |
|
47 | + } |
|
48 | + } |
|
49 | + } |
|
50 | + |
|
51 | + public function setStyle($style='inverted'){ |
|
52 | + $this->style=$style; |
|
53 | + } |
|
54 | + |
|
55 | + public function getStyle(){ |
|
56 | + return $this->style; |
|
57 | + } |
|
58 | 58 | } |