@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
185 | - * @return mixed the algorithm used to encrypt/decrypt data. Defaults to the string 'rijndael-256'. |
|
185 | + * @return string the algorithm used to encrypt/decrypt data. Defaults to the string 'rijndael-256'. |
|
186 | 186 | */ |
187 | 187 | public function getCryptAlgorithm() |
188 | 188 | { |
@@ -201,6 +201,7 @@ discard block |
||
201 | 201 | /** |
202 | 202 | * Encrypts data with {@link getEncryptionKey EncryptionKey}. |
203 | 203 | * @param string data to be encrypted. |
204 | + * @param string $data |
|
204 | 205 | * @return string the encrypted data |
205 | 206 | * @throws TNotSupportedException if PHP Mcrypt extension is not loaded |
206 | 207 | */ |
@@ -220,6 +221,7 @@ discard block |
||
220 | 221 | /** |
221 | 222 | * Decrypts data with {@link getEncryptionKey EncryptionKey}. |
222 | 223 | * @param string data to be decrypted. |
224 | + * @param string $data |
|
223 | 225 | * @return string the decrypted data |
224 | 226 | * @throws TNotSupportedException if PHP Mcrypt extension is not loaded |
225 | 227 | */ |
@@ -73,6 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | /** |
75 | 75 | * @param string username |
76 | + * @param string $value |
|
76 | 77 | */ |
77 | 78 | public function setName($value) |
78 | 79 | { |
@@ -89,6 +90,7 @@ discard block |
||
89 | 90 | |
90 | 91 | /** |
91 | 92 | * @param boolean if the user is a guest |
93 | + * @param boolean $value |
|
92 | 94 | */ |
93 | 95 | public function setIsGuest($value) |
94 | 96 | { |
@@ -170,6 +172,7 @@ discard block |
||
170 | 172 | * |
171 | 173 | * @param string variable name |
172 | 174 | * @param mixed default value |
175 | + * @param string $key |
|
173 | 176 | * @return mixed the value of the variable. If it doesn't exist, the provided default value will be returned |
174 | 177 | * @see setState |
175 | 178 | */ |
@@ -190,6 +193,7 @@ discard block |
||
190 | 193 | * @param string variable name |
191 | 194 | * @param mixed variable value |
192 | 195 | * @param mixed default value. If $value===$defaultValue, the variable will be removed from persistent storage. |
196 | + * @param string $key |
|
193 | 197 | * @see getState |
194 | 198 | */ |
195 | 199 | protected function setState($key,$value,$defaultValue=null) |
@@ -92,6 +92,7 @@ discard block |
||
92 | 92 | * |
93 | 93 | * @param string path of the asset that is relative to the directory containing the specified class file. |
94 | 94 | * @param string name of the class whose containing directory will be prepend to the asset path. If null, it means get_class($this). |
95 | + * @param string $assetPath |
|
95 | 96 | * @return string URL to the asset path. |
96 | 97 | */ |
97 | 98 | public function publishAsset($assetPath,$className=null) |
@@ -106,6 +107,7 @@ discard block |
||
106 | 107 | /** |
107 | 108 | * Publishes a file or directory and returns its URL. |
108 | 109 | * @param string absolute path of the file or directory to be published |
110 | + * @param string $fullPath |
|
109 | 111 | * @return string URL to the published file or directory |
110 | 112 | */ |
111 | 113 | public function publishFilePath($fullPath, $checkTimestamp=false) |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | * </code> |
407 | 407 | * to be executed when listen is called. All attached behaviors are notified through dyListen. |
408 | 408 | * |
409 | - * @return numeric the number of global events that were registered to the global event registry |
|
409 | + * @return null|integer the number of global events that were registered to the global event registry |
|
410 | 410 | */ |
411 | 411 | public function listen() { |
412 | 412 | if($this->_listeningenabled) |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | * </code> |
441 | 441 | * to be executed when listen is called. All attached behaviors are notified through dyUnlisten. |
442 | 442 | * |
443 | - * @return numeric the number of global events that were unregistered from the global event registry |
|
443 | + * @return null|integer the number of global events that were unregistered from the global event registry |
|
444 | 444 | */ |
445 | 445 | public function unlisten() { |
446 | 446 | if(!$this->_listeningenabled) |
@@ -774,6 +774,7 @@ discard block |
||
774 | 774 | * A property is defined if there is a getter or setter method |
775 | 775 | * defined in the class. Note, property names are case-insensitive. |
776 | 776 | * @param string the property name |
777 | + * @param string $name |
|
777 | 778 | * @return boolean whether the property is defined |
778 | 779 | */ |
779 | 780 | public function hasProperty($name) |
@@ -2100,6 +2101,9 @@ discard block |
||
2100 | 2101 | $this->reflect(); |
2101 | 2102 | } |
2102 | 2103 | |
2104 | + /** |
|
2105 | + * @param ReflectionMethod $method |
|
2106 | + */ |
|
2103 | 2107 | private function isPropertyMethod($method) |
2104 | 2108 | { |
2105 | 2109 | $methodName=$method->getName(); |
@@ -2108,6 +2112,9 @@ discard block |
||
2108 | 2112 | && isset($methodName[3]); |
2109 | 2113 | } |
2110 | 2114 | |
2115 | + /** |
|
2116 | + * @param ReflectionMethod $method |
|
2117 | + */ |
|
2111 | 2118 | private function isEventMethod($method) |
2112 | 2119 | { |
2113 | 2120 | $methodName=$method->getName(); |
@@ -2254,11 +2261,14 @@ discard block |
||
2254 | 2261 | /** |
2255 | 2262 | * Attaches the behavior object to the component. |
2256 | 2263 | * @param CComponent the component that this behavior is to be attached to. |
2264 | + * @param TComponent $component |
|
2265 | + * @return void |
|
2257 | 2266 | */ |
2258 | 2267 | public function attach($component); |
2259 | 2268 | /** |
2260 | 2269 | * Detaches the behavior object from the component. |
2261 | 2270 | * @param CComponent the component that this behavior is to be detached from. |
2271 | + * @return void |
|
2262 | 2272 | */ |
2263 | 2273 | public function detach($component); |
2264 | 2274 | } |
@@ -2283,6 +2293,8 @@ discard block |
||
2283 | 2293 | public function getEnabled(); |
2284 | 2294 | /** |
2285 | 2295 | * @param boolean whether this behavior is enabled |
2296 | + * @param boolean $value |
|
2297 | + * @return void |
|
2286 | 2298 | */ |
2287 | 2299 | public function setEnabled($value); |
2288 | 2300 | } |
@@ -185,7 +185,7 @@ |
||
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | - * @return integer|float a timestamp given a local time |
|
188 | + * @return integer a timestamp given a local time |
|
189 | 189 | */ |
190 | 190 | function getTimeStamp($hr,$min,$sec,$mon=false,$day=false,$year=false,$is_gmt=false) |
191 | 191 | { |
@@ -93,6 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @param string formatting charset. |
96 | + * @param string $charset |
|
96 | 97 | */ |
97 | 98 | public function setCharset($charset) |
98 | 99 | { |
@@ -313,6 +314,7 @@ discard block |
||
313 | 314 | |
314 | 315 | /** |
315 | 316 | * Calculate the length of a string, may be consider iconv_strlen? |
317 | + * @param string $string |
|
316 | 318 | */ |
317 | 319 | private function length($string) |
318 | 320 | { |
@@ -338,6 +340,9 @@ discard block |
||
338 | 340 | |
339 | 341 | /** |
340 | 342 | * Returns true if char at position equals a particular char. |
343 | + * @param string $string |
|
344 | + * @param integer $pos |
|
345 | + * @param string $char |
|
341 | 346 | */ |
342 | 347 | private function charEqual($string, $pos, $char) |
343 | 348 | { |
@@ -350,6 +355,10 @@ discard block |
||
350 | 355 | * @param int starting position |
351 | 356 | * @param int minimum integer length |
352 | 357 | * @param int maximum integer length |
358 | + * @param string $str |
|
359 | + * @param integer $i |
|
360 | + * @param integer|null $minlength |
|
361 | + * @param integer|null $maxlength |
|
353 | 362 | * @return string integer portion of the string, null otherwise |
354 | 363 | */ |
355 | 364 | private function getInteger($str,$i,$minlength,$maxlength) |
@@ -215,6 +215,7 @@ discard block |
||
215 | 215 | * This method does not perform any publishing. It merely tells you |
216 | 216 | * if the file path is published, what the URL will be to access it. |
217 | 217 | * @param string directory or file path being published |
218 | + * @param string $path |
|
218 | 219 | * @return string the published URL for the file path |
219 | 220 | */ |
220 | 221 | public function getPublishedUrl($path) |
@@ -230,6 +231,7 @@ discard block |
||
230 | 231 | * Generate a CRC32 hash for the directory path. Collisions are higher |
231 | 232 | * than MD5 but generates a much smaller hash string. |
232 | 233 | * @param string string to be hashed. |
234 | + * @param string $dir |
|
233 | 235 | * @return string hashed string. |
234 | 236 | */ |
235 | 237 | protected function hash($dir) |
@@ -243,6 +245,8 @@ discard block |
||
243 | 245 | * or has an older file modification time. |
244 | 246 | * @param string source file path |
245 | 247 | * @param string destination directory (if not exists, it will be created) |
248 | + * @param string $src |
|
249 | + * @param string $dst |
|
246 | 250 | */ |
247 | 251 | protected function copyFile($src,$dst) |
248 | 252 | { |
@@ -265,6 +269,8 @@ discard block |
||
265 | 269 | * File modification time is used to ensure the copied files are latest. |
266 | 270 | * @param string the source directory |
267 | 271 | * @param string the destination directory |
272 | + * @param string $src |
|
273 | + * @param string $dst |
|
268 | 274 | * @todo a generic solution to ignore certain directories and files |
269 | 275 | */ |
270 | 276 | public function copyDirectory($src,$dst) |
@@ -306,6 +312,8 @@ discard block |
||
306 | 312 | * @param string tar filename |
307 | 313 | * @param string MD5 checksum for the corresponding tar file. |
308 | 314 | * @param boolean Wether or not to check the time stamp of the file for publishing. Defaults to false. |
315 | + * @param string $tarfile |
|
316 | + * @param string $md5sum |
|
309 | 317 | * @return string URL path to the directory where the tar file was extracted. |
310 | 318 | */ |
311 | 319 | public function publishTarFile($tarfile, $md5sum, $checkTimestamp=false) |
@@ -336,6 +344,7 @@ discard block |
||
336 | 344 | * N.B Tar file must not be compressed. |
337 | 345 | * @param string tar file |
338 | 346 | * @param string path where the contents of tar file are to be extracted |
347 | + * @param string $destination |
|
339 | 348 | * @return boolean true if extract successful, false otherwise. |
340 | 349 | */ |
341 | 350 | protected function deployTarFile($path,$destination) |
@@ -258,6 +258,7 @@ discard block |
||
258 | 258 | |
259 | 259 | /** |
260 | 260 | * Saves the current UrlManager instance to cache. |
261 | + * @param TUrlManager $manager |
|
261 | 262 | * @return boolean true if UrlManager instance was cached, false otherwise. |
262 | 263 | */ |
263 | 264 | protected function cacheUrlManager($manager) |
@@ -349,7 +350,7 @@ discard block |
||
349 | 350 | } |
350 | 351 | |
351 | 352 | /** |
352 | - * @return THttpRequestUrlFormat the format of URLs. Defaults to THttpRequestUrlFormat::Get. |
|
353 | + * @return string the format of URLs. Defaults to THttpRequestUrlFormat::Get. |
|
353 | 354 | */ |
354 | 355 | public function getUrlFormat() |
355 | 356 | { |
@@ -710,6 +711,7 @@ discard block |
||
710 | 711 | * @param array GET parameters, null if not needed |
711 | 712 | * @param boolean whether to encode the ampersand in URL, defaults to true. |
712 | 713 | * @param boolean whether to encode the GET parameters (their names and values), defaults to false. |
714 | + * @param string $serviceID |
|
713 | 715 | * @return string URL |
714 | 716 | * @see TUrlManager::constructUrl |
715 | 717 | */ |
@@ -980,6 +982,7 @@ discard block |
||
980 | 982 | /** |
981 | 983 | * Constructor. |
982 | 984 | * @param mixed owner of this collection. |
985 | + * @param THttpResponse $owner |
|
983 | 986 | */ |
984 | 987 | public function __construct($owner=null) |
985 | 988 | { |
@@ -1125,6 +1128,7 @@ discard block |
||
1125 | 1128 | |
1126 | 1129 | /** |
1127 | 1130 | * @param integer the time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch. |
1131 | + * @param integer $value |
|
1128 | 1132 | */ |
1129 | 1133 | public function setExpire($value) |
1130 | 1134 | { |
@@ -1287,6 +1291,7 @@ discard block |
||
1287 | 1291 | * Constructor. |
1288 | 1292 | * Decomposes the specified URI into parts. |
1289 | 1293 | * @param string URI to be represented |
1294 | + * @param string $uri |
|
1290 | 1295 | * @throws TInvalidDataValueException if URI is of bad format |
1291 | 1296 | */ |
1292 | 1297 | public function __construct($uri) |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | |
225 | 225 | /** |
226 | - * @return string|boolean output charset. |
|
226 | + * @return string output charset. |
|
227 | 227 | */ |
228 | 228 | public function getCharset() |
229 | 229 | { |
@@ -232,6 +232,7 @@ discard block |
||
232 | 232 | |
233 | 233 | /** |
234 | 234 | * @param string|boolean output charset. |
235 | + * @param string $charset |
|
235 | 236 | */ |
236 | 237 | public function setCharset($charset) |
237 | 238 | { |
@@ -604,6 +605,7 @@ discard block |
||
604 | 605 | * Sends a header. |
605 | 606 | * @param string header |
606 | 607 | * @param boolean whether the header should replace a previous similar header, or add a second header of the same type |
608 | + * @param string $value |
|
607 | 609 | */ |
608 | 610 | public function appendHeader($value, $replace=true) |
609 | 611 | { |
@@ -629,6 +631,7 @@ discard block |
||
629 | 631 | * Sends a cookie. |
630 | 632 | * Do not call this method directly. Operate with the result of {@link getCookies} instead. |
631 | 633 | * @param THttpCookie cook to be sent |
634 | + * @param THttpCookie $cookie |
|
632 | 635 | */ |
633 | 636 | public function addCookie($cookie) |
634 | 637 | { |
@@ -713,6 +716,7 @@ discard block |
||
713 | 716 | * This method is used internally. Please use {@link createHtmlWriter} instead. |
714 | 717 | * @param string type of HTML writer to be created. |
715 | 718 | * @param ITextWriter text writer holding the contents. |
719 | + * @param THttpResponse $writer |
|
716 | 720 | */ |
717 | 721 | public function createNewHtmlWriter($type, $writer) |
718 | 722 | { |