@@ -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 | { |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | /** |
| 146 | 146 | * @param string table schema name |
| 147 | 147 | * @param string table name. |
| 148 | - * @return boolean true if the table is a view. |
|
| 148 | + * @return integer true if the table is a view. |
|
| 149 | 149 | */ |
| 150 | 150 | protected function getIsView($schemaName,$tableName) |
| 151 | 151 | { |
@@ -167,6 +167,7 @@ discard block |
||
| 167 | 167 | /** |
| 168 | 168 | * @param TOracleTableInfo table information. |
| 169 | 169 | * @param array column information. |
| 170 | + * @param TOracleTableInfo $tableInfo |
|
| 170 | 171 | */ |
| 171 | 172 | protected function processColumn($tableInfo, $col) |
| 172 | 173 | { |
@@ -322,6 +323,7 @@ discard block |
||
| 322 | 323 | /** |
| 323 | 324 | * @param string column name. |
| 324 | 325 | * @param TOracleTableInfo table information. |
| 326 | + * @param string $columnId |
|
| 325 | 327 | * @return boolean true if column is a foreign key. |
| 326 | 328 | */ |
| 327 | 329 | protected function isForeignKeyColumn($columnId, $tableInfo) |
@@ -53,6 +53,8 @@ |
||
| 53 | 53 | /** |
| 54 | 54 | * @param string information array key name |
| 55 | 55 | * @param mixed default value if information array value is null |
| 56 | + * @param string $name |
|
| 57 | + * @param boolean $default |
|
| 56 | 58 | * @return mixed information array value. |
| 57 | 59 | */ |
| 58 | 60 | public function getInfo($name,$default=null) |