|
@@ 1828-1837 (lines=10) @@
|
| 1825 |
|
* @uses dateIsExpression |
| 1826 |
|
* @uses dateNotExpression |
| 1827 |
|
*/ |
| 1828 |
|
protected function createConditionsForDatetimeColumn($field, $query, $alias, $currentUser, $methods) |
| 1829 |
|
{ |
| 1830 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1831 |
|
$methods, |
| 1832 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true'] |
| 1833 |
|
) |
| 1834 |
|
) { |
| 1835 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1836 |
|
} |
| 1837 |
|
|
| 1838 |
|
return $this->createExpression('date', $field, $query, $alias, $currentUser, $methods); |
| 1839 |
|
} |
| 1840 |
|
|
|
@@ 1860-1870 (lines=11) @@
|
| 1857 |
|
* @uses entityGtExpression |
| 1858 |
|
* @uses entityGteExpression |
| 1859 |
|
*/ |
| 1860 |
|
protected function createConditionsForEntityColumn($field, $query, $alias, $currentUser, $methods) |
| 1861 |
|
{ |
| 1862 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1863 |
|
$methods, |
| 1864 |
|
['false', 'true', 'is', 'not', 'me', 'notme', 'isOrNull', 'lt', 'lte', 'gt', 'gte'] |
| 1865 |
|
)) { |
| 1866 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1867 |
|
} |
| 1868 |
|
|
| 1869 |
|
return $this->createExpression('entity', $field, $query, $alias, $currentUser, $methods); |
| 1870 |
|
} |
| 1871 |
|
|
| 1872 |
|
/** |
| 1873 |
|
* @param $subquery |
|
@@ 2097-2106 (lines=10) @@
|
| 2094 |
|
* @uses subqueryAnyExpression |
| 2095 |
|
* @uses subqueryNullExpression |
| 2096 |
|
*/ |
| 2097 |
|
protected function createConditionsForIntegerSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 2098 |
|
{ |
| 2099 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 2100 |
|
$methods, |
| 2101 |
|
['false', 'true', 'gt', 'gte', 'lt', 'lte', 'eq', 'any', 'null'] |
| 2102 |
|
) |
| 2103 |
|
) { |
| 2104 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2105 |
|
} |
| 2106 |
|
|
| 2107 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 2108 |
|
} |
| 2109 |
|
|
|
@@ 2194-2203 (lines=10) @@
|
| 2191 |
|
* @uses integerFalseExpression |
| 2192 |
|
* @uses integerTrueExpression |
| 2193 |
|
*/ |
| 2194 |
|
protected function createConditionsForIntegerColumn($col, $query, $alias, $currentUser, $methods) |
| 2195 |
|
{ |
| 2196 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 2197 |
|
$methods, |
| 2198 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true'] |
| 2199 |
|
) |
| 2200 |
|
) { |
| 2201 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2202 |
|
} |
| 2203 |
|
|
| 2204 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 2205 |
|
} |
| 2206 |
|
|
|
@@ 2231-2240 (lines=10) @@
|
| 2228 |
|
* @uses integerTrueExpression |
| 2229 |
|
* @uses integerAnyExpression |
| 2230 |
|
*/ |
| 2231 |
|
protected function createConditionsForIntegerColumnInternal($col, $query, $alias, $currentUser, $methods) |
| 2232 |
|
{ |
| 2233 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 2234 |
|
$methods, |
| 2235 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true', 'any'] |
| 2236 |
|
) |
| 2237 |
|
) { |
| 2238 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2239 |
|
} |
| 2240 |
|
|
| 2241 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 2242 |
|
} |
| 2243 |
|
|