Completed
Push — namespace2 ( fc6e2b...8a6673 )
by Fabio
08:49
created
framework/Data/ActiveRecord/TActiveRecord.php 1 patch
Doc Comments   +10 added lines, -2 removed lines patch added patch discarded remove patch
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 	/**
325 325
 	 * Gets the current Db connection, the connection object is obtained from
326 326
 	 * the TActiveRecordManager if connection is currently null.
327
-	 * @return TDbConnection current db connection for this object.
327
+	 * @return \Prado\Data\TDbConnection current db connection for this object.
328 328
 	 */
329 329
 	public function getDbConnection()
330 330
 	{
@@ -511,6 +511,7 @@  discard block
 block discarded – undo
511 511
 	 * Delete multiple records using a criteria.
512 512
 	 * @param string|TActiveRecordCriteria SQL condition or criteria object.
513 513
 	 * @param mixed parameter values.
514
+	 * @param TSqlCriteria $criteria
514 515
 	 * @return int number of records deleted.
515 516
 	 */
516 517
 	public function deleteAll($criteria=null, $parameters=array())
@@ -577,6 +578,7 @@  discard block
 block discarded – undo
577 578
 	 *
578 579
 	 * @param string|TActiveRecordCriteria SQL condition or criteria object.
579 580
 	 * @param mixed parameter values.
581
+	 * @param TSqlCriteria $criteria
580 582
 	 * @return TActiveRecord matching record object. Null if no result is found.
581 583
 	 */
582 584
 	public function find($criteria,$parameters=array())
@@ -593,6 +595,7 @@  discard block
 block discarded – undo
593 595
 	 *
594 596
 	 * @param string|TActiveRecordCriteria SQL condition or criteria object.
595 597
 	 * @param mixed parameter values.
598
+	 * @param TSqlCriteria $criteria
596 599
 	 * @return array matching record objects. Empty array if no result is found.
597 600
 	 */
598 601
 	public function findAll($criteria=null,$parameters=array())
@@ -706,6 +709,7 @@  discard block
 block discarded – undo
706 709
 	 * Find the number of records.
707 710
 	 * @param string|TActiveRecordCriteria SQL condition or criteria object.
708 711
 	 * @param mixed parameter values.
712
+	 * @param TActiveRecordCriteria $criteria
709 713
 	 * @return int number of records.
710 714
 	 */
711 715
 	public function count($criteria=null,$parameters=array())
@@ -721,6 +725,7 @@  discard block
 block discarded – undo
721 725
 	 * value equal to the $property value.
722 726
 	 * @param string relationship/property name corresponding to keys in $RELATION array.
723 727
 	 * @param array method call arguments.
728
+	 * @param string $name
724 729
 	 * @return TActiveRecordRelation, null if the context or the handler doesn't exist
725 730
 	 */
726 731
 	protected function getRelationHandler($name,$args=array())
@@ -945,6 +950,7 @@  discard block
 block discarded – undo
945 950
 	 * Raised before the record attempt to insert its data into the database.
946 951
 	 * To prevent the insert operation, set the TActiveRecordChangeEventParameter::IsValid parameter to false.
947 952
 	 * @param TActiveRecordChangeEventParameter event parameter to be passed to the event handlers
953
+	 * @param TActiveRecordChangeEventParameter $param
948 954
 	 */
949 955
 	public function onInsert($param)
950 956
 	{
@@ -955,6 +961,7 @@  discard block
 block discarded – undo
955 961
 	 * Raised before the record attempt to delete its data from the database.
956 962
 	 * To prevent the delete operation, set the TActiveRecordChangeEventParameter::IsValid parameter to false.
957 963
 	 * @param TActiveRecordChangeEventParameter event parameter to be passed to the event handlers
964
+	 * @param TActiveRecordChangeEventParameter $param
958 965
 	 */
959 966
 	public function onDelete($param)
960 967
 	{
@@ -965,6 +972,7 @@  discard block
 block discarded – undo
965 972
 	 * Raised before the record attempt to update its data in the database.
966 973
 	 * To prevent the update operation, set the TActiveRecordChangeEventParameter::IsValid parameter to false.
967 974
 	 * @param TActiveRecordChangeEventParameter event parameter to be passed to the event handlers
975
+	 * @param TActiveRecordChangeEventParameter $param
968 976
 	 */
969 977
 	public function onUpdate($param)
970 978
 	{
@@ -1048,7 +1056,7 @@  discard block
 block discarded – undo
1048 1056
     
1049 1057
     	/**
1050 1058
      	* Return record data as JSON
1051
-     	* @return JSON
1059
+     	* @return string
1052 1060
      	* @since 3.2.4
1053 1061
      	*/
1054 1062
     	public function toJSON(){
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/TActiveRecordGateway.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -236,6 +236,7 @@  discard block
 block discarded – undo
236 236
 	 * Return record data from sql query.
237 237
 	 * @param TActiveRecord active record finder instance.
238 238
 	 * @param TActiveRecordCriteria sql query
239
+	 * @param TSqlCriteria $criteria
239 240
 	 * @return array result.
240 241
 	 */
241 242
 	public function findRecordBySql(TActiveRecord $record, $criteria)
@@ -247,6 +248,7 @@  discard block
 block discarded – undo
247 248
 	 * Return record data from sql query.
248 249
 	 * @param TActiveRecord active record finder instance.
249 250
 	 * @param TActiveRecordCriteria sql query
251
+	 * @param TSqlCriteria $criteria
250 252
 	 * @return TDbDataReader result iterator.
251 253
 	 */
252 254
 	public function findRecordsBySql(TActiveRecord $record, $criteria)
@@ -288,6 +290,7 @@  discard block
 block discarded – undo
288 290
 	/**
289 291
 	 * Sets the last insert ID to the corresponding property of the record if available.
290 292
 	 * @param TActiveRecord record for insertion
293
+	 * @param TActiveRecord $record
291 294
 	 */
292 295
 	protected function updatePostInsert($record)
293 296
 	{
@@ -405,6 +408,7 @@  discard block
 block discarded – undo
405 408
 	 * Delete multiple records by criteria.
406 409
 	 * @param TActiveRecord active record finder instance.
407 410
 	 * @param TActiveRecordCriteria search criteria
411
+	 * @param TSqlCriteria $criteria
408 412
 	 * @return int number of records.
409 413
 	 */
410 414
 	public function deleteRecordsByCriteria(TActiveRecord $record, $criteria)
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/TActiveRecordManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -76,6 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
 	/**
78 78
 	 * @param TDbConnection default database connection
79
+	 * @param \Prado\Data\TDbConnection $conn
79 80
 	 */
80 81
 	public function setDbConnection($conn)
81 82
 	{
@@ -91,6 +92,7 @@  discard block
 block discarded – undo
91 92
 	}
92 93
 
93 94
 	/**
95
+	 * @param \Prado\TComponent $self
94 96
 	 * @return TActiveRecordManager static instance of record manager.
95 97
 	 */
96 98
 	public static function getInstance($self=null)
@@ -153,6 +155,7 @@  discard block
 block discarded – undo
153 155
 	/**
154 156
 	 * Define the way an active record finder react if an invalid magic-finder invoked
155 157
 	 * @param TActiveRecordInvalidFinderResult
158
+	 * @param TActiveRecordInvalidFinderResult $value
156 159
 	 * @since 3.1.5
157 160
 	 * @see getInvalidFinderResult
158 161
 	 */
Please login to merge, or discard this patch.
framework/Data/Common/Mssql/TMssqlTableInfo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
 	/**
56 56
 	 * @param TDbConnection database connection.
57
-	 * @return TDbCommandBuilder new command builder
57
+	 * @return TMssqlCommandBuilder new command builder
58 58
 	 */
59 59
 	public function createCommandBuilder($connection)
60 60
 	{
Please login to merge, or discard this patch.
framework/Data/Common/Mysql/TMysqlTableInfo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
 	/**
50 50
 	 * @param TDbConnection database connection.
51
-	 * @return TDbCommandBuilder new command builder
51
+	 * @return TMysqlCommandBuilder new command builder
52 52
 	 */
53 53
 	public function createCommandBuilder($connection)
54 54
 	{
Please login to merge, or discard this patch.
framework/Data/Common/Oracle/TOracleTableInfo.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
 	/**
49 49
 	 * @param TDbConnection database connection.
50
-	 * @return TDbCommandBuilder new command builder
50
+	 * @return TOracleCommandBuilder new command builder
51 51
 	 */
52 52
 	public function createCommandBuilder($connection)
53 53
 	{
@@ -57,6 +57,8 @@  discard block
 block discarded – undo
57 57
 	/**
58 58
 	 * @param string information array key name
59 59
 	 * @param mixed default value if information array value is null
60
+	 * @param string $name
61
+	 * @param boolean $default
60 62
 	 * @return mixed information array value.
61 63
 	 */
62 64
 	public function getInfo($name,$default=null)
Please login to merge, or discard this patch.
framework/Data/Common/Pgsql/TPgsqlTableInfo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
 	/**
50 50
 	 * @param TDbConnection database connection.
51
-	 * @return TDbCommandBuilder new command builder
51
+	 * @return TPgsqlCommandBuilder new command builder
52 52
 	 */
53 53
 	public function createCommandBuilder($connection)
54 54
 	{
Please login to merge, or discard this patch.
framework/Data/Common/Sqlite/TSqliteTableInfo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 {
30 30
 	/**
31 31
 	 * @param TDbConnection database connection.
32
-	 * @return TDbCommandBuilder new command builder
32
+	 * @return TSqliteCommandBuilder new command builder
33 33
 	 */
34 34
 	public function createCommandBuilder($connection)
35 35
 	{
Please login to merge, or discard this patch.
framework/Data/Common/TDbCommandBuilder.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,7 +191,6 @@  discard block
 block discarded – undo
191 191
 	 * array('col1' => 'NULL', '*')
192 192
 	 * // SELECT `col1`, `col2`, `col3`, NULL AS `col1` FROM...
193 193
 	 * </code>
194
-	 * @param mixed $value
195 194
 	 * @return array of generated fields - use implode(', ', $selectfieldlist) to collapse field list for usage
196 195
 	 * @since 3.1.7
197 196
 	 * @todo add support for table aliasing
@@ -399,7 +398,7 @@  discard block
 block discarded – undo
399 398
 	/**
400 399
 	 * Returns a list of insert field name and a list of binding names.
401 400
 	 * @param object array or object to be inserted.
402
-	 * @return array tuple ($fields, $bindings)
401
+	 * @return string[] tuple ($fields, $bindings)
403 402
 	 */
404 403
 	protected function getInsertFieldBindings($values)
405 404
 	{
Please login to merge, or discard this patch.