@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | } |
155 | 155 | |
156 | 156 | /** |
157 | - * @return string the direction of traversing the list, defaults to 'Vertical' |
|
157 | + * @return TRepeatDirection the direction of traversing the list, defaults to 'Vertical' |
|
158 | 158 | */ |
159 | 159 | public function getRepeatDirection() |
160 | 160 | { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
173 | - * @return string how the list should be displayed, using table or using line breaks. Defaults to 'Table'. |
|
173 | + * @return TRepeatLayout how the list should be displayed, using table or using line breaks. Defaults to 'Table'. |
|
174 | 174 | */ |
175 | 175 | public function getRepeatLayout() |
176 | 176 | { |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | /** |
450 | 450 | * Returns the value to be validated. |
451 | 451 | * This methid is required by IValidatable interface. |
452 | - * @return mixed the value of the property to be validated. |
|
452 | + * @return string the value of the property to be validated. |
|
453 | 453 | */ |
454 | 454 | public function getValidationPropertyValue() |
455 | 455 | { |
@@ -186,6 +186,8 @@ |
||
186 | 186 | * Parse the pair of values into the appropriate value type. |
187 | 187 | * @param string value one |
188 | 188 | * @param string second value |
189 | + * @param string $value1 |
|
190 | + * @param string $value2 |
|
189 | 191 | * @return array appropriate type of the value pair, array($value1, $value2); |
190 | 192 | */ |
191 | 193 | protected function getComparisonValues($value1, $value2) |
@@ -171,6 +171,7 @@ |
||
171 | 171 | * Constructor. |
172 | 172 | * @param string property value to be validated |
173 | 173 | * @param boolean whether the value is valid |
174 | + * @param boolean $isValid |
|
174 | 175 | */ |
175 | 176 | public function __construct($value,$isValid) |
176 | 177 | { |
@@ -151,6 +151,7 @@ discard block |
||
151 | 151 | |
152 | 152 | /** |
153 | 153 | * @param boolean if databind has been invoked in this page request |
154 | + * @param boolean $value |
|
154 | 155 | */ |
155 | 156 | protected function setIsDataBound($value) |
156 | 157 | { |
@@ -211,6 +212,7 @@ discard block |
||
211 | 212 | |
212 | 213 | /** |
213 | 214 | * @param integer the zero-based index of the current page |
215 | + * @param integer $value |
|
214 | 216 | * @throws TInvalidDataValueException if the value is less than 0 |
215 | 217 | */ |
216 | 218 | public function setCurrentPageIndex($value) |
@@ -273,6 +275,7 @@ discard block |
||
273 | 275 | * If true and the control has been prerendered while it uses the data source |
274 | 276 | * specified by {@link setDataSourceID}, a databind call will be called by this method. |
275 | 277 | * @param boolean whether a databind call is required. |
278 | + * @param boolean $value |
|
276 | 279 | */ |
277 | 280 | protected function setRequiresDataBinding($value) |
278 | 281 | { |
@@ -405,6 +408,9 @@ discard block |
||
405 | 408 | return $this->_currentDataSource; |
406 | 409 | } |
407 | 410 | |
411 | + /** |
|
412 | + * @param Traversable $data |
|
413 | + */ |
|
408 | 414 | abstract protected function performDataBinding($data); |
409 | 415 | |
410 | 416 | /** |
@@ -566,6 +572,7 @@ discard block |
||
566 | 572 | * Sets the zero-based index for the item. |
567 | 573 | * If the item is not in the item collection (e.g. it is a header item), -1 should be used. |
568 | 574 | * @param integer zero-based index of the item. |
575 | + * @return void |
|
569 | 576 | */ |
570 | 577 | public function setItemIndex($value); |
571 | 578 | |
@@ -576,6 +583,7 @@ discard block |
||
576 | 583 | |
577 | 584 | /** |
578 | 585 | * @param TListItemType the item type. |
586 | + * @return void |
|
579 | 587 | */ |
580 | 588 | public function setItemType($value); |
581 | 589 | } |
@@ -534,6 +534,7 @@ discard block |
||
534 | 534 | * If the item to be selected is already in edit mode, it will remain in edit mode. |
535 | 535 | * If the index is less than 0, any existing selection will be cleared up. |
536 | 536 | * @param integer the selected item index |
537 | + * @param integer $value |
|
537 | 538 | */ |
538 | 539 | public function setSelectedItemIndex($value) |
539 | 540 | { |
@@ -762,6 +763,7 @@ discard block |
||
762 | 763 | * This method is invoked when a button control raises <b>OnCommand</b> event |
763 | 764 | * with <b>cancel</b> command name. |
764 | 765 | * @param TDataGridCommandEventParameter event parameter |
766 | + * @param TDataGridCommandEventParameter $param |
|
765 | 767 | */ |
766 | 768 | public function onCancelCommand($param) |
767 | 769 | { |
@@ -773,6 +775,7 @@ discard block |
||
773 | 775 | * This method is invoked when a button control raises <b>OnCommand</b> event |
774 | 776 | * with <b>delete</b> command name. |
775 | 777 | * @param TDataGridCommandEventParameter event parameter |
778 | + * @param TDataGridCommandEventParameter $param |
|
776 | 779 | */ |
777 | 780 | public function onDeleteCommand($param) |
778 | 781 | { |
@@ -784,6 +787,7 @@ discard block |
||
784 | 787 | * This method is invoked when a button control raises <b>OnCommand</b> event |
785 | 788 | * with <b>edit</b> command name. |
786 | 789 | * @param TDataGridCommandEventParameter event parameter |
790 | + * @param TDataGridCommandEventParameter $param |
|
787 | 791 | */ |
788 | 792 | public function onEditCommand($param) |
789 | 793 | { |
@@ -794,6 +798,7 @@ discard block |
||
794 | 798 | * Raises <b>OnItemCommand</b> event. |
795 | 799 | * This method is invoked when a button control raises <b>OnCommand</b> event. |
796 | 800 | * @param TDataGridCommandEventParameter event parameter |
801 | + * @param TDataGridCommandEventParameter $param |
|
797 | 802 | */ |
798 | 803 | public function onItemCommand($param) |
799 | 804 | { |
@@ -805,6 +810,7 @@ discard block |
||
805 | 810 | * This method is invoked when a button control raises <b>OnCommand</b> event |
806 | 811 | * with <b>sort</b> command name. |
807 | 812 | * @param TDataGridSortCommandEventParameter event parameter |
813 | + * @param TDataGridSortCommandEventParameter $param |
|
808 | 814 | */ |
809 | 815 | public function onSortCommand($param) |
810 | 816 | { |
@@ -816,6 +822,7 @@ discard block |
||
816 | 822 | * This method is invoked when a button control raises <b>OnCommand</b> event |
817 | 823 | * with <b>update</b> command name. |
818 | 824 | * @param TDataGridCommandEventParameter event parameter |
825 | + * @param TDataGridCommandEventParameter $param |
|
819 | 826 | */ |
820 | 827 | public function onUpdateCommand($param) |
821 | 828 | { |
@@ -827,6 +834,7 @@ discard block |
||
827 | 834 | * This method is invoked right after a datagrid item is created and before |
828 | 835 | * added to page hierarchy. |
829 | 836 | * @param TDataGridItemEventParameter event parameter |
837 | + * @param TDataGridItemEventParameter $param |
|
830 | 838 | */ |
831 | 839 | public function onItemCreated($param) |
832 | 840 | { |
@@ -838,6 +846,7 @@ discard block |
||
838 | 846 | * This method is invoked right after a datagrid pager is created and before |
839 | 847 | * added to page hierarchy. |
840 | 848 | * @param TDataGridPagerEventParameter event parameter |
849 | + * @param TDataGridPagerEventParameter $param |
|
841 | 850 | */ |
842 | 851 | public function onPagerCreated($param) |
843 | 852 | { |
@@ -849,6 +858,7 @@ discard block |
||
849 | 858 | * This method is invoked for each datagrid item after it performs |
850 | 859 | * databinding. |
851 | 860 | * @param TDataGridItemEventParameter event parameter |
861 | + * @param TDataGridItemEventParameter $param |
|
852 | 862 | */ |
853 | 863 | public function onItemDataBound($param) |
854 | 864 | { |
@@ -859,6 +869,7 @@ discard block |
||
859 | 869 | * Raises <b>OnPageIndexChanged</b> event. |
860 | 870 | * This method is invoked when current page is changed. |
861 | 871 | * @param TDataGridPageChangedEventParameter event parameter |
872 | + * @param TDataGridPageChangedEventParameter $param |
|
862 | 873 | */ |
863 | 874 | public function onPageIndexChanged($param) |
864 | 875 | { |
@@ -1155,6 +1166,11 @@ discard block |
||
1155 | 1166 | return new TDataGridItem($itemIndex,$dataSourceIndex,$itemType); |
1156 | 1167 | } |
1157 | 1168 | |
1169 | + /** |
|
1170 | + * @param integer $itemIndex |
|
1171 | + * @param boolean $dataBind |
|
1172 | + * @param TList $columns |
|
1173 | + */ |
|
1158 | 1174 | private function createItemInternal($itemIndex,$dataSourceIndex,$itemType,$dataBind,$dataItem,$columns) |
1159 | 1175 | { |
1160 | 1176 | $item=$this->createItem($itemIndex,$dataSourceIndex,$itemType); |
@@ -1180,6 +1196,7 @@ discard block |
||
1180 | 1196 | * Initializes a datagrid item and cells inside it |
1181 | 1197 | * @param TDataGrid datagrid item to be initialized |
1182 | 1198 | * @param TDataGridColumnCollection datagrid columns to be used to initialize the cells in the item |
1199 | + * @param TDataGridItem $item |
|
1183 | 1200 | */ |
1184 | 1201 | protected function initializeItem($item,$columns) |
1185 | 1202 | { |
@@ -1212,6 +1229,7 @@ discard block |
||
1212 | 1229 | /** |
1213 | 1230 | * Builds the pager content based on pager style. |
1214 | 1231 | * @param TDataGridPager the container for the pager |
1232 | + * @param TDataGridPager $pager |
|
1215 | 1233 | */ |
1216 | 1234 | protected function buildPager($pager) |
1217 | 1235 | { |
@@ -1237,6 +1255,9 @@ discard block |
||
1237 | 1255 | * @param string caption of the button |
1238 | 1256 | * @param string CommandName corresponding to the OnCommand event of the button |
1239 | 1257 | * @param string CommandParameter corresponding to the OnCommand event of the button |
1258 | + * @param TDataGridPagerButtonType $buttonType |
|
1259 | + * @param boolean $enabled |
|
1260 | + * @param string $commandName |
|
1240 | 1261 | * @return mixed the button instance |
1241 | 1262 | */ |
1242 | 1263 | protected function createPagerButton($pager,$buttonType,$enabled,$text,$commandName,$commandParameter) |
@@ -1881,6 +1902,7 @@ discard block |
||
1881 | 1902 | * Constructor. |
1882 | 1903 | * @param TControl the control originally raises the <b>OnCommand</b> event. |
1883 | 1904 | * @param integer new page index |
1905 | + * @param integer $newPageIndex |
|
1884 | 1906 | */ |
1885 | 1907 | public function __construct($source,$newPageIndex) |
1886 | 1908 | { |
@@ -1957,7 +1979,7 @@ discard block |
||
1957 | 1979 | } |
1958 | 1980 | |
1959 | 1981 | /** |
1960 | - * @return TListItemType item type. |
|
1982 | + * @return string item type. |
|
1961 | 1983 | */ |
1962 | 1984 | public function getItemType() |
1963 | 1985 | { |
@@ -2062,6 +2084,7 @@ discard block |
||
2062 | 2084 | /** |
2063 | 2085 | * Constructor. |
2064 | 2086 | * @param TDataGrid datagrid object |
2087 | + * @param TDataGrid $dataGrid |
|
2065 | 2088 | */ |
2066 | 2089 | public function __construct($dataGrid) |
2067 | 2090 | { |
@@ -281,6 +281,7 @@ discard block |
||
281 | 281 | * |
282 | 282 | * @param string the name of the viewstate value to be returned |
283 | 283 | * @param mixed the default value. If $key is not found in viewstate, $defaultValue will be returned |
284 | + * @param string $key |
|
284 | 285 | * @return mixed the viewstate value corresponding to $key |
285 | 286 | */ |
286 | 287 | protected function getViewState($key,$defaultValue=null) |
@@ -295,6 +296,7 @@ discard block |
||
295 | 296 | * @param string the name of the viewstate value |
296 | 297 | * @param mixed the viewstate value to be set |
297 | 298 | * @param mixed default value. If $value===$defaultValue, the item will be cleared from the viewstate. |
299 | + * @param string $key |
|
298 | 300 | */ |
299 | 301 | protected function setViewState($key,$value,$defaultValue=null) |
300 | 302 | { |
@@ -356,6 +358,7 @@ discard block |
||
356 | 358 | * If the data is a component, the field is used as the name of a property. |
357 | 359 | * @param mixed data containing the field of value |
358 | 360 | * @param string the data field |
361 | + * @param string $field |
|
359 | 362 | * @return mixed data value at the specified field |
360 | 363 | * @throws TInvalidDataValueException if the data or the field is invalid. |
361 | 364 | */ |
@@ -515,6 +518,7 @@ discard block |
||
515 | 518 | * as the first and second parameters in {@link sprintf}. |
516 | 519 | * @param string format string |
517 | 520 | * @param mixed the data to be formatted |
521 | + * @param string $formatString |
|
518 | 522 | * @return string the formatted result |
519 | 523 | */ |
520 | 524 | protected function formatDataValue($formatString,$value) |
@@ -404,6 +404,7 @@ discard block |
||
404 | 404 | |
405 | 405 | /** |
406 | 406 | * @param ITemplate the template for item |
407 | + * @param TWizardSideBarListItemTemplate $value |
|
407 | 408 | * @throws TInvalidDataTypeException if the input is not an {@link ITemplate} or not null. |
408 | 409 | */ |
409 | 410 | public function setItemTemplate($value) |
@@ -959,6 +960,7 @@ discard block |
||
959 | 960 | * If you override this method, be sure to call parent's implementation |
960 | 961 | * so that event handlers have chance to respond to the event. |
961 | 962 | * @param TDataListItemEventParameter event parameter |
963 | + * @param TDataListItemEventParameter $param |
|
962 | 964 | */ |
963 | 965 | public function onItemCreated($param) |
964 | 966 | { |
@@ -973,6 +975,7 @@ discard block |
||
973 | 975 | * If you override this method, be sure to call parent's implementation |
974 | 976 | * so that event handlers have chance to respond to the event. |
975 | 977 | * @param TDataListItemEventParameter event parameter |
978 | + * @param TDataListItemEventParameter $param |
|
976 | 979 | */ |
977 | 980 | public function onItemDataBound($param) |
978 | 981 | { |
@@ -984,6 +987,7 @@ discard block |
||
984 | 987 | * This method is invoked when a child control of the data list |
985 | 988 | * raises an <b>OnCommand</b> event. |
986 | 989 | * @param TDataListCommandEventParameter event parameter |
990 | + * @param TDataListCommandEventParameter $param |
|
987 | 991 | */ |
988 | 992 | public function onItemCommand($param) |
989 | 993 | { |
@@ -995,6 +999,7 @@ discard block |
||
995 | 999 | * This method is invoked when a child control of the data list |
996 | 1000 | * raises an <b>OnCommand</b> event and the command name is 'edit' (case-insensitive). |
997 | 1001 | * @param TDataListCommandEventParameter event parameter |
1002 | + * @param TDataListCommandEventParameter $param |
|
998 | 1003 | */ |
999 | 1004 | public function onEditCommand($param) |
1000 | 1005 | { |
@@ -1006,6 +1011,7 @@ discard block |
||
1006 | 1011 | * This method is invoked when a child control of the data list |
1007 | 1012 | * raises an <b>OnCommand</b> event and the command name is 'delete' (case-insensitive). |
1008 | 1013 | * @param TDataListCommandEventParameter event parameter |
1014 | + * @param TDataListCommandEventParameter $param |
|
1009 | 1015 | */ |
1010 | 1016 | public function onDeleteCommand($param) |
1011 | 1017 | { |
@@ -1017,6 +1023,7 @@ discard block |
||
1017 | 1023 | * This method is invoked when a child control of the data list |
1018 | 1024 | * raises an <b>OnCommand</b> event and the command name is 'update' (case-insensitive). |
1019 | 1025 | * @param TDataListCommandEventParameter event parameter |
1026 | + * @param TDataListCommandEventParameter $param |
|
1020 | 1027 | */ |
1021 | 1028 | public function onUpdateCommand($param) |
1022 | 1029 | { |
@@ -1028,6 +1035,7 @@ discard block |
||
1028 | 1035 | * This method is invoked when a child control of the data list |
1029 | 1036 | * raises an <b>OnCommand</b> event and the command name is 'cancel' (case-insensitive). |
1030 | 1037 | * @param TDataListCommandEventParameter event parameter |
1038 | + * @param TDataListCommandEventParameter $param |
|
1031 | 1039 | */ |
1032 | 1040 | public function onCancelCommand($param) |
1033 | 1041 | { |
@@ -1131,6 +1139,7 @@ discard block |
||
1131 | 1139 | * This method invokes {@link createItem} to create a new datalist item. |
1132 | 1140 | * @param integer zero-based item index. |
1133 | 1141 | * @param TListItemType item type |
1142 | + * @param integer $itemIndex |
|
1134 | 1143 | * @return TControl the created item, null if item is not created |
1135 | 1144 | */ |
1136 | 1145 | private function createItemInternal($itemIndex,$itemType) |
@@ -1152,6 +1161,7 @@ discard block |
||
1152 | 1161 | * @param integer zero-based item index. |
1153 | 1162 | * @param TListItemType item type |
1154 | 1163 | * @param mixed data to be associated with the item |
1164 | + * @param integer $itemIndex |
|
1155 | 1165 | * @return TControl the created item, null if item is not created |
1156 | 1166 | */ |
1157 | 1167 | private function createItemWithDataInternal($itemIndex,$itemType,$dataItem) |
@@ -1511,6 +1521,7 @@ discard block |
||
1511 | 1521 | /** |
1512 | 1522 | * Constructor. |
1513 | 1523 | * @param TControl DataList item related with the corresponding event |
1524 | + * @param TControl $item |
|
1514 | 1525 | */ |
1515 | 1526 | public function __construct($item) |
1516 | 1527 | { |
@@ -20,6 +20,10 @@ discard block |
||
20 | 20 | { |
21 | 21 | public function getView($viewName); |
22 | 22 | public function getViewNames(); |
23 | + |
|
24 | + /** |
|
25 | + * @return void |
|
26 | + */ |
|
23 | 27 | public function onDataSourceChanged($param); |
24 | 28 | } |
25 | 29 | |
@@ -95,6 +99,9 @@ discard block |
||
95 | 99 | private $_dataSource; |
96 | 100 | private $_dataMember; |
97 | 101 | |
102 | + /** |
|
103 | + * @param Traversable $dataSource |
|
104 | + */ |
|
98 | 105 | public function __construct($dataSource,$dataMember) |
99 | 106 | { |
100 | 107 | if(!is_array($dataSource) && !($dataSource instanceof IDataSource) && !($dataSource instanceof Traversable)) |
@@ -82,6 +82,7 @@ |
||
82 | 82 | /** |
83 | 83 | * Determine if the given value is of a particular type using RegExp. |
84 | 84 | * @param string value to check |
85 | + * @param string $value |
|
85 | 86 | * @return boolean true if value fits the type expression. |
86 | 87 | */ |
87 | 88 | protected function evaluateDataTypeCheck($value) |