|
@@ 1820-1829 (lines=10) @@
|
| 1817 |
|
* @uses dateIsExpression |
| 1818 |
|
* @uses dateNotExpression |
| 1819 |
|
*/ |
| 1820 |
|
protected function createConditionsForDatetimeColumn($field, $query, $alias, $currentUser, $methods) |
| 1821 |
|
{ |
| 1822 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1823 |
|
$methods, |
| 1824 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true'] |
| 1825 |
|
) |
| 1826 |
|
) { |
| 1827 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1828 |
|
} |
| 1829 |
|
|
| 1830 |
|
return $this->createExpression('date', $field, $query, $alias, $currentUser, $methods); |
| 1831 |
|
} |
| 1832 |
|
|
|
@@ 1879-1888 (lines=10) @@
|
| 1876 |
|
* @uses subqueryAnyExpression |
| 1877 |
|
* @uses subqueryNullExpression |
| 1878 |
|
*/ |
| 1879 |
|
protected function createConditionsForIntegerSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 1880 |
|
{ |
| 1881 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1882 |
|
$methods, |
| 1883 |
|
['false', 'true', 'gt', 'gte', 'lt', 'lte', 'eq', 'any', 'null'] |
| 1884 |
|
) |
| 1885 |
|
) { |
| 1886 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1887 |
|
} |
| 1888 |
|
|
| 1889 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 1890 |
|
} |
| 1891 |
|
|
|
@@ 1976-1985 (lines=10) @@
|
| 1973 |
|
* @uses integerFalseExpression |
| 1974 |
|
* @uses integerTrueExpression |
| 1975 |
|
*/ |
| 1976 |
|
protected function createConditionsForIntegerColumn($col, $query, $alias, $currentUser, $methods) |
| 1977 |
|
{ |
| 1978 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1979 |
|
$methods, |
| 1980 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true'] |
| 1981 |
|
) |
| 1982 |
|
) { |
| 1983 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1984 |
|
} |
| 1985 |
|
|
| 1986 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 1987 |
|
} |
| 1988 |
|
|
|
@@ 2013-2022 (lines=10) @@
|
| 2010 |
|
* @uses integerTrueExpression |
| 2011 |
|
* @uses integerAnyExpression |
| 2012 |
|
*/ |
| 2013 |
|
protected function createConditionsForIntegerColumnInternal($col, $query, $alias, $currentUser, $methods) |
| 2014 |
|
{ |
| 2015 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 2016 |
|
$methods, |
| 2017 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true', 'any'] |
| 2018 |
|
) |
| 2019 |
|
) { |
| 2020 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2021 |
|
} |
| 2022 |
|
|
| 2023 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 2024 |
|
} |
| 2025 |
|
|