|
@@ 1834-1843 (lines=10) @@
|
| 1831 |
|
* @uses dateIsExpression |
| 1832 |
|
* @uses dateNotExpression |
| 1833 |
|
*/ |
| 1834 |
|
protected function createConditionsForDatetimeColumn($field, $query, $alias, $currentUser, $methods) |
| 1835 |
|
{ |
| 1836 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1837 |
|
$methods, |
| 1838 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true'] |
| 1839 |
|
) |
| 1840 |
|
) { |
| 1841 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1842 |
|
} |
| 1843 |
|
|
| 1844 |
|
return $this->createExpression('date', $field, $query, $alias, $currentUser, $methods); |
| 1845 |
|
} |
| 1846 |
|
|
|
@@ 1866-1876 (lines=11) @@
|
| 1863 |
|
* @uses entityGtExpression |
| 1864 |
|
* @uses entityGteExpression |
| 1865 |
|
*/ |
| 1866 |
|
protected function createConditionsForEntityColumn($field, $query, $alias, $currentUser, $methods) |
| 1867 |
|
{ |
| 1868 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1869 |
|
$methods, |
| 1870 |
|
['false', 'true', 'is', 'not', 'me', 'notme', 'isOrNull', 'lt', 'lte', 'gt', 'gte'] |
| 1871 |
|
)) { |
| 1872 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1873 |
|
} |
| 1874 |
|
|
| 1875 |
|
return $this->createExpression('entity', $field, $query, $alias, $currentUser, $methods); |
| 1876 |
|
} |
| 1877 |
|
|
| 1878 |
|
/** |
| 1879 |
|
* @param $subquery |
|
@@ 2103-2112 (lines=10) @@
|
| 2100 |
|
* @uses subqueryAnyExpression |
| 2101 |
|
* @uses subqueryNullExpression |
| 2102 |
|
*/ |
| 2103 |
|
protected function createConditionsForIntegerSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 2104 |
|
{ |
| 2105 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 2106 |
|
$methods, |
| 2107 |
|
['false', 'true', 'gt', 'gte', 'lt', 'lte', 'eq', 'any', 'null'] |
| 2108 |
|
) |
| 2109 |
|
) { |
| 2110 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2111 |
|
} |
| 2112 |
|
|
| 2113 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 2114 |
|
} |
| 2115 |
|
|
|
@@ 2200-2209 (lines=10) @@
|
| 2197 |
|
* @uses integerFalseExpression |
| 2198 |
|
* @uses integerTrueExpression |
| 2199 |
|
*/ |
| 2200 |
|
protected function createConditionsForIntegerColumn($col, $query, $alias, $currentUser, $methods) |
| 2201 |
|
{ |
| 2202 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 2203 |
|
$methods, |
| 2204 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true'] |
| 2205 |
|
) |
| 2206 |
|
) { |
| 2207 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2208 |
|
} |
| 2209 |
|
|
| 2210 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 2211 |
|
} |
| 2212 |
|
|
|
@@ 2237-2246 (lines=10) @@
|
| 2234 |
|
* @uses integerTrueExpression |
| 2235 |
|
* @uses integerAnyExpression |
| 2236 |
|
*/ |
| 2237 |
|
protected function createConditionsForIntegerColumnInternal($col, $query, $alias, $currentUser, $methods) |
| 2238 |
|
{ |
| 2239 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 2240 |
|
$methods, |
| 2241 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true', 'any'] |
| 2242 |
|
) |
| 2243 |
|
) { |
| 2244 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2245 |
|
} |
| 2246 |
|
|
| 2247 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 2248 |
|
} |
| 2249 |
|
|