DatabaseQuerySelect class

Located in file /wire/core/DatabaseQuerySelect.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the DatabaseQuerySelect class also inherits all the methods and properties of: DatabaseQuery, WireData and Wire.

Show class?             Show args?        

Common

NameReturnSummary 
comment string Comments for query 
field Field Field object that is referenced by this query. 
from($sql)
$this
Can also be used as property: from
getQuery()
stringReturn the resulting SQL ready for execution with the database 
group string Selector group (for OR-groups) if applicable. 
groupby($sql)
$this
Can also be used as property: groupby
join($sql)
$this)
Can also be used as property: join
leftjoin($sql)
$this)
Can also be used as property: leftjoin
limit($sql)
$this
Can also be used as property: limit
orderby($value)
$thisAdd an ORDER BY section to the query
Can also be used as property: orderby
 
parentQuery DatabaseQuerySelect Parent query object, if applicable. 
select($sql)
$this)
Can also be used as property: select
selector Selector Selector object referenced by this query. 
selectors Selectors Original selectors (all) that $selector is part of.  
where($sql)
$this)
Can also be used as property: where

Additional methods and properties

In addition to the methods and properties above, DatabaseQuerySelect also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.244

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer