@@ -163,6 +163,7 @@ |
||
163 | 163 | /** |
164 | 164 | * Creates the DB connection. |
165 | 165 | * @param string the module ID for TDataSourceConfig |
166 | + * @param string $connectionID |
|
166 | 167 | * @return TDbConnection the created DB connection |
167 | 168 | * @throws TConfigurationException if module ID is invalid or empty |
168 | 169 | */ |
@@ -342,6 +342,7 @@ discard block |
||
342 | 342 | * to determine the application configuration file, |
343 | 343 | * application root path and the runtime path. |
344 | 344 | * @param string the application root path or the application configuration file |
345 | + * @param string $basePath |
|
345 | 346 | * @see setBasePath |
346 | 347 | * @see setRuntimePath |
347 | 348 | * @see setConfigurationFile |
@@ -440,6 +441,7 @@ discard block |
||
440 | 441 | * A global value is one that is persistent across users sessions and requests. |
441 | 442 | * @param string the name of the value to be returned |
442 | 443 | * @param mixed the default value. If $key is not found, $defaultValue will be returned |
444 | + * @param integer $defaultValue |
|
443 | 445 | * @return mixed the global value corresponding to $key |
444 | 446 | */ |
445 | 447 | public function getGlobalState($key,$defaultValue=null) |
@@ -456,6 +458,7 @@ discard block |
||
456 | 458 | * @param mixed the global value to be set |
457 | 459 | * @param mixed the default value. If $key is not found, $defaultValue will be returned |
458 | 460 | * @param boolean wheter to force an immediate GlobalState save. defaults to false |
461 | + * @param string $key |
|
459 | 462 | */ |
460 | 463 | public function setGlobalState($key,$value,$defaultValue=null,$forceSave=false) |
461 | 464 | { |
@@ -545,7 +548,7 @@ discard block |
||
545 | 548 | } |
546 | 549 | |
547 | 550 | /** |
548 | - * @return TApplicationMode application mode. Defaults to TApplicationMode::Debug. |
|
551 | + * @return string application mode. Defaults to TApplicationMode::Debug. |
|
549 | 552 | */ |
550 | 553 | public function getMode() |
551 | 554 | { |
@@ -570,6 +573,7 @@ discard block |
||
570 | 573 | |
571 | 574 | /** |
572 | 575 | * @param string the directory containing the application configuration file |
576 | + * @param string $value |
|
573 | 577 | */ |
574 | 578 | public function setBasePath($value) |
575 | 579 | { |
@@ -586,6 +590,7 @@ discard block |
||
586 | 590 | |
587 | 591 | /** |
588 | 592 | * @param string the application configuration file (absolute path) |
593 | + * @param string $value |
|
589 | 594 | */ |
590 | 595 | public function setConfigurationFile($value) |
591 | 596 | { |
@@ -602,6 +607,7 @@ discard block |
||
602 | 607 | |
603 | 608 | /** |
604 | 609 | * @param string the application configuration type. 'xml' and 'php' are valid values |
610 | + * @param string $value |
|
605 | 611 | */ |
606 | 612 | public function setConfigurationType($value) |
607 | 613 | { |
@@ -657,6 +663,7 @@ discard block |
||
657 | 663 | |
658 | 664 | /** |
659 | 665 | * @param string the directory storing cache data and application-level persistent data. (absolute path) |
666 | + * @param string $value |
|
660 | 667 | */ |
661 | 668 | public function setRuntimePath($value) |
662 | 669 | { |
@@ -677,6 +684,7 @@ discard block |
||
677 | 684 | |
678 | 685 | /** |
679 | 686 | * @param IService the currently requested service |
687 | + * @param IService $value |
|
680 | 688 | */ |
681 | 689 | public function setService($value) |
682 | 690 | { |
@@ -1126,6 +1134,7 @@ discard block |
||
1126 | 1134 | * This method is invoked when an exception is raised during the lifecycles |
1127 | 1135 | * of the application. |
1128 | 1136 | * @param mixed event parameter |
1137 | + * @param Exception $param |
|
1129 | 1138 | */ |
1130 | 1139 | public function onError($param) |
1131 | 1140 | { |
@@ -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 | { |
@@ -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 | { |
@@ -369,6 +369,7 @@ discard block |
||
369 | 369 | |
370 | 370 | /** |
371 | 371 | * @param string default page path to be served if no explicit page is request |
372 | + * @param string $value |
|
372 | 373 | * @throws TInvalidOperationException if the page service is initialized |
373 | 374 | */ |
374 | 375 | public function setDefaultPage($value) |
@@ -528,6 +529,7 @@ discard block |
||
528 | 529 | * @param array list of GET parameters, null if no GET parameters required |
529 | 530 | * @param boolean whether to encode the ampersand in URL, defaults to true. |
530 | 531 | * @param boolean whether to encode the GET parameters (their names and values), defaults to true. |
532 | + * @param string $pagePath |
|
531 | 533 | * @return string URL for the page and GET parameters |
532 | 534 | */ |
533 | 535 | public function constructUrl($pagePath,$getParams=null,$encodeAmpersand=true,$encodeGetItems=true) |
@@ -670,6 +672,9 @@ discard block |
||
670 | 672 | } |
671 | 673 | } |
672 | 674 | |
675 | + /** |
|
676 | + * @param string $configPath |
|
677 | + */ |
|
673 | 678 | public function loadFromPhp($config,$configPath,$configPagePath) |
674 | 679 | { |
675 | 680 | $this->loadApplicationConfigurationFromPhp($config,$configPath); |
@@ -683,6 +688,8 @@ discard block |
||
683 | 688 | * @param TXmlElement config xml element |
684 | 689 | * @param string the directory containing this configuration |
685 | 690 | * @param string the page path that the config XML is associated with. The page path doesn't include the page name. |
691 | + * @param TXmlDocument $dom |
|
692 | + * @param string $configPath |
|
686 | 693 | */ |
687 | 694 | public function loadFromXml($dom,$configPath,$configPagePath) |
688 | 695 | { |