DBJoinCondition Class Reference
[Model]
A join condition (table1.c1 = table2.c2). More...
Inheritance diagram for
DBJoinCondition:
Public Member Functions |
|
__construct (IDBTable $table1, $column1, IDBTable $table2, $column2, $mode=IDBWhere::LOGIC_AND) | |
Constructor. |
Detailed Description
A join condition (table1.c1 = table2.c2).
Definition at line 8 of file dbjoincondition.cls.php.
Constructor & Destructor Documentation
DBJoinCondition::__construct | ( | IDBTable $ | table1, | |
$ | column1, | |||
IDBTable $ | table2, | |||
$ | column2, | |||
$ | mode = IDBWhere::LOGIC_AND |
|||
) |
Constructor.
- Parameters:
-
IDBTable One table in join string $column1 Field on first table IDBTable $table2 Second table in join string $column2 Field on second table string $mode Eiter AND or OR
Definition at line 18 of file dbjoincondition.cls.php.
00018 { 00019 $sql = 00020 '(' . 00021 $this->prefix_table_name($column1, $table1) . 00022 ' = ' . 00023 $this->prefix_table_name($column2, $table2) . 00024 ')'; 00025 00026 parent::__construct($table1, $sql, null, null, $mode); 00027 }
The documentation for this class was generated from the following file:
- gyro/core/model/base/queries/dbjoincondition.cls.php