@@ -243,7 +243,7 @@ |
||
| 243 | 243 | * invoke the page's {@link TPage::validate validate} method first. |
| 244 | 244 | * It will raise {@link onClick OnClick} and {@link onCommand OnCommand} events. |
| 245 | 245 | * This method is mainly used by framework and control developers. |
| 246 | - * @param TEventParameter $param the event parameter |
|
| 246 | + * @param \Prado\Web\UI\ActiveControls\TCallbackEventParameter $param the event parameter |
|
| 247 | 247 | */ |
| 248 | 248 | public function raisePostBackEvent($param) |
| 249 | 249 | { |
@@ -449,7 +449,7 @@ |
||
| 449 | 449 | * Generates the token. |
| 450 | 450 | * @param string $publicKey public key |
| 451 | 451 | * @param string $privateKey private key |
| 452 | - * @param mixed $alphabet |
|
| 452 | + * @param string $alphabet |
|
| 453 | 453 | * @param int $tokenLength the length of the token |
| 454 | 454 | * @param bool $caseSensitive whether the token is case sensitive |
| 455 | 455 | * @return string the token generated. |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | 127 | * Returns the value of the property that needs validation. |
| 128 | - * @return mixed the property value to be validated |
|
| 128 | + * @return boolean the property value to be validated |
|
| 129 | 129 | */ |
| 130 | 130 | public function getValidationPropertyValue() |
| 131 | 131 | { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * Creates a control used for repetition (used as a template). |
| 63 | - * @return TControl the control to be repeated |
|
| 63 | + * @return TCheckBoxItem the control to be repeated |
|
| 64 | 64 | */ |
| 65 | 65 | protected function createRepeatedControl() |
| 66 | 66 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * the checkbox list itself (because the checkbox list does not have child controls.) |
| 74 | 74 | * @param string $id control ID |
| 75 | 75 | * @param mixed $real |
| 76 | - * @return TControl control being found |
|
| 76 | + * @return null|\Prado\Web\UI\TControl control being found |
|
| 77 | 77 | */ |
| 78 | 78 | public function findControl($id, $real = false) |
| 79 | 79 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | - * @return string the direction of traversing the list, defaults to 'Vertical' |
|
| 150 | + * @return TRepeatDirection the direction of traversing the list, defaults to 'Vertical' |
|
| 151 | 151 | */ |
| 152 | 152 | public function getRepeatDirection() |
| 153 | 153 | { |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | /** |
| 166 | - * @return string how the list should be displayed, using table or using line breaks. Defaults to 'Table'. |
|
| 166 | + * @return TRepeatLayout how the list should be displayed, using table or using line breaks. Defaults to 'Table'. |
|
| 167 | 167 | */ |
| 168 | 168 | public function getRepeatLayout() |
| 169 | 169 | { |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | /** |
| 437 | 437 | * Returns the value to be validated. |
| 438 | 438 | * This methid is required by \Prado\Web\UI\IValidatable interface. |
| 439 | - * @return mixed the value of the property to be validated. |
|
| 439 | + * @return string the value of the property to be validated. |
|
| 440 | 440 | */ |
| 441 | 441 | public function getValidationPropertyValue() |
| 442 | 442 | { |
@@ -411,6 +411,9 @@ |
||
| 411 | 411 | return $this->_currentDataSource; |
| 412 | 412 | } |
| 413 | 413 | |
| 414 | + /** |
|
| 415 | + * @param \Traversable $data |
|
| 416 | + */ |
|
| 414 | 417 | abstract protected function performDataBinding($data); |
| 415 | 418 | |
| 416 | 419 | /** |
@@ -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) |