1 | <?php |
||
32 | trait JoinTrait |
||
33 | { |
||
34 | use AbstractTrait; |
||
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | public function join($secondTable, $onClause = '') |
||
43 | |||
44 | /** |
||
45 | * {@inheritDoc} |
||
46 | */ |
||
47 | public function leftJoin($secondTable, $onClause = '') |
||
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | public function leftOuterJoin($secondTable, $onClause = '') |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | public function rightJoin($secondTable, $onClause = '') |
||
67 | |||
68 | /** |
||
69 | * {@inheritDoc} |
||
70 | */ |
||
71 | public function rightOuterJoin($secondTable, $onClause = '') |
||
75 | |||
76 | /** |
||
77 | * {@inheritDoc} |
||
78 | */ |
||
79 | public function outerJoin($secondTable, $onClause = '') |
||
83 | |||
84 | /** |
||
85 | * {@inheritDoc} |
||
86 | */ |
||
87 | public function crossJoin($secondTable, $onClause = '') |
||
91 | |||
92 | /** |
||
93 | * {@inheritDoc} |
||
94 | */ |
||
95 | public function joinRaw( |
||
103 | |||
104 | /** |
||
105 | * The real join |
||
106 | * |
||
107 | * @param string $joinType |
||
108 | * @param string|string[]|SelectStatementInterface $secondTable |
||
109 | * @param string|string[]|ExpressionInterface $onClause |
||
110 | * @param bool $rawMode |
||
111 | * @return $this |
||
112 | * @access protected |
||
113 | */ |
||
114 | protected function realJoin( |
||
132 | |||
133 | /** |
||
134 | * Fix join table |
||
135 | * |
||
136 | * @param string|string[]|SelectStatementInterface $table |
||
137 | * @return array [table, alias] |
||
138 | * @access protected |
||
139 | */ |
||
140 | protected function fixJoinTable($table) |
||
150 | |||
151 | /** |
||
152 | * Fix 'ON' clause |
||
153 | * |
||
154 | * @param mixed $onClause |
||
155 | * @return array|ExpressionInterface |
||
156 | * @access protected |
||
157 | */ |
||
158 | protected function fixOnClause($onClause) |
||
168 | |||
169 | /** |
||
170 | * Build join |
||
171 | * |
||
172 | * @param string $prefix |
||
173 | * @param array $settings |
||
174 | * @return string |
||
175 | * @access protected |
||
176 | */ |
||
177 | protected function buildJoin( |
||
194 | |||
195 | /** |
||
196 | * Build TABLE part |
||
197 | * |
||
198 | * @param array $cls |
||
199 | * @param array $settings |
||
200 | * @return string |
||
201 | * @access protected |
||
202 | */ |
||
203 | protected function buildJoinTable(array $cls, array $settings)/*# : string */ |
||
209 | |||
210 | /** |
||
211 | * Build ON part |
||
212 | * |
||
213 | * @param array $cls |
||
214 | * @param array $settings |
||
215 | * @return string |
||
216 | * @access protected |
||
217 | */ |
||
218 | protected function buildJoinOn(array $cls, array $settings)/*# : string */ |
||
235 | |||
236 | /** |
||
237 | * Get first table alias |
||
238 | * |
||
239 | * @param array $cls |
||
240 | * @param string $left left part of eq |
||
241 | * @return string |
||
242 | * @access protected |
||
243 | */ |
||
244 | protected function getFirstTableAlias( |
||
257 | |||
258 | /** |
||
259 | * Get second table alias |
||
260 | * |
||
261 | * @param array $cls |
||
262 | * @param string $right right part of eq |
||
263 | * @return string |
||
264 | * @access protected |
||
265 | */ |
||
266 | protected function getSecondTableAlias( |
||
280 | } |
||
281 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.