@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | {$this->action} {$parameters}{$optional} |
207 | 207 | {$description} |
208 | 208 | |
209 | -EOD; |
|
209 | +eod; |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | /** |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | </parameters> |
379 | 379 | --> |
380 | 380 | </application> |
381 | -EOD; |
|
381 | +eod; |
|
382 | 382 | } |
383 | 383 | |
384 | 384 | /** |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | <h1>Welcome to PRADO!</h1> |
404 | 404 | </body> |
405 | 405 | </html> |
406 | -EOD; |
|
406 | +eod; |
|
407 | 407 | } |
408 | 408 | } |
409 | 409 | |
@@ -678,7 +678,7 @@ discard block |
||
678 | 678 | * @soapproperty |
679 | 679 | */ |
680 | 680 | |
681 | -EOD; |
|
681 | +eod; |
|
682 | 682 | } |
683 | 683 | $prop .= "\tpublic $name;"; |
684 | 684 | return $prop; |
@@ -711,7 +711,7 @@ discard block |
||
711 | 711 | } |
712 | 712 | } |
713 | 713 | |
714 | -EOD; |
|
714 | +eod; |
|
715 | 715 | } |
716 | 716 | } |
717 | 717 |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | } |
333 | 333 | |
334 | 334 | /** |
335 | - * @param array $appName application id |
|
335 | + * @param string $appName application id |
|
336 | 336 | * @return string |
337 | 337 | */ |
338 | 338 | protected function renderConfigFile($appName) |
@@ -589,7 +589,7 @@ discard block |
||
589 | 589 | |
590 | 590 | /** |
591 | 591 | * @param string $app_dir application directory |
592 | - * @return false|string |
|
592 | + * @return string |
|
593 | 593 | */ |
594 | 594 | protected function getActiveRecordConfig($app_dir) |
595 | 595 | { |
@@ -632,7 +632,7 @@ discard block |
||
632 | 632 | * @param string $config database configuration |
633 | 633 | * @param string $tablename table name |
634 | 634 | * @param string $output output file name |
635 | - * @return bool |
|
635 | + * @return false|null |
|
636 | 636 | */ |
637 | 637 | protected function generateActiveRecord($config, $tablename, $output) |
638 | 638 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | console.log ("[Tot Time] [Time ] [Level] [Category] [Message]"); |
85 | 85 | |
86 | -EOD; |
|
86 | +eod; |
|
87 | 87 | |
88 | 88 | return $string; |
89 | 89 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | } |
123 | 123 | </script> |
124 | 124 | |
125 | -EOD; |
|
125 | +eod; |
|
126 | 126 | |
127 | 127 | return $string; |
128 | 128 | } |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | * Loads date from drop down list data. |
484 | 484 | * @param string $key the key that can be used to retrieve data from the input data collection |
485 | 485 | * @param array $values the input data collection |
486 | - * @return array the date selected |
|
486 | + * @return string the date selected |
|
487 | 487 | */ |
488 | 488 | protected function getDateFromPostData($key, $values) |
489 | 489 | { |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | } |
596 | 596 | |
597 | 597 | /** |
598 | - * @return DateTimeFormatInfo date time format information for the current culture. |
|
598 | + * @return CultureInfo date time format information for the current culture. |
|
599 | 599 | */ |
600 | 600 | protected function getLocalizedCalendarInfo() |
601 | 601 | { |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | /** |
648 | 648 | * Renders the calendar drop down list depending on the DateFormat pattern. |
649 | 649 | * @param THtmlWriter $writer the Html writer to render the drop down lists. |
650 | - * @param array $date the current selected date |
|
650 | + * @param \DateTime $date the current selected date |
|
651 | 651 | */ |
652 | 652 | protected function renderCalendarSelections($writer, $date) |
653 | 653 | { |
@@ -755,7 +755,7 @@ discard block |
||
755 | 755 | * Returns the localized month names that depends on the month format pattern. |
756 | 756 | * "MMMM" will return the month names, "MM" or "MMM" return abbr. month names |
757 | 757 | * and "M" return month digits. |
758 | - * @param DateTimeFormatInfo $info localized date format information. |
|
758 | + * @param CultureInfo $info localized date format information. |
|
759 | 759 | * @return array localized month names. |
760 | 760 | */ |
761 | 761 | protected function getLocalizedMonthNames($info) |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | /** |
329 | 329 | * Gets the current Db connection, the connection object is obtained from |
330 | 330 | * the TActiveRecordManager if connection is currently null. |
331 | - * @return TDbConnection current db connection for this object. |
|
331 | + * @return \Prado\Data\TDbConnection current db connection for this object. |
|
332 | 332 | */ |
333 | 333 | public function getDbConnection() |
334 | 334 | { |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | * $finder->find($criteria); //the 2nd parameter for find() is ignored. |
582 | 582 | * </code> |
583 | 583 | * |
584 | - * @param string|TActiveRecordCriteria $criteria SQL condition or criteria object. |
|
584 | + * @param TSqlCriteria $criteria SQL condition or criteria object. |
|
585 | 585 | * @param mixed $parameters parameter values. |
586 | 586 | * @return TActiveRecord matching record object. Null if no result is found. |
587 | 587 | */ |
@@ -353,7 +353,7 @@ |
||
353 | 353 | * @param string $key the key identifying the value to be cached |
354 | 354 | * @param string $value the value to be cached |
355 | 355 | * @param int $expire the number of seconds in which the cached value will expire. 0 means never expire. |
356 | - * @return bool true if the value is successfully stored into cache, false otherwise |
|
356 | + * @return boolean|null true if the value is successfully stored into cache, false otherwise |
|
357 | 357 | */ |
358 | 358 | protected function addValue($key, $value, $expire) |
359 | 359 | { |
@@ -35,6 +35,9 @@ discard block |
||
35 | 35 | private $_relation; //data from an entry of TActiveRecord::$RELATION |
36 | 36 | private $_fkeys; |
37 | 37 | |
38 | + /** |
|
39 | + * @param TActiveRecord $record |
|
40 | + */ |
|
38 | 41 | public function __construct($record, $property = null, $relation = null) |
39 | 42 | { |
40 | 43 | $this->_record = $record; |
@@ -200,8 +203,8 @@ discard block |
||
200 | 203 | } |
201 | 204 | |
202 | 205 | /** |
203 | - * @param mixed $updateBelongsTo |
|
204 | - * @return TActiveRecordRelationCommand |
|
206 | + * @param boolean $updateBelongsTo |
|
207 | + * @return boolean |
|
205 | 208 | */ |
206 | 209 | public function updateAssociatedRecords($updateBelongsTo = false) |
207 | 210 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | } |
195 | 195 | |
196 | 196 | /** |
197 | - * @return bool true if the parameter index are string base, false otherwise. |
|
197 | + * @return boolean|null true if the parameter index are string base, false otherwise. |
|
198 | 198 | */ |
199 | 199 | public function getIsNamedParameters() |
200 | 200 | { |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | } |
213 | 213 | |
214 | 214 | /** |
215 | - * @param mixed $value ordering clause. |
|
215 | + * @param string $value ordering clause. |
|
216 | 216 | */ |
217 | 217 | public function setOrdersBy($value) |
218 | 218 | { |
@@ -205,7 +205,6 @@ discard block |
||
205 | 205 | |
206 | 206 | /** |
207 | 207 | * Load the ICU culture data for the specific culture identifier. |
208 | - * @param string $culture the culture identifier. |
|
209 | 208 | * @param mixed $key |
210 | 209 | */ |
211 | 210 | protected function loadCultureData($key) |
@@ -258,7 +257,6 @@ discard block |
||
258 | 257 | * Search the array for a specific value using a path separated using |
259 | 258 | * slash "/" separated path. e.g to find $info['hello']['world'], |
260 | 259 | * the path "hello/world" will return the corresponding value. |
261 | - * @param array $info the array for search |
|
262 | 260 | * @param string $path slash "/" separated array path. |
263 | 261 | * @param mixed $resource |
264 | 262 | * @return mixed the value array using the path |
@@ -402,7 +400,6 @@ discard block |
||
402 | 400 | * Simplify a single element array into its own value. |
403 | 401 | * E.g. <code>array(0 => array('hello'), 1 => 'world');</code> |
404 | 402 | * becomes <code>array(0 => 'hello', 1 => 'world');</code> |
405 | - * @param array $array with single elements arrays |
|
406 | 403 | * @param mixed $obj |
407 | 404 | * @return array simplified array. |
408 | 405 | */ |
@@ -478,7 +475,7 @@ discard block |
||
478 | 475 | |
479 | 476 | /** |
480 | 477 | * Get a list of timezones in the language of the localized version. |
481 | - * @return array list of localized timezones. |
|
478 | + * @return string[] list of localized timezones. |
|
482 | 479 | */ |
483 | 480 | public function getTimeZones() |
484 | 481 | { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * Creates the DB connection. |
63 | 63 | * @param string $connectionID the module ID for TDataSourceConfig |
64 | 64 | * @throws TConfigurationException if module ID is invalid or empty |
65 | - * @return TDbConnection the created DB connection |
|
65 | + * @return \Prado\Data\TDbConnection the created DB connection |
|
66 | 66 | */ |
67 | 67 | protected function createDbConnection($connectionID) |
68 | 68 | { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | /** |
141 | 141 | * Get all the variants of a particular catalogue. |
142 | 142 | * @param string $catalogue catalogue name |
143 | - * @return array list of all variants for this catalogue. |
|
143 | + * @return string[] list of all variants for this catalogue. |
|
144 | 144 | */ |
145 | 145 | protected function getCatalogueList($catalogue) |
146 | 146 | { |