Completed
Push — prado-3.3 ( 93ffb3...b1ee51 )
by Fabio
19:32
created
framework/Data/ActiveRecord/TActiveRecordManager.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -67,6 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
 	/**
69 69
 	 * @param ICache application cache
70
+	 * @param ICache $value
70 71
 	 */
71 72
 	public function setCache($value)
72 73
 	{
@@ -75,6 +76,7 @@  discard block
 block discarded – undo
75 76
 
76 77
 	/**
77 78
 	 * @param TDbConnection default database connection
79
+	 * @param TDbConnection $conn
78 80
 	 */
79 81
 	public function setDbConnection($conn)
80 82
 	{
@@ -90,6 +92,7 @@  discard block
 block discarded – undo
90 92
 	}
91 93
 
92 94
 	/**
95
+	 * @param TComponent $self
93 96
 	 * @return TActiveRecordManager static instance of record manager.
94 97
 	 */
95 98
 	public static function getInstance($self=null)
@@ -152,6 +155,7 @@  discard block
 block discarded – undo
152 155
 	/**
153 156
 	 * Define the way an active record finder react if an invalid magic-finder invoked
154 157
 	 * @param TActiveRecordInvalidFinderResult
158
+	 * @param TActiveRecordInvalidFinderResult $value
155 159
 	 * @since 3.1.5
156 160
 	 * @see getInvalidFinderResult
157 161
 	 */
Please login to merge, or discard this patch.
framework/Data/DataGateway/TTableGateway.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,6 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
 	/**
102 102
 	 * @param TDbTableInfo table or view information.
103
+	 * @param TDbTableInfo $tableInfo
103 104
 	 */
104 105
 	protected function setTableInfo($tableInfo)
105 106
 	{
@@ -110,6 +111,7 @@  discard block
 block discarded – undo
110 111
 	/**
111 112
 	 * Sets up the command builder for the given table.
112 113
 	 * @param string table or view name.
114
+	 * @param string $tableName
113 115
 	 */
114 116
 	protected function setTableName($tableName)
115 117
 	{
@@ -185,7 +187,7 @@  discard block
 block discarded – undo
185 187
 	 * Execute arbituary sql command with binding parameters.
186 188
 	 * @param string SQL query string.
187 189
 	 * @param array binding parameters, positional or named.
188
-	 * @return array query results.
190
+	 * @return TDbDataReader query results.
189 191
 	 */
190 192
 	public function findBySql($sql, $parameters=array())
191 193
 	{
@@ -222,6 +224,7 @@  discard block
 block discarded – undo
222 224
 	 *
223 225
 	 * @param string|TSqlCriteria SQL condition or criteria object.
224 226
 	 * @param mixed parameter values.
227
+	 * @param TActiveRecordCriteria $criteria
225 228
 	 * @return array matching record object.
226 229
 	 */
227 230
 	public function find($criteria, $parameters=array())
@@ -235,6 +238,7 @@  discard block
 block discarded – undo
235 238
 	 * Accepts same parameters as find(), but returns TDbDataReader instead.
236 239
 	 * @param string|TSqlCriteria SQL condition or criteria object.
237 240
 	 * @param mixed parameter values.
241
+	 * @param TActiveRecordCriteria $criteria
238 242
 	 * @return TDbDataReader matching records.
239 243
 	 */
240 244
 	public function findAll($criteria=null, $parameters=array())
@@ -297,6 +301,7 @@  discard block
 block discarded – undo
297 301
 	 * </code>
298 302
 	 * @param string delete condition.
299 303
 	 * @param array condition parameters.
304
+	 * @param TActiveRecordCriteria $criteria
300 305
 	 * @return integer number of records deleted.
301 306
 	 */
302 307
 	public function deleteAll($criteria, $parameters=array())
@@ -385,7 +390,7 @@  discard block
 block discarded – undo
385 390
 	 * Inserts a new record into the table. Each array key must
386 391
 	 * correspond to a column name in the table unless a null value is permitted.
387 392
 	 * @param array new record data.
388
-	 * @return mixed last insert id if one column contains a serial or sequence,
393
+	 * @return string|boolean last insert id if one column contains a serial or sequence,
389 394
 	 * otherwise true if command executes successfully and affected 1 or more rows.
390 395
 	 */
391 396
 	public function insert($data)
@@ -394,7 +399,7 @@  discard block
 block discarded – undo
394 399
 	}
395 400
 
396 401
 	/**
397
-	 * @return mixed last insert id, null if none is found.
402
+	 * @return string|null last insert id, null if none is found.
398 403
 	 */
399 404
 	public function getLastInsertId()
400 405
 	{
Please login to merge, or discard this patch.
framework/Data/SqlMap/Configuration/TSqlMapCacheModel.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,6 +129,7 @@  discard block
 block discarded – undo
129 129
 	/**
130 130
 	 * Register a mapped statement that will trigger a cache flush.
131 131
 	 * @param TMappedStatement mapped statement that may flush the cache.
132
+	 * @param IMappedStatement $mappedStatement
132 133
 	 */
133 134
 	public function registerTriggerStatement($mappedStatement)
134 135
 	{
@@ -145,6 +146,7 @@  discard block
 block discarded – undo
145 146
 
146 147
 	/**
147 148
 	 * @param TSqlMapCacheKey|string cache key
149
+	 * @param string $key
148 150
 	 * @return mixed cached value.
149 151
 	 */
150 152
 	public function get($key)
@@ -163,6 +165,7 @@  discard block
 block discarded – undo
163 165
 	/**
164 166
 	 * @param TSqlMapCacheKey|string cache key
165 167
 	 * @param mixed value to be cached.
168
+	 * @param string $key
166 169
 	 */
167 170
 	public function set($key, $value)
168 171
 	{
@@ -174,7 +177,7 @@  discard block
 block discarded – undo
174 177
 	}
175 178
 
176 179
 	/**
177
-	 * @return float cache hit ratio.
180
+	 * @return integer cache hit ratio.
178 181
 	 */
179 182
 	public function getHitRatio()
180 183
 	{
@@ -223,7 +226,7 @@  discard block
 block discarded – undo
223 226
 	}
224 227
 
225 228
 	/**
226
-	 * @param string serialized object
229
+	 * @param string string object
227 230
 	 * @return string crc32 hash of the serialized object.
228 231
 	 */
229 232
 	protected function generateKey($string)
Please login to merge, or discard this patch.
framework/Data/SqlMap/DataMapper/TSqlMapCache.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -205,6 +205,9 @@
 block discarded – undo
205 205
 		return $keyList;
206 206
 	}
207 207
 
208
+	/**
209
+	 * @param TList $keyList
210
+	 */
208 211
 	protected function setKeyList($keyList)
209 212
 	{
210 213
 		$this->getCache()->set($this->getKeyListId(), $keyList);
Please login to merge, or discard this patch.
framework/Data/SqlMap/TSqlMapGateway.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@
 block discarded – undo
32 32
 	 */
33 33
 	private $_manager;
34 34
 
35
+	/**
36
+	 * @param TSqlMapManager $manager
37
+	 */
35 38
 	public function __construct($manager)
36 39
 	{
37 40
 		$this->_manager=$manager;
Please login to merge, or discard this patch.
framework/Data/TDbCommand.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -136,6 +136,7 @@  discard block
 block discarded – undo
136 136
 	 * @param mixed Name of the PHP variable to bind to the SQL statement parameter
137 137
 	 * @param int SQL data type of the parameter
138 138
 	 * @param int length of the data type
139
+	 * @param string $name
139 140
 	 * @see http://www.php.net/manual/en/function.PDOStatement-bindParam.php
140 141
 	 */
141 142
 	public function bindParameter($name, &$value, $dataType=null, $length=null)
@@ -157,6 +158,7 @@  discard block
 block discarded – undo
157 158
 	 * placeholders, this will be the 1-indexed position of the parameter.
158 159
 	 * @param mixed The value to bind to the parameter
159 160
 	 * @param int SQL data type of the parameter
161
+	 * @param string $name
160 162
 	 * @see http://www.php.net/manual/en/function.PDOStatement-bindValue.php
161 163
 	 */
162 164
 	public function bindValue($name, $value, $dataType=null)
Please login to merge, or discard this patch.
framework/Data/TDbDataReader.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -58,6 +58,7 @@
 block discarded – undo
58 58
 	 * should match the case of the column, as returned by the driver.
59 59
 	 * @param mixed Name of the PHP variable to which the column will be bound.
60 60
 	 * @param int Data type of the parameter
61
+	 * @param integer $column
61 62
 	 * @see http://www.php.net/manual/en/function.PDOStatement-bindColumn.php
62 63
 	 */
63 64
 	public function bindColumn($column, &$value, $dataType=null)
Please login to merge, or discard this patch.
framework/Exceptions/TErrorHandler.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -109,6 +109,7 @@  discard block
 block discarded – undo
109 109
 	 * It terminates the application immediately after the error is displayed.
110 110
 	 * @param mixed sender of the event
111 111
 	 * @param mixed event parameter (if the event is raised by TApplication, it refers to the exception instance)
112
+	 * @param null|TApplication $sender
112 113
 	 */
113 114
 	public function handleError($sender,$param)
114 115
 	{
@@ -171,6 +172,7 @@  discard block
 block discarded – undo
171 172
 	 * mode will be displayed to the client user.
172 173
 	 * @param integer response status code
173 174
 	 * @param Exception exception instance
175
+	 * @param integer $statusCode
174 176
 	 */
175 177
 	protected function handleExternalError($statusCode,$exception)
176 178
 	{
@@ -363,6 +365,9 @@  discard block
 block discarded – undo
363 365
 		return $result;
364 366
 	}
365 367
 
368
+	/**
369
+	 * @param string $pattern
370
+	 */
366 371
 	private function getPropertyAccessTrace($trace,$pattern)
367 372
 	{
368 373
 		$result=null;
@@ -395,6 +400,9 @@  discard block
 block discarded – undo
395 400
 		return $source;
396 401
 	}
397 402
 
403
+	/**
404
+	 * @param string $message
405
+	 */
398 406
 	private function addLink($message)
399 407
 	{
400 408
 		$baseUrl='http://pradosoft.github.io/docs/manual/class-';
Please login to merge, or discard this patch.
framework/Exceptions/TException.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -393,6 +393,8 @@
 block discarded – undo
393 393
 	 * in the message file. If so, the message in the preferred language
394 394
 	 * will be used as the error message. Any rest parameters will be used
395 395
 	 * to replace placeholders ({0}, {1}, {2}, etc.) in the message.
396
+	 * @param integer $statusCode
397
+	 * @param string $errorMessage
396 398
 	 */
397 399
 	public function __construct($statusCode,$errorMessage)
398 400
 	{
Please login to merge, or discard this patch.