@@ -38,6 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * Writes a string. |
40 | 40 | * @param string string to be written |
41 | + * @param string $str |
|
41 | 42 | */ |
42 | 43 | public function write($str) |
43 | 44 | { |
@@ -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 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @return Marks a string as a javascript function. Once marke, the string is considered as a |
|
96 | + * @return TJavaScriptLiteral a string as a javascript function. Once marke, the string is considered as a |
|
97 | 97 | * raw javascript function that is not supposed to be encoded by {@link encode} |
98 | 98 | */ |
99 | 99 | public static function quoteJsLiteral($js) |
@@ -256,6 +256,7 @@ discard block |
||
256 | 256 | * @param string string to be decoded |
257 | 257 | * @param bool whether to convert returned objects to associative arrays |
258 | 258 | * @param int recursion depth |
259 | + * @param string $value |
|
259 | 260 | * @return mixed decoded variable |
260 | 261 | */ |
261 | 262 | public static function jsonDecode($value, $assoc = false, $depth = 512) |
@@ -298,7 +299,8 @@ discard block |
||
298 | 299 | * Minimize the size of a javascript script. |
299 | 300 | * This method is based on Douglas Crockford's JSMin. |
300 | 301 | * @param string code that you want to minimzie |
301 | - * @return minimized version of the code |
|
302 | + * @param string $code |
|
303 | + * @return string version of the code |
|
302 | 304 | */ |
303 | 305 | public static function JSMin($code) |
304 | 306 | { |
@@ -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 | { |