@@ -99,6 +99,7 @@ |
||
99 | 99 | * Calls the client-side static method for this control class. |
100 | 100 | * @param string static method name |
101 | 101 | * @param mixed method parmaeter |
102 | + * @param string $func |
|
102 | 103 | */ |
103 | 104 | protected function callClientFunction($func,$value) |
104 | 105 | { |
@@ -92,6 +92,8 @@ discard block |
||
92 | 92 | * Calls the client-side static method for this control class. |
93 | 93 | * @param string static method name |
94 | 94 | * @param mixed method parmaeter |
95 | + * @param string $func |
|
96 | + * @param boolean $value |
|
95 | 97 | */ |
96 | 98 | protected function callClientFunction($func,$value) |
97 | 99 | { |
@@ -239,6 +241,7 @@ discard block |
||
239 | 241 | * Raised when editing the content is requsted to be loaded from the |
240 | 242 | * server side. |
241 | 243 | * @param TCallbackEventParameter event parameter to be passed to the event handlers |
244 | + * @param TCallbackEventParameter $param |
|
242 | 245 | */ |
243 | 246 | public function onLoadingText($param) |
244 | 247 | { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * @return array list of trigger callback options. |
|
59 | + * @return string list of trigger callback options. |
|
60 | 60 | */ |
61 | 61 | protected function getTriggerOptions() |
62 | 62 | { |
@@ -158,6 +158,9 @@ |
||
158 | 158 | $this->triggerClientMethod('close'); |
159 | 159 | } |
160 | 160 | |
161 | + /** |
|
162 | + * @param string $method |
|
163 | + */ |
|
161 | 164 | private function triggerClientMethod($method) |
162 | 165 | { |
163 | 166 | $cs = $this->getPage()->getClientScript(); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | /** |
77 | 77 | * This method creates the template object for the given class |
78 | 78 | * |
79 | - * @param string $p_class The class to create the template from |
|
79 | + * @param string $parentClass |
|
80 | 80 | * @return void |
81 | 81 | * @throws TConfigurationException if a template control directive is invalid |
82 | 82 | */ |
@@ -166,6 +166,7 @@ |
||
166 | 166 | * Otherwise, an exception will be raised. |
167 | 167 | * @param mixed data item |
168 | 168 | * @param mixed field name |
169 | + * @param string $field |
|
169 | 170 | * @return mixed data value at the specified field |
170 | 171 | * @throws TInvalidDataValueException if the data is invalid |
171 | 172 | */ |
@@ -267,6 +267,7 @@ discard block |
||
267 | 267 | |
268 | 268 | /** |
269 | 269 | * @param string the public key used for generating the token. A random one will be generated if this is not set. |
270 | + * @param string $value |
|
270 | 271 | */ |
271 | 272 | public function setPublicKey($value) |
272 | 273 | { |
@@ -322,6 +323,7 @@ discard block |
||
322 | 323 | /** |
323 | 324 | * Validates a user input with the token. |
324 | 325 | * @param string user input |
326 | + * @param string $input |
|
325 | 327 | * @return boolean if the user input is not the same as the token. |
326 | 328 | */ |
327 | 329 | public function validate($input) |
@@ -447,6 +449,11 @@ discard block |
||
447 | 449 | * @param string private key |
448 | 450 | * @param integer the length of the token |
449 | 451 | * @param boolean whether the token is case sensitive |
452 | + * @param string $publicKey |
|
453 | + * @param string $privateKey |
|
454 | + * @param string $alphabet |
|
455 | + * @param integer $tokenLength |
|
456 | + * @param boolean $caseSensitive |
|
450 | 457 | * @return string the token generated. |
451 | 458 | */ |
452 | 459 | protected function generateToken($publicKey,$privateKey,$alphabet,$tokenLength,$caseSensitive) |
@@ -459,6 +466,7 @@ discard block |
||
459 | 466 | * Converts a hash string into a string with characters consisting of alphanumeric characters. |
460 | 467 | * @param string the hexadecimal representation of the hash string |
461 | 468 | * @param string the alphabet used to represent the converted string. If empty, it means '234578adefhijmnrtwyABDEFGHIJLMNQRTWY', which excludes those confusing characters. |
469 | + * @param string $hex |
|
462 | 470 | * @return string the converted string |
463 | 471 | */ |
464 | 472 | protected function hash2string($hex,$alphabet='') |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @return TCaptchaControl the CAPTCHA control to be validated against |
|
82 | + * @return TCaptcha the CAPTCHA control to be validated against |
|
83 | 83 | * @throws TConfigurationException if the CAPTCHA cannot be found according to {@link setCaptchaControl CaptchaControl} |
84 | 84 | */ |
85 | 85 | protected function findCaptchaControl() |
@@ -115,6 +115,9 @@ discard block |
||
115 | 115 | return $options; |
116 | 116 | } |
117 | 117 | |
118 | + /** |
|
119 | + * @param string $token |
|
120 | + */ |
|
118 | 121 | private function generateTokenHash($token) |
119 | 122 | { |
120 | 123 | for($h=0,$i=strlen($token)-1;$i>=0;--$i) |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | /** |
119 | 119 | * Returns the value of the property that needs validation. |
120 | - * @return mixed the property value to be validated |
|
120 | + * @return boolean the property value to be validated |
|
121 | 121 | */ |
122 | 122 | public function getValidationPropertyValue() |
123 | 123 | { |
@@ -184,6 +184,7 @@ discard block |
||
184 | 184 | |
185 | 185 | /** |
186 | 186 | * @param TTextAlign the alignment of the text caption. Valid values include Left and Right. |
187 | + * @param TTextAlign $value |
|
187 | 188 | */ |
188 | 189 | public function setTextAlign($value) |
189 | 190 | { |
@@ -244,6 +245,7 @@ discard block |
||
244 | 245 | /** |
245 | 246 | * Sets a value indicating whether clicking on the checkbox will post the page. |
246 | 247 | * @param boolean whether clicking on the checkbox will post the page. |
248 | + * @param boolean $value |
|
247 | 249 | */ |
248 | 250 | public function setAutoPostBack($value) |
249 | 251 | { |
@@ -261,6 +263,7 @@ discard block |
||
261 | 263 | /** |
262 | 264 | * Sets the value indicating whether postback event trigger by this checkbox will cause input validation. |
263 | 265 | * @param boolean whether postback event trigger by this checkbox will cause input validation. |
266 | + * @param boolean $value |
|
264 | 267 | */ |
265 | 268 | public function setCausesValidation($value) |
266 | 269 | { |
@@ -277,6 +280,7 @@ discard block |
||
277 | 280 | |
278 | 281 | /** |
279 | 282 | * @param string the group of validators which the checkbox causes validation upon postback |
283 | + * @param string $value |
|
280 | 284 | */ |
281 | 285 | public function setValidationGroup($value) |
282 | 286 | { |
@@ -410,6 +414,7 @@ discard block |
||
410 | 414 | |
411 | 415 | /** |
412 | 416 | * @param boolean whether to render javascript. |
417 | + * @param boolean $value |
|
413 | 418 | */ |
414 | 419 | public function setEnableClientScript($value) |
415 | 420 | { |