@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | private $_record; |
37 | 37 | |
38 | 38 | /** |
39 | - * @return TDbMetaData table/view information |
|
39 | + * @return TDbTableInfo table/view information |
|
40 | 40 | */ |
41 | 41 | protected function getTableInfo() |
42 | 42 | { |
@@ -84,6 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * Name of the Active Record class to be viewed or scaffolded. |
86 | 86 | * @param string Active Record class name. |
87 | + * @param string $value |
|
87 | 88 | */ |
88 | 89 | public function setRecordClass($value) |
89 | 90 | { |
@@ -183,6 +184,7 @@ discard block |
||
183 | 184 | |
184 | 185 | /** |
185 | 186 | * @param boolean enable default stylesheet, default is true. |
187 | + * @param boolean $value |
|
186 | 188 | */ |
187 | 189 | public function setEnableDefaultStyle($value) |
188 | 190 | { |
@@ -129,6 +129,8 @@ discard block |
||
129 | 129 | * Instantiate the external edit renderer. |
130 | 130 | * @param TActiveRecord record to be edited |
131 | 131 | * @param string external edit renderer class name. |
132 | + * @param TActiveRecord $record |
|
133 | + * @param string $classPath |
|
132 | 134 | * @throws TConfigurationException raised when renderer is not an |
133 | 135 | * instance of IScaffoldEditRenderer. |
134 | 136 | */ |
@@ -260,6 +262,7 @@ discard block |
||
260 | 262 | /** |
261 | 263 | * Create the default scaffold editor control factory. |
262 | 264 | * @param TActiveRecord record instance. |
265 | + * @param TActiveRecord $record |
|
263 | 266 | * @return TScaffoldInputBase scaffold editor control factory. |
264 | 267 | */ |
265 | 268 | protected function getScaffoldInputBuilder($record) |
@@ -300,6 +303,7 @@ discard block |
||
300 | 303 | /** |
301 | 304 | * This method should update the record with the user input data. |
302 | 305 | * @param TActiveRecord record to be saved. |
306 | + * @param TActiveRecord $record |
|
303 | 307 | */ |
304 | 308 | public function updateRecord($record); |
305 | 309 | } |
@@ -121,6 +121,7 @@ |
||
121 | 121 | |
122 | 122 | /** |
123 | 123 | * @param string search condition, the SQL string after the WHERE clause. |
124 | + * @param string|null $value |
|
124 | 125 | */ |
125 | 126 | public function setSearchCondition($value) |
126 | 127 | { |
@@ -651,6 +651,7 @@ discard block |
||
651 | 651 | * class. |
652 | 652 | * @param string select SQL |
653 | 653 | * @param array $parameters |
654 | + * @param string $sql |
|
654 | 655 | * @return TActiveRecord, null if no result is returned. |
655 | 656 | */ |
656 | 657 | public function findBySql($sql,$parameters=array()) |
@@ -715,6 +716,7 @@ discard block |
||
715 | 716 | * value equal to the $property value. |
716 | 717 | * @param string relationship/property name corresponding to keys in $RELATION array. |
717 | 718 | * @param array method call arguments. |
719 | + * @param string $name |
|
718 | 720 | * @return TActiveRecordRelation, null if the context or the handler doesn't exist |
719 | 721 | */ |
720 | 722 | protected function getRelationHandler($name,$args=array()) |
@@ -939,6 +941,7 @@ discard block |
||
939 | 941 | * Raised before the record attempt to insert its data into the database. |
940 | 942 | * To prevent the insert operation, set the TActiveRecordChangeEventParameter::IsValid parameter to false. |
941 | 943 | * @param TActiveRecordChangeEventParameter event parameter to be passed to the event handlers |
944 | + * @param TActiveRecordChangeEventParameter $param |
|
942 | 945 | */ |
943 | 946 | public function onInsert($param) |
944 | 947 | { |
@@ -949,6 +952,7 @@ discard block |
||
949 | 952 | * Raised before the record attempt to delete its data from the database. |
950 | 953 | * To prevent the delete operation, set the TActiveRecordChangeEventParameter::IsValid parameter to false. |
951 | 954 | * @param TActiveRecordChangeEventParameter event parameter to be passed to the event handlers |
955 | + * @param TActiveRecordChangeEventParameter $param |
|
952 | 956 | */ |
953 | 957 | public function onDelete($param) |
954 | 958 | { |
@@ -959,6 +963,7 @@ discard block |
||
959 | 963 | * Raised before the record attempt to update its data in the database. |
960 | 964 | * To prevent the update operation, set the TActiveRecordChangeEventParameter::IsValid parameter to false. |
961 | 965 | * @param TActiveRecordChangeEventParameter event parameter to be passed to the event handlers |
966 | + * @param TActiveRecordChangeEventParameter $param |
|
962 | 967 | */ |
963 | 968 | public function onUpdate($param) |
964 | 969 | { |
@@ -1042,7 +1047,7 @@ discard block |
||
1042 | 1047 | |
1043 | 1048 | /** |
1044 | 1049 | * Return record data as JSON |
1045 | - * @return JSON |
|
1050 | + * @return string |
|
1046 | 1051 | * @since 3.2.4 |
1047 | 1052 | */ |
1048 | 1053 | public function toJSON(){ |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * Returns records matching the list of given primary keys. |
202 | 202 | * @param TActiveRecord active record instance. |
203 | 203 | * @param array list of primary name value pairs |
204 | - * @return array matching data. |
|
204 | + * @return TDbDataReader matching data. |
|
205 | 205 | */ |
206 | 206 | public function findRecordsByPks(TActiveRecord $record, $keys) |
207 | 207 | { |
@@ -227,7 +227,8 @@ discard block |
||
227 | 227 | * Return record data from sql query. |
228 | 228 | * @param TActiveRecord active record finder instance. |
229 | 229 | * @param TActiveRecordCriteria sql query |
230 | - * @return array result. |
|
230 | + * @param TSqlCriteria $criteria |
|
231 | + * @return TDbDataReader result. |
|
231 | 232 | */ |
232 | 233 | public function findRecordBySql(TActiveRecord $record, $criteria) |
233 | 234 | { |
@@ -238,6 +239,7 @@ discard block |
||
238 | 239 | * Return record data from sql query. |
239 | 240 | * @param TActiveRecord active record finder instance. |
240 | 241 | * @param TActiveRecordCriteria sql query |
242 | + * @param TSqlCriteria $criteria |
|
241 | 243 | * @return TDbDataReader result iterator. |
242 | 244 | */ |
243 | 245 | public function findRecordsBySql(TActiveRecord $record, $criteria) |
@@ -264,7 +266,7 @@ discard block |
||
264 | 266 | /** |
265 | 267 | * Insert a new record. |
266 | 268 | * @param TActiveRecord new record. |
267 | - * @return int number of rows affected. |
|
269 | + * @return string|boolean number of rows affected. |
|
268 | 270 | */ |
269 | 271 | public function insert(TActiveRecord $record) |
270 | 272 | { |
@@ -279,6 +281,7 @@ discard block |
||
279 | 281 | /** |
280 | 282 | * Sets the last insert ID to the corresponding property of the record if available. |
281 | 283 | * @param TActiveRecord record for insertion |
284 | + * @param TActiveRecord $record |
|
282 | 285 | */ |
283 | 286 | protected function updatePostInsert($record) |
284 | 287 | { |
@@ -396,6 +399,7 @@ discard block |
||
396 | 399 | * Delete multiple records by criteria. |
397 | 400 | * @param TActiveRecord active record finder instance. |
398 | 401 | * @param TActiveRecordCriteria search criteria |
402 | + * @param TSqlCriteria $criteria |
|
399 | 403 | * @return int number of records. |
400 | 404 | */ |
401 | 405 | public function deleteRecordsByCriteria(TActiveRecord $record, $criteria) |
@@ -67,6 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * @param ICache application cache |
70 | + * @param ICache $value |
|
70 | 71 | */ |
71 | 72 | public function setCache($value) |
72 | 73 | { |
@@ -90,6 +91,7 @@ discard block |
||
90 | 91 | } |
91 | 92 | |
92 | 93 | /** |
94 | + * @param TComponent $self |
|
93 | 95 | * @return TActiveRecordManager static instance of record manager. |
94 | 96 | */ |
95 | 97 | public static function getInstance($self=null) |
@@ -152,6 +154,7 @@ discard block |
||
152 | 154 | /** |
153 | 155 | * Define the way an active record finder react if an invalid magic-finder invoked |
154 | 156 | * @param TActiveRecordInvalidFinderResult |
157 | + * @param TActiveRecordInvalidFinderResult $value |
|
155 | 158 | * @since 3.1.5 |
156 | 159 | * @see getInvalidFinderResult |
157 | 160 | */ |
@@ -123,6 +123,7 @@ |
||
123 | 123 | /** |
124 | 124 | * @param TMssqlTableInfo table information. |
125 | 125 | * @param array column information. |
126 | + * @param TMssqlTableInfo $tableInfo |
|
126 | 127 | */ |
127 | 128 | protected function processColumn($tableInfo, $col) |
128 | 129 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Overrides parent implementation, returns PHP type from the db type. |
30 | - * @return boolean derived PHP primitive type from the column db type. |
|
30 | + * @return string derived PHP primitive type from the column db type. |
|
31 | 31 | */ |
32 | 32 | public function getPHPType() |
33 | 33 | { |
@@ -114,6 +114,7 @@ |
||
114 | 114 | /** |
115 | 115 | * @param TMysqlTableInfo table information. |
116 | 116 | * @param array column information. |
117 | + * @param TMysqlTableInfo $tableInfo |
|
117 | 118 | */ |
118 | 119 | protected function processColumn($tableInfo, $col) |
119 | 120 | { |