| Package | system.db.ar |
|---|---|
| Inheritance | class CJoinQuery |
| Since | 1.0 |
| Version | $Id: CActiveFinder.php 1592 2009-12-15 16:06:00Z qiang.xue $ |
| Property | Type | Description | Defined By |
|---|---|---|---|
| conditions | array | list of WHERE clauses | CJoinQuery |
| distinct | boolean | whether to select distinct result set | CJoinQuery |
| elements | array | list of join element IDs (id=>true) | CJoinQuery |
| groups | array | list of GROUP BY clauses | CJoinQuery |
| havings | array | list of HAVING clauses | CJoinQuery |
| joins | array | list of join statement | CJoinQuery |
| limit | integer | row limit | CJoinQuery |
| offset | integer | row offset | CJoinQuery |
| orders | array | list of ORDER BY clauses | CJoinQuery |
| params | array | list of query parameters | CJoinQuery |
| selects | array | list of column selections | CJoinQuery |
| Method | Description | Defined By |
|---|---|---|
| __construct() | Constructor. | CJoinQuery |
| createCommand() | Creates the SQL statement. | CJoinQuery |
| join() | Joins with another join element | CJoinQuery |
list of WHERE clauses
whether to select distinct result set
list of join element IDs (id=>true)
list of GROUP BY clauses
list of HAVING clauses
list of join statement
row limit
row offset
list of ORDER BY clauses
list of query parameters
list of column selections
|
public void __construct(CJoinElement $joinElement, CDbCriteria $criteria=NULL)
| ||
| $joinElement | CJoinElement | The root join tree. |
| $criteria | CDbCriteria | the query criteria |
Constructor.
|
public string createCommand(CDbCommandBuilder $builder)
| ||
| $builder | CDbCommandBuilder | the command builder |
| {return} | string | the SQL statement |
Creates the SQL statement.
|
public void join(CJoinElement $element)
| ||
| $element | CJoinElement | the element to be joined |
Joins with another join element
Be the first person to leave a comment
Please login to leave your comment.