@@ -1119,6 +1119,11 @@ discard block |
||
1119 | 1119 | return new TDataGridItem($itemIndex, $dataSourceIndex, $itemType); |
1120 | 1120 | } |
1121 | 1121 | |
1122 | + /** |
|
1123 | + * @param integer $itemIndex |
|
1124 | + * @param boolean $dataBind |
|
1125 | + * @param TList $columns |
|
1126 | + */ |
|
1122 | 1127 | private function createItemInternal($itemIndex, $dataSourceIndex, $itemType, $dataBind, $dataItem, $columns) |
1123 | 1128 | { |
1124 | 1129 | $item = $this->createItem($itemIndex, $dataSourceIndex, $itemType); |
@@ -1192,7 +1197,7 @@ discard block |
||
1192 | 1197 | * Depending on the button type, a TLinkButton or a TButton may be created. |
1193 | 1198 | * If it is enabled (clickable), its command name and parameter will also be set. |
1194 | 1199 | * Derived classes may override this method to create additional types of buttons, such as TImageButton. |
1195 | - * @param mixed $pager the container pager instance of TActiveDatagridPager |
|
1200 | + * @param TDataGridPager $pager the container pager instance of TActiveDatagridPager |
|
1196 | 1201 | * @param string $buttonType button type, either LinkButton or PushButton |
1197 | 1202 | * @param bool $enabled whether the button should be enabled |
1198 | 1203 | * @param string $text caption of the button |
@@ -1131,7 +1131,7 @@ discard block |
||
1131 | 1131 | * This method invokes {@link createItem} to create a new datalist item. |
1132 | 1132 | * @param int $itemIndex zero-based item index. |
1133 | 1133 | * @param TListItemType $itemType item type |
1134 | - * @return TControl the created item, null if item is not created |
|
1134 | + * @return \Prado\TComponent|null the created item, null if item is not created |
|
1135 | 1135 | */ |
1136 | 1136 | private function createItemInternal($itemIndex, $itemType) |
1137 | 1137 | { |
@@ -1151,7 +1151,7 @@ discard block |
||
1151 | 1151 | * @param int $itemIndex zero-based item index. |
1152 | 1152 | * @param TListItemType $itemType item type |
1153 | 1153 | * @param mixed $dataItem data to be associated with the item |
1154 | - * @return TControl the created item, null if item is not created |
|
1154 | + * @return \Prado\TComponent|null the created item, null if item is not created |
|
1155 | 1155 | */ |
1156 | 1156 | private function createItemWithDataInternal($itemIndex, $itemType, $dataItem) |
1157 | 1157 | { |
@@ -1192,6 +1192,9 @@ discard block |
||
1192 | 1192 | } |
1193 | 1193 | } |
1194 | 1194 | |
1195 | + /** |
|
1196 | + * @param integer $itemIndex |
|
1197 | + */ |
|
1195 | 1198 | private function getEditItemDisplay($itemIndex) |
1196 | 1199 | { |
1197 | 1200 | if (($classPath = $this->getEditItemRenderer()) === '' && $this->_editItemTemplate === null) { |
@@ -1205,7 +1208,7 @@ discard block |
||
1205 | 1208 | * Creates a datalist item instance based on the item type and index. |
1206 | 1209 | * @param int $itemIndex zero-based item index |
1207 | 1210 | * @param TListItemType $itemType item type |
1208 | - * @return TControl created datalist item |
|
1211 | + * @return null|\Prado\TComponent created datalist item |
|
1209 | 1212 | */ |
1210 | 1213 | protected function createItem($itemIndex, $itemType) |
1211 | 1214 | { |
@@ -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 \Prado\I18N\core\DateTimeFormatInfo 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 \Prado\I18N\core\DateTimeFormatInfo $info localized date format information. |
|
759 | 759 | * @return array localized month names. |
760 | 760 | */ |
761 | 761 | protected function getLocalizedMonthNames($info) |
@@ -385,6 +385,9 @@ discard block |
||
385 | 385 | return $url; |
386 | 386 | } |
387 | 387 | |
388 | + /** |
|
389 | + * @param string $url |
|
390 | + */ |
|
388 | 391 | protected function copyCustomPlugins($url) |
389 | 392 | { |
390 | 393 | if ($plugins = $this->getCustomPluginPath()) { |
@@ -429,7 +432,7 @@ discard block |
||
429 | 432 | |
430 | 433 | /** |
431 | 434 | * Parse additional options set in the Options property. |
432 | - * @param mixed $string |
|
435 | + * @param string $string |
|
433 | 436 | * @return array additional custom options |
434 | 437 | */ |
435 | 438 | protected function parseEditorOptions($string) |
@@ -453,7 +456,7 @@ discard block |
||
453 | 456 | } |
454 | 457 | |
455 | 458 | /** |
456 | - * @param mixed $culture |
|
459 | + * @param string $culture |
|
457 | 460 | * @return string localized editor interface language extension. |
458 | 461 | */ |
459 | 462 | protected function getLanguageSuffix($culture) |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | |
381 | 381 | /** |
382 | 382 | * Parse additional options set in the Options property. |
383 | - * @param mixed $string |
|
383 | + * @param string $string |
|
384 | 384 | * @return array additional custom options |
385 | 385 | */ |
386 | 386 | protected function parseEditorOptions($string) |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | } |
405 | 405 | |
406 | 406 | /** |
407 | - * @param mixed $culture |
|
407 | + * @param string $culture |
|
408 | 408 | * @return string localized editor interface language extension. |
409 | 409 | */ |
410 | 410 | protected function getLanguageSuffix($culture) |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | /** |
263 | 263 | * Creates a collection object to hold list items. |
264 | 264 | * This method may be overriden to create a customized collection. |
265 | - * @return TListItemCollection the collection object |
|
265 | + * @return \Prado\Collections\TListItemCollection the collection object |
|
266 | 266 | */ |
267 | 267 | protected function createListItemCollection() |
268 | 268 | { |
@@ -738,7 +738,7 @@ discard block |
||
738 | 738 | * Raises OnSelectedIndexChanged event when selection is changed. |
739 | 739 | * This method is invoked when the list control has its selection changed |
740 | 740 | * by end-users. |
741 | - * @param TEventParameter $param event parameter |
|
741 | + * @param null|integer $param event parameter |
|
742 | 742 | */ |
743 | 743 | public function onSelectedIndexChanged($param) |
744 | 744 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
200 | - * @param mixed $value |
|
200 | + * @param string $value |
|
201 | 201 | * @return TRatingListStyle current rating style |
202 | 202 | */ |
203 | 203 | public function setCaption($value) |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | } |
215 | 215 | |
216 | 216 | /** |
217 | - * @return TRatingListStyle current rating style |
|
217 | + * @return string current rating style |
|
218 | 218 | */ |
219 | 219 | public function getRatingStyle() |
220 | 220 | { |
@@ -356,11 +356,17 @@ |
||
356 | 356 | } |
357 | 357 | } |
358 | 358 | |
359 | + /** |
|
360 | + * @param \Prado\Web\UI\ActiveControls\TCallbackEventParameter $param |
|
361 | + */ |
|
359 | 362 | public function onCallback($param) |
360 | 363 | { |
361 | 364 | $this->raiseEvent('OnCallback', $this, $param); |
362 | 365 | } |
363 | 366 | |
367 | + /** |
|
368 | + * @param \Prado\Web\UI\ActiveControls\TCallbackEventParameter $param |
|
369 | + */ |
|
364 | 370 | public function onCallbackExpired($param) |
365 | 371 | { |
366 | 372 | $this->raiseEvent('OnCallbackExpired', $this, $param); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | private $_active = false; |
33 | 33 | |
34 | 34 | /** |
35 | - * @return the tag name for the view element |
|
35 | + * @return string tag name for the view element |
|
36 | 36 | */ |
37 | 37 | protected function getTagName() |
38 | 38 | { |