@@ -49,6 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @param string id of this service |
| 52 | + * @param string $value |
|
| 52 | 53 | */ |
| 53 | 54 | public function setID($value) |
| 54 | 55 | { |
@@ -98,6 +98,7 @@ |
||
| 98 | 98 | * @param integer level filter |
| 99 | 99 | * @param array category filter |
| 100 | 100 | * @param array control filter |
| 101 | + * @param integer $levels |
|
| 101 | 102 | * @return array list of messages. Each array elements represents one message |
| 102 | 103 | * with the following structure: |
| 103 | 104 | * array( |
@@ -105,6 +105,9 @@ |
||
| 105 | 105 | * @param string RPC server URL |
| 106 | 106 | * @param array payload data |
| 107 | 107 | * @param string request mime type |
| 108 | + * @param string $serverUrl |
|
| 109 | + * @param string $mimeType |
|
| 110 | + * @return string |
|
| 108 | 111 | */ |
| 109 | 112 | protected function performRequest($serverUrl, $payload, $mimeType) |
| 110 | 113 | { |
@@ -60,6 +60,7 @@ discard block |
||
| 60 | 60 | * Constructor, create a new date time formatter. |
| 61 | 61 | * @param string formatting pattern. |
| 62 | 62 | * @param string pattern and value charset |
| 63 | + * @param string $pattern |
|
| 63 | 64 | */ |
| 64 | 65 | public function __construct($pattern, $charset='UTF-8') |
| 65 | 66 | { |
@@ -93,6 +94,7 @@ discard block |
||
| 93 | 94 | |
| 94 | 95 | /** |
| 95 | 96 | * @param string formatting charset. |
| 97 | + * @param string $charset |
|
| 96 | 98 | */ |
| 97 | 99 | public function setCharset($charset) |
| 98 | 100 | { |
@@ -313,6 +315,7 @@ discard block |
||
| 313 | 315 | |
| 314 | 316 | /** |
| 315 | 317 | * Calculate the length of a string, may be consider iconv_strlen? |
| 318 | + * @param string $string |
|
| 316 | 319 | */ |
| 317 | 320 | private function length($string) |
| 318 | 321 | { |
@@ -338,6 +341,9 @@ discard block |
||
| 338 | 341 | |
| 339 | 342 | /** |
| 340 | 343 | * Returns true if char at position equals a particular char. |
| 344 | + * @param string $string |
|
| 345 | + * @param integer $pos |
|
| 346 | + * @param string $char |
|
| 341 | 347 | */ |
| 342 | 348 | private function charEqual($string, $pos, $char) |
| 343 | 349 | { |
@@ -350,6 +356,10 @@ discard block |
||
| 350 | 356 | * @param int starting position |
| 351 | 357 | * @param int minimum integer length |
| 352 | 358 | * @param int maximum integer length |
| 359 | + * @param string $str |
|
| 360 | + * @param integer $i |
|
| 361 | + * @param integer|null $minlength |
|
| 362 | + * @param integer|null $maxlength |
|
| 353 | 363 | * @return string integer portion of the string, null otherwise |
| 354 | 364 | */ |
| 355 | 365 | private function getInteger($str,$i,$minlength,$maxlength) |
@@ -55,6 +55,9 @@ |
||
| 55 | 55 | return self::$_output; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @param integer $level |
|
| 60 | + */ |
|
| 58 | 61 | private static function dumpInternal($var,$level) |
| 59 | 62 | { |
| 60 | 63 | switch(gettype($var)) |
@@ -73,6 +73,9 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | // -- Protected Instance Methods --------------------------------------------- |
| 75 | 75 | |
| 76 | + /** |
|
| 77 | + * @param integer $d |
|
| 78 | + */ |
|
| 76 | 79 | protected function action($d) { |
| 77 | 80 | switch($d) { |
| 78 | 81 | case 1: |
@@ -132,6 +135,9 @@ discard block |
||
| 132 | 135 | } |
| 133 | 136 | } |
| 134 | 137 | |
| 138 | + /** |
|
| 139 | + * @return string |
|
| 140 | + */ |
|
| 135 | 141 | protected function get() { |
| 136 | 142 | $c = $this->lookAhead; |
| 137 | 143 | $this->lookAhead = null; |
@@ -156,6 +162,9 @@ discard block |
||
| 156 | 162 | return ' '; |
| 157 | 163 | } |
| 158 | 164 | |
| 165 | + /** |
|
| 166 | + * @param string $c |
|
| 167 | + */ |
|
| 159 | 168 | protected function isAlphaNum($c) { |
| 160 | 169 | return ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', $c) === 1; |
| 161 | 170 | } |
@@ -140,6 +140,7 @@ |
||
| 140 | 140 | /** |
| 141 | 141 | * Renders content provided by TJsonResponse::getJsonContent() as |
| 142 | 142 | * javascript in JSON format. |
| 143 | + * @param TJsonResponse $service |
|
| 143 | 144 | */ |
| 144 | 145 | protected function createJsonResponse($service,$properties,$config) |
| 145 | 146 | { |
@@ -31,6 +31,7 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Constructor. Attach a response to be adapted. |
| 33 | 33 | * @param THttpResponse the response object the adapter is to attach to. |
| 34 | + * @param THttpResponse $response |
|
| 34 | 35 | */ |
| 35 | 36 | public function __construct($response) |
| 36 | 37 | { |
@@ -265,6 +265,7 @@ discard block |
||
| 265 | 265 | * If true, make sure the methods {@link _open}, {@link _close}, {@link _read}, |
| 266 | 266 | * {@link _write}, {@link _destroy}, and {@link _gc} are overridden in child |
| 267 | 267 | * class, because they will be used as the callback handlers. |
| 268 | + * @param boolean $value |
|
| 268 | 269 | */ |
| 269 | 270 | public function setUseCustomStorage($value) |
| 270 | 271 | { |
@@ -527,6 +528,7 @@ discard block |
||
| 527 | 528 | * Returns the session variable value with the session variable name. |
| 528 | 529 | * This method is exactly the same as {@link offsetGet}. |
| 529 | 530 | * @param mixed the session variable name |
| 531 | + * @param string $key |
|
| 530 | 532 | * @return mixed the session variable value, null if no such variable exists |
| 531 | 533 | */ |
| 532 | 534 | public function itemAt($key) |
@@ -539,6 +541,7 @@ discard block |
||
| 539 | 541 | * Note, if the specified name already exists, the old value will be removed first. |
| 540 | 542 | * @param mixed session variable name |
| 541 | 543 | * @param mixed session variable value |
| 544 | + * @param string $key |
|
| 542 | 545 | */ |
| 543 | 546 | public function add($key,$value) |
| 544 | 547 | { |