@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @param string CSS custom style string. |
|
42 | + * @param string string custom style string. |
|
43 | 43 | * @param array CSS style as name-value array. |
44 | 44 | */ |
45 | 45 | protected function getStyleFromString($string) |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | { |
33 | 33 | if(!($obj instanceof TStyle)) |
34 | 34 | return []; |
35 | - $style = $obj->getStyleFields(); |
|
36 | - $style = array_merge($style, $this->getStyleFromString($obj->getCustomStyle())); |
|
35 | + $style=$obj->getStyleFields(); |
|
36 | + $style=array_merge($style, $this->getStyleFromString($obj->getCustomStyle())); |
|
37 | 37 | if($obj->hasFont()) |
38 | - $style = array_merge($style, $this->getStyleFromString($obj->getFont()->toString())); |
|
38 | + $style=array_merge($style, $this->getStyleFromString($obj->getFont()->toString())); |
|
39 | 39 | return $style; |
40 | 40 | } |
41 | 41 | |
@@ -45,14 +45,14 @@ discard block |
||
45 | 45 | */ |
46 | 46 | protected function getStyleFromString($string) |
47 | 47 | { |
48 | - $style = []; |
|
48 | + $style=[]; |
|
49 | 49 | if(!is_string($string)) return $style; |
50 | 50 | |
51 | 51 | foreach(explode(';', $string) as $sub) |
52 | 52 | { |
53 | - $arr = explode(':', $sub); |
|
54 | - if(isset($arr[1]) && trim($arr[0]) !== '') |
|
55 | - $style[trim($arr[0])] = trim($arr[1]); |
|
53 | + $arr=explode(':', $sub); |
|
54 | + if(isset($arr[1]) && trim($arr[0])!=='') |
|
55 | + $style[trim($arr[0])]=trim($arr[1]); |
|
56 | 56 | } |
57 | 57 | return $style; |
58 | 58 | } |
@@ -62,14 +62,14 @@ discard block |
||
62 | 62 | */ |
63 | 63 | protected function getCssClassDiff() |
64 | 64 | { |
65 | - if($this->_old === null) |
|
65 | + if($this->_old===null) |
|
66 | 66 | { |
67 | - return ($this->_new !== null) && $this->_new->hasCssClass() |
|
67 | + return ($this->_new!==null) && $this->_new->hasCssClass() |
|
68 | 68 | ? $this->_new->getCssClass() : null; |
69 | 69 | } |
70 | 70 | else |
71 | 71 | { |
72 | - return $this->_old->getCssClass() !== $this->_new->getCssClass() ? |
|
72 | + return $this->_old->getCssClass()!==$this->_new->getCssClass() ? |
|
73 | 73 | $this->_new->getCssClass() : null; |
74 | 74 | } |
75 | 75 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | protected function getStyleDiff() |
81 | 81 | { |
82 | - $diff = array_diff_assoc( |
|
82 | + $diff=array_diff_assoc( |
|
83 | 83 | $this->getCombinedStyle($this->_new), |
84 | 84 | $this->getCombinedStyle($this->_old)); |
85 | 85 | return count($diff) > 0 ? $diff : null; |
@@ -90,13 +90,13 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function getDifference() |
92 | 92 | { |
93 | - if($this->_new === null) |
|
93 | + if($this->_new===null) |
|
94 | 94 | return $this->_null; |
95 | 95 | else |
96 | 96 | { |
97 | - $css = $this->getCssClassDiff(); |
|
98 | - $style = $this->getStyleDiff(); |
|
99 | - if(($css !== null) || ($style !== null)) |
|
97 | + $css=$this->getCssClassDiff(); |
|
98 | + $style=$this->getStyleDiff(); |
|
99 | + if(($css!==null) || ($style!==null)) |
|
100 | 100 | return ['CssClass' => $css, 'Style' => $style]; |
101 | 101 | else |
102 | 102 | $this->_null; |
@@ -66,8 +66,7 @@ |
||
66 | 66 | { |
67 | 67 | return ($this->_new !== null) && $this->_new->hasCssClass() |
68 | 68 | ? $this->_new->getCssClass() : null; |
69 | - } |
|
70 | - else |
|
69 | + } else |
|
71 | 70 | { |
72 | 71 | return $this->_old->getCssClass() !== $this->_new->getCssClass() ? |
73 | 72 | $this->_new->getCssClass() : null; |
@@ -24,6 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | /** |
26 | 26 | * Performs databinding. |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function dataBind(); |
29 | 30 | } |
30 | 31 | \ No newline at end of file |
@@ -31,6 +31,8 @@ discard block |
||
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @param string caption of the button |
34 | + * @param string $value |
|
35 | + * @return void |
|
34 | 36 | */ |
35 | 37 | public function setText($value); |
36 | 38 | |
@@ -41,6 +43,7 @@ discard block |
||
41 | 43 | |
42 | 44 | /** |
43 | 45 | * @param boolean whether postback event trigger by this button will cause input validation |
46 | + * @return void |
|
44 | 47 | */ |
45 | 48 | public function setCausesValidation($value); |
46 | 49 | |
@@ -51,6 +54,7 @@ discard block |
||
51 | 54 | |
52 | 55 | /** |
53 | 56 | * @param string the command name associated with the {@link onCommand OnCommand} event. |
57 | + * @return void |
|
54 | 58 | */ |
55 | 59 | public function setCommandName($value); |
56 | 60 | |
@@ -61,6 +65,7 @@ discard block |
||
61 | 65 | |
62 | 66 | /** |
63 | 67 | * @param string the parameter associated with the {@link onCommand OnCommand} event. |
68 | + * @return void |
|
64 | 69 | */ |
65 | 70 | public function setCommandParameter($value); |
66 | 71 | |
@@ -71,23 +76,27 @@ discard block |
||
71 | 76 | |
72 | 77 | /** |
73 | 78 | * @param string the group of validators which the button causes validation upon postback |
79 | + * @return void |
|
74 | 80 | */ |
75 | 81 | public function setValidationGroup($value); |
76 | 82 | |
77 | 83 | /** |
78 | 84 | * Raises <b>OnClick</b> event. |
79 | 85 | * @param TEventParameter event parameter to be passed to the event handlers |
86 | + * @return void |
|
80 | 87 | */ |
81 | 88 | public function onClick($param); |
82 | 89 | |
83 | 90 | /** |
84 | 91 | * Raises <b>OnCommand</b> event. |
85 | 92 | * @param TCommandEventParameter event parameter to be passed to the event handlers |
93 | + * @return void |
|
86 | 94 | */ |
87 | 95 | public function onCommand($param); |
88 | 96 | |
89 | 97 | /** |
90 | 98 | * @param boolean set by a panel to register this button as the default button for the panel. |
99 | + * @return void |
|
91 | 100 | */ |
92 | 101 | public function setIsDefaultButton($value); |
93 | 102 |
@@ -25,15 +25,18 @@ |
||
25 | 25 | { |
26 | 26 | /** |
27 | 27 | * @param TPage the page that this persister works for |
28 | + * @return TPage |
|
28 | 29 | */ |
29 | 30 | public function getPage(); |
30 | 31 | /** |
31 | 32 | * @param TPage the page that this persister works for |
33 | + * @return void |
|
32 | 34 | */ |
33 | 35 | public function setPage(TPage $page); |
34 | 36 | /** |
35 | 37 | * Saves state to persistent storage. |
36 | 38 | * @param mixed state to be stored |
39 | + * @return void |
|
37 | 40 | */ |
38 | 41 | public function save($state); |
39 | 42 | /** |
@@ -27,6 +27,7 @@ |
||
27 | 27 | * The implementation of this function should raise appropriate event(s) (e.g. OnClick, OnCommand) |
28 | 28 | * indicating the component is responsible for the postback event. |
29 | 29 | * @param string the parameter associated with the postback event |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function raisePostBackEvent($param); |
32 | 33 | } |
33 | 34 | \ No newline at end of file |
@@ -26,6 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * Renders the component to end-users. |
28 | 28 | * @param ITextWriter writer for the rendering purpose |
29 | + * @return void |
|
29 | 30 | */ |
30 | 31 | public function render($writer); |
31 | 32 | } |
32 | 33 | \ No newline at end of file |
@@ -28,6 +28,7 @@ |
||
28 | 28 | * Content in the template will be instantiated as components and text strings |
29 | 29 | * and passed to the specified parent control. |
30 | 30 | * @param TControl the parent control |
31 | + * @return void |
|
31 | 32 | */ |
32 | 33 | public function instantiateIn($parent); |
33 | 34 | } |
34 | 35 | \ No newline at end of file |
@@ -25,6 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * Applies this theme to the specified control. |
27 | 27 | * @param TControl the control to be applied with this theme |
28 | + * @return boolean |
|
28 | 29 | */ |
29 | 30 | public function applySkin($control); |
30 | 31 | } |
31 | 32 | \ No newline at end of file |
@@ -35,6 +35,7 @@ discard block |
||
35 | 35 | public function getIsValid(); |
36 | 36 | /** |
37 | 37 | * @param boolean whether the validator validates successfully |
38 | + * @return void |
|
38 | 39 | */ |
39 | 40 | public function setIsValid($value); |
40 | 41 | /** |
@@ -43,6 +44,7 @@ discard block |
||
43 | 44 | public function getErrorMessage(); |
44 | 45 | /** |
45 | 46 | * @param string error message for the validation |
47 | + * @return void |
|
46 | 48 | */ |
47 | 49 | public function setErrorMessage($value); |
48 | 50 | } |
49 | 51 | \ No newline at end of file |