@@ -113,12 +113,11 @@ function createCertificate(
113113 *
114114 * @param strings $y, - The right expression.
115115 * @param strings $and, - combine additional expressions with, 'AND','OR', 'NOT', 'AND NOT'.
116- * @param strings $group, - notes beginning or end of where group, '(',')'.
117116 * @param strings $args - for any extras
118117 *
119- * function comparison($x, $operator, $y, $and=null, $group=null, ...$args)
118+ * function comparison($x, $operator, $y, $and=null, ...$args)
120119 * {
121- * return array($x, $operator, $y, $and, $group, ...$args);
120+ * return array($x, $operator, $y, $and, ...$args);
122121 * }
123122 *
124123 * @return array
@@ -127,110 +126,110 @@ function createCertificate(
127126 /**
128127 * Creates an equality comparison expression with the given arguments.
129128 */
130- function eq ($ x , $ y , $ and = null , $ group = null , ...$ args )
129+ function eq ($ x , $ y , $ and = null , ...$ args )
131130 {
132131 $ expression = array ();
133- \array_push ($ expression , $ x , \EQ , $ y , $ and , $ group , ...$ args );
132+ \array_push ($ expression , $ x , \EQ , $ y , $ and , ...$ args );
134133 return $ expression ;
135134 }
136135
137136 /**
138137 * Creates a non equality comparison expression with the given arguments.
139138 */
140- function neq ($ x , $ y , $ and = null , $ group = null , ...$ args )
139+ function neq ($ x , $ y , $ and = null , ...$ args )
141140 {
142141 $ expression = array ();
143- \array_push ($ expression , $ x , \NEQ , $ y , $ and , $ group , ...$ args );
142+ \array_push ($ expression , $ x , \NEQ , $ y , $ and , ...$ args );
144143 return $ expression ;
145144 }
146145
147146 /**
148147 * Creates the other non equality comparison expression with the given arguments.
149148 */
150- function ne ($ x , $ y , $ and = null , $ group = null , ...$ args )
149+ function ne ($ x , $ y , $ and = null , ...$ args )
151150 {
152151 $ expression = array ();
153- \array_push ($ expression , $ x , \NE , $ y , $ and , $ group , ...$ args );
152+ \array_push ($ expression , $ x , \NE , $ y , $ and , ...$ args );
154153 return $ expression ;
155154 }
156155
157156 /**
158157 * Creates a lower-than comparison expression with the given arguments.
159158 */
160- function lt ($ x , $ y , $ and = null , $ group = null , ...$ args )
159+ function lt ($ x , $ y , $ and = null , ...$ args )
161160 {
162161 $ expression = array ();
163- \array_push ($ expression , $ x , \LT , $ y , $ and , $ group , ...$ args );
162+ \array_push ($ expression , $ x , \LT , $ y , $ and , ...$ args );
164163 return $ expression ;
165164 }
166165
167166 /**
168167 * Creates a lower-than-equal comparison expression with the given arguments.
169168 */
170- function lte ($ x , $ y , $ and = null , $ group = null , ...$ args )
169+ function lte ($ x , $ y , $ and = null , ...$ args )
171170 {
172171 $ expression = array ();
173- \array_push ($ expression , $ x , \LTE , $ y , $ and , $ group , ...$ args );
172+ \array_push ($ expression , $ x , \LTE , $ y , $ and , ...$ args );
174173 return $ expression ;
175174 }
176175
177176 /**
178177 * Creates a greater-than comparison expression with the given arguments.
179178 */
180- function gt ($ x , $ y , $ and = null , $ group = null , ...$ args )
179+ function gt ($ x , $ y , $ and = null , ...$ args )
181180 {
182181 $ expression = array ();
183- \array_push ($ expression , $ x , \GT , $ y , $ and , $ group , ...$ args );
182+ \array_push ($ expression , $ x , \GT , $ y , $ and , ...$ args );
184183 return $ expression ;
185184 }
186185
187186 /**
188187 * Creates a greater-than-equal comparison expression with the given arguments.
189188 */
190- function gte ($ x , $ y , $ and = null , $ group = null , ...$ args )
189+ function gte ($ x , $ y , $ and = null , ...$ args )
191190 {
192191 $ expression = array ();
193- \array_push ($ expression , $ x , \GTE , $ y , $ and , $ group , ...$ args );
192+ \array_push ($ expression , $ x , \GTE , $ y , $ and , ...$ args );
194193 return $ expression ;
195194 }
196195
197196 /**
198197 * Creates an IS NULL expression with the given arguments.
199198 */
200- function isNull ($ x , $ y = 'null ' , $ and = null , $ group = null , ...$ args )
199+ function isNull ($ x , $ y = 'null ' , $ and = null , ...$ args )
201200 {
202201 $ expression = array ();
203- \array_push ($ expression , $ x , \_isNULL, $ y , $ and , $ group , ...$ args );
202+ \array_push ($ expression , $ x , \_isNULL, $ y , $ and , ...$ args );
204203 return $ expression ;
205204 }
206205
207206 /**
208207 * Creates an IS NOT NULL expression with the given arguments.
209208 */
210- function isNotNull ($ x , $ y = 'null ' , $ and = null , $ group = null , ...$ args )
209+ function isNotNull ($ x , $ y = 'null ' , $ and = null , ...$ args )
211210 {
212211 $ expression = array ();
213- \array_push ($ expression , $ x , \_notNULL, $ y , $ and , $ group , ...$ args );
212+ \array_push ($ expression , $ x , \_notNULL, $ y , $ and , ...$ args );
214213 return $ expression ;
215214 }
216215
217216 /**
218217 * Creates a LIKE() comparison expression with the given arguments.
219218 */
220- function like ($ x , $ y , $ and = null , $ group = null , ...$ args )
219+ function like ($ x , $ y , $ and = null , ...$ args )
221220 {
222221 $ expression = array ();
223- \array_push ($ expression , $ x , \_LIKE , $ y , $ and , $ group , ...$ args );
222+ \array_push ($ expression , $ x , \_LIKE , $ y , $ and , ...$ args );
224223 return $ expression ;
225224 }
226225
227226 /**
228227 * Creates a NOT LIKE() comparison expression with the given arguments.
229228 */
230- function notLike ($ x , $ y , $ and = null , $ group = null , ...$ args )
229+ function notLike ($ x , $ y , $ and = null , ...$ args )
231230 {
232231 $ expression = array ();
233- \array_push ($ expression , $ x , \_notLIKE, $ y , $ and , $ group , ...$ args );
232+ \array_push ($ expression , $ x , \_notLIKE, $ y , $ and , ...$ args );
234233 return $ expression ;
235234 }
236235
@@ -260,7 +259,7 @@ function notIn($x, $y, ...$args)
260259 function between ($ x , $ y , $ y2 , ...$ args )
261260 {
262261 $ expression = array ();
263- \array_push ($ expression , $ x , \_BETWEEN , $ y , $ y2 , null , \_AND , ...$ args );
262+ \array_push ($ expression , $ x , \_BETWEEN , $ y , $ y2 , \_AND , ...$ args );
264263 return $ expression ;
265264 }
266265
@@ -270,7 +269,7 @@ function between($x, $y, $y2, ...$args)
270269 function notBetween ($ x , $ y , $ y2 , ...$ args )
271270 {
272271 $ expression = array ();
273- \array_push ($ expression , $ x , \_notBETWEEN, $ y , $ y2 , null , \_AND , ...$ args );
272+ \array_push ($ expression , $ x , \_notBETWEEN, $ y , $ y2 , \_AND , ...$ args );
274273 return $ expression ;
275274 }
276275
0 commit comments