@@ -36,12 +36,15 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @param string $attachTo |
38 | 38 | * @param string|array $params |
39 | - * @return $this |
|
39 | + * @return common\components\SimpleComponent |
|
40 | 40 | */ |
41 | 41 | public function popup($attachTo=NULL, $params=NULL) { |
42 | 42 | return $this->addComponent(new Popup($this->js), $attachTo, $params); |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param string $attachTo |
|
47 | + */ |
|
45 | 48 | public function dropdown($attachTo=NULL, $params=NULL) { |
46 | 49 | return $this->addComponent(new Dropdown($this->js), $attachTo, $params); |
47 | 50 | } |
@@ -201,7 +204,7 @@ discard block |
||
201 | 204 | |
202 | 205 | /** |
203 | 206 | * @param string $identifier |
204 | - * @param number $niveau |
|
207 | + * @param integer $niveau |
|
205 | 208 | * @param mixed $content |
206 | 209 | * @param string $type |
207 | 210 | */ |
@@ -4,7 +4,6 @@ |
||
4 | 4 | use Ajax\semantic\html\base\constants\Side; |
5 | 5 | trait AttachedTrait { |
6 | 6 | /** |
7 | - * @param string $side |
|
8 | 7 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
9 | 8 | */ |
10 | 9 | public function setAttachment($value=Side::BOTH){ |
@@ -24,9 +24,9 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | public static function getConstantValues($postFix=""){ |
27 | - if($postFix!=="") |
|
28 | - return \array_values(self::getConstants()); |
|
29 | - else{ |
|
27 | + if($postFix!=="") { |
|
28 | + return \array_values(self::getConstants()); |
|
29 | + } else{ |
|
30 | 30 | return \array_map(function ($elem) use ($postFix) {return $elem." ".$postFix;},\array_values(self::getConstants())); |
31 | 31 | } |
32 | 32 | } |
@@ -11,7 +11,8 @@ |
||
11 | 11 | parent::__construct("div-".$identifier,"div","ui input"); |
12 | 12 | $this->content=new \Ajax\common\html\html5\HtmlInput($identifier,$type); |
13 | 13 | $this->content->setProperty("value", $value); |
14 | - if(JString::isNotNull($placeholder)) |
|
15 | - $this->content->setProperty("placeholder", $placeholder); |
|
14 | + if(JString::isNotNull($placeholder)) { |
|
15 | + $this->content->setProperty("placeholder", $placeholder); |
|
16 | + } |
|
16 | 17 | } |
17 | 18 | } |
18 | 19 | \ No newline at end of file |
@@ -19,8 +19,9 @@ |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | public function asAvatar($caption=NULL){ |
22 | - if(isset($caption)) |
|
23 | - $this->wrap("",$caption); |
|
22 | + if(isset($caption)) { |
|
23 | + $this->wrap("",$caption); |
|
24 | + } |
|
24 | 25 | return $this->addToProperty("class", "avatar"); |
25 | 26 | } |
26 | 27 | } |
27 | 28 | \ No newline at end of file |