Skip to content
This repository was archived by the owner on Oct 16, 2019. It is now read-only.

Commit e25cea2

Browse files
authored
Update Select.php
Replaced @return Zend_Db_Select with @return self
1 parent 98ee99c commit e25cea2

File tree

1 file changed

+27
-28
lines changed

1 file changed

+27
-28
lines changed

library/Zend/Db/Select.php

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function getBind()
201201
* Set bind variables
202202
*
203203
* @param mixed $bind
204-
* @return Zend_Db_Select
204+
* @return self
205205
*/
206206
public function bind($bind)
207207
{
@@ -214,7 +214,7 @@ public function bind($bind)
214214
* Makes the query SELECT DISTINCT.
215215
*
216216
* @param bool $flag Whether or not the SELECT is DISTINCT (default true).
217-
* @return Zend_Db_Select This Zend_Db_Select object.
217+
* @return self This Zend_Db_Select object.
218218
*/
219219
public function distinct($flag = true)
220220
{
@@ -244,7 +244,7 @@ public function distinct($flag = true)
244244
* relating correlation name to table name.
245245
* @param array|string|Zend_Db_Expr $cols The columns to select from this table.
246246
* @param string $schema The schema name to specify, if any.
247-
* @return Zend_Db_Select This Zend_Db_Select object.
247+
* @return self This Zend_Db_Select object.
248248
*/
249249
public function from($name, $cols = '*', $schema = null)
250250
{
@@ -259,7 +259,7 @@ public function from($name, $cols = '*', $schema = null)
259259
*
260260
* @param array|string|Zend_Db_Expr $cols The columns to select from this table.
261261
* @param string $correlationName Correlation name of target table. OPTIONAL
262-
* @return Zend_Db_Select This Zend_Db_Select object.
262+
* @return self This Zend_Db_Select object.
263263
*/
264264
public function columns($cols = '*', $correlationName = null)
265265
{
@@ -296,7 +296,7 @@ public function columns($cols = '*', $correlationName = null)
296296
* </code>
297297
*
298298
* @param array $select Array of select clauses for the union.
299-
* @return Zend_Db_Select This Zend_Db_Select object.
299+
* @return self This Zend_Db_Select object.
300300
*/
301301
public function union($select = array(), $type = self::SQL_UNION)
302302
{
@@ -329,7 +329,7 @@ public function union($select = array(), $type = self::SQL_UNION)
329329
* @param string $cond Join on this condition.
330330
* @param array|string $cols The columns to select from the joined table.
331331
* @param string $schema The database name to specify, if any.
332-
* @return Zend_Db_Select This Zend_Db_Select object.
332+
* @return self This Zend_Db_Select object.
333333
*/
334334
public function join($name, $cond, $cols = self::SQL_WILDCARD, $schema = null)
335335
{
@@ -350,7 +350,7 @@ public function join($name, $cond, $cols = self::SQL_WILDCARD, $schema = null)
350350
* @param string $cond Join on this condition.
351351
* @param array|string $cols The columns to select from the joined table.
352352
* @param string $schema The database name to specify, if any.
353-
* @return Zend_Db_Select This Zend_Db_Select object.
353+
* @return self This Zend_Db_Select object.
354354
*/
355355
public function joinInner($name, $cond, $cols = self::SQL_WILDCARD, $schema = null)
356356
{
@@ -371,7 +371,7 @@ public function joinInner($name, $cond, $cols = self::SQL_WILDCARD, $schema = nu
371371
* @param string $cond Join on this condition.
372372
* @param array|string $cols The columns to select from the joined table.
373373
* @param string $schema The database name to specify, if any.
374-
* @return Zend_Db_Select This Zend_Db_Select object.
374+
* @return self This Zend_Db_Select object.
375375
*/
376376
public function joinLeft($name, $cond, $cols = self::SQL_WILDCARD, $schema = null)
377377
{
@@ -393,7 +393,7 @@ public function joinLeft($name, $cond, $cols = self::SQL_WILDCARD, $schema = nul
393393
* @param string $cond Join on this condition.
394394
* @param array|string $cols The columns to select from the joined table.
395395
* @param string $schema The database name to specify, if any.
396-
* @return Zend_Db_Select This Zend_Db_Select object.
396+
* @return self This Zend_Db_Select object.
397397
*/
398398
public function joinRight($name, $cond, $cols = self::SQL_WILDCARD, $schema = null)
399399
{
@@ -415,7 +415,7 @@ public function joinRight($name, $cond, $cols = self::SQL_WILDCARD, $schema = nu
415415
* @param string $cond Join on this condition.
416416
* @param array|string $cols The columns to select from the joined table.
417417
* @param string $schema The database name to specify, if any.
418-
* @return Zend_Db_Select This Zend_Db_Select object.
418+
* @return self This Zend_Db_Select object.
419419
*/
420420
public function joinFull($name, $cond, $cols = self::SQL_WILDCARD, $schema = null)
421421
{
@@ -432,7 +432,7 @@ public function joinFull($name, $cond, $cols = self::SQL_WILDCARD, $schema = nul
432432
* @param array|string|Zend_Db_Expr $name The table name.
433433
* @param array|string $cols The columns to select from the joined table.
434434
* @param string $schema The database name to specify, if any.
435-
* @return Zend_Db_Select This Zend_Db_Select object.
435+
* @return self This Zend_Db_Select object.
436436
*/
437437
public function joinCross($name, $cols = self::SQL_WILDCARD, $schema = null)
438438
{
@@ -452,7 +452,7 @@ public function joinCross($name, $cols = self::SQL_WILDCARD, $schema = null)
452452
* @param array|string|Zend_Db_Expr $name The table name.
453453
* @param array|string $cols The columns to select from the joined table.
454454
* @param string $schema The database name to specify, if any.
455-
* @return Zend_Db_Select This Zend_Db_Select object.
455+
* @return self This Zend_Db_Select object.
456456
*/
457457
public function joinNatural($name, $cols = self::SQL_WILDCARD, $schema = null)
458458
{
@@ -489,7 +489,7 @@ public function joinNatural($name, $cols = self::SQL_WILDCARD, $schema = null)
489489
* @param string $cond The WHERE condition.
490490
* @param mixed $value OPTIONAL The value to quote into the condition.
491491
* @param int $type OPTIONAL The type of the given value
492-
* @return Zend_Db_Select This Zend_Db_Select object.
492+
* @return self This Zend_Db_Select object.
493493
*/
494494
public function where($cond, $value = null, $type = null)
495495
{
@@ -506,7 +506,7 @@ public function where($cond, $value = null, $type = null)
506506
* @param string $cond The WHERE condition.
507507
* @param mixed $value OPTIONAL The value to quote into the condition.
508508
* @param int $type OPTIONAL The type of the given value
509-
* @return Zend_Db_Select This Zend_Db_Select object.
509+
* @return self This Zend_Db_Select object.
510510
*
511511
* @see where()
512512
*/
@@ -521,7 +521,7 @@ public function orWhere($cond, $value = null, $type = null)
521521
* Adds grouping to the query.
522522
*
523523
* @param array|string $spec The column(s) to group by.
524-
* @return Zend_Db_Select This Zend_Db_Select object.
524+
* @return self This Zend_Db_Select object.
525525
*/
526526
public function group($spec)
527527
{
@@ -551,7 +551,7 @@ public function group($spec)
551551
* @param string $cond The HAVING condition.
552552
* @param mixed $value OPTIONAL The value to quote into the condition.
553553
* @param int $type OPTIONAL The type of the given value
554-
* @return Zend_Db_Select This Zend_Db_Select object.
554+
* @return self This Zend_Db_Select object.
555555
*/
556556
public function having($cond, $value = null, $type = null)
557557
{
@@ -574,9 +574,9 @@ public function having($cond, $value = null, $type = null)
574574
* Otherwise identical to orHaving().
575575
*
576576
* @param string $cond The HAVING condition.
577-
* @param mixed $value OPTIONAL The value to quote into the condition.
578-
* @param int $type OPTIONAL The type of the given value
579-
* @return Zend_Db_Select This Zend_Db_Select object.
577+
* @param mixed $value OPTIONAL The value to quote into the condition.
578+
* @param int $type OPTIONAL The type of the given value
579+
* @return self This Zend_Db_Select object.
580580
*
581581
* @see having()
582582
*/
@@ -599,7 +599,7 @@ public function orHaving($cond, $value = null, $type = null)
599599
* Adds a row order to the query.
600600
*
601601
* @param mixed $spec The column(s) and direction to order by.
602-
* @return Zend_Db_Select This Zend_Db_Select object.
602+
* @return self This Zend_Db_Select object.
603603
*/
604604
public function order($spec)
605605
{
@@ -641,7 +641,7 @@ public function order($spec)
641641
*
642642
* @param int $count OPTIONAL The number of rows to return.
643643
* @param int $offset OPTIONAL Start returning after this many rows.
644-
* @return Zend_Db_Select This Zend_Db_Select object.
644+
* @return self This Zend_Db_Select object.
645645
*/
646646
public function limit($count = null, $offset = null)
647647
{
@@ -655,7 +655,7 @@ public function limit($count = null, $offset = null)
655655
*
656656
* @param int $page Limit results to this page number.
657657
* @param int $rowCount Use this many rows per page.
658-
* @return Zend_Db_Select This Zend_Db_Select object.
658+
* @return self This Zend_Db_Select object.
659659
*/
660660
public function limitPage($page, $rowCount)
661661
{
@@ -670,7 +670,7 @@ public function limitPage($page, $rowCount)
670670
* Makes the query SELECT FOR UPDATE.
671671
*
672672
* @param bool $flag Whether or not the SELECT is FOR UPDATE (default true).
673-
* @return Zend_Db_Select This Zend_Db_Select object.
673+
* @return self This Zend_Db_Select object.
674674
*/
675675
public function forUpdate($flag = true)
676676
{
@@ -737,7 +737,7 @@ public function assemble()
737737
* Clear parts of the Select object, or an individual part.
738738
*
739739
* @param string $part OPTIONAL
740-
* @return Zend_Db_Select
740+
* @return self
741741
*/
742742
public function reset($part = null)
743743
{
@@ -773,7 +773,7 @@ public function getAdapter()
773773
* @param string $cond Join on this condition
774774
* @param array|string $cols The columns to select from the joined table
775775
* @param string $schema The database name to specify, if any.
776-
* @return Zend_Db_Select This Zend_Db_Select object
776+
* @return self This Zend_Db_Select object
777777
* @throws Zend_Db_Select_Exception
778778
*/
779779
protected function _join($type, $name, $cond, $cols, $schema = null)
@@ -893,7 +893,7 @@ protected function _join($type, $name, $cond, $cols, $schema = null)
893893
* * joinRightUsing
894894
* * joinLeftUsing
895895
*
896-
* @return Zend_Db_Select This Zend_Db_Select object.
896+
* @return self This Zend_Db_Select object.
897897
*/
898898
public function _joinUsing($type, $name, $cond, $cols = '*', $schema = null)
899899
{
@@ -1327,7 +1327,7 @@ protected function _renderForupdate($sql)
13271327
*
13281328
* @param string $method
13291329
* @param array $args OPTIONAL Zend_Db_Table_Select query modifier
1330-
* @return Zend_Db_Select
1330+
* @return self
13311331
* @throws Zend_Db_Select_Exception If an invalid method is called.
13321332
*/
13331333
public function __call($method, array $args)
@@ -1378,5 +1378,4 @@ public function __toString()
13781378
}
13791379
return (string)$sql;
13801380
}
1381-
13821381
}

0 commit comments

Comments
 (0)