|
@@ 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 |
|
|
|
@@ 1915-1924 (lines=10) @@
|
| 1912 |
|
* @uses subqueryAnyExpression |
| 1913 |
|
* @uses subqueryNullExpression |
| 1914 |
|
*/ |
| 1915 |
|
protected function createConditionsForIntegerSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 1916 |
|
{ |
| 1917 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1918 |
|
$methods, |
| 1919 |
|
['false', 'true', 'gt', 'gte', 'lt', 'lte', 'eq', 'any', 'null'] |
| 1920 |
|
) |
| 1921 |
|
) { |
| 1922 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1923 |
|
} |
| 1924 |
|
|
| 1925 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 1926 |
|
} |
| 1927 |
|
|
|
@@ 2012-2021 (lines=10) @@
|
| 2009 |
|
* @uses integerFalseExpression |
| 2010 |
|
* @uses integerTrueExpression |
| 2011 |
|
*/ |
| 2012 |
|
protected function createConditionsForIntegerColumn($col, $query, $alias, $currentUser, $methods) |
| 2013 |
|
{ |
| 2014 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 2015 |
|
$methods, |
| 2016 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true'] |
| 2017 |
|
) |
| 2018 |
|
) { |
| 2019 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2020 |
|
} |
| 2021 |
|
|
| 2022 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 2023 |
|
} |
| 2024 |
|
|
|
@@ 2049-2058 (lines=10) @@
|
| 2046 |
|
* @uses integerTrueExpression |
| 2047 |
|
* @uses integerAnyExpression |
| 2048 |
|
*/ |
| 2049 |
|
protected function createConditionsForIntegerColumnInternal($col, $query, $alias, $currentUser, $methods) |
| 2050 |
|
{ |
| 2051 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 2052 |
|
$methods, |
| 2053 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true', 'any'] |
| 2054 |
|
) |
| 2055 |
|
) { |
| 2056 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 2057 |
|
} |
| 2058 |
|
|
| 2059 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 2060 |
|
} |
| 2061 |
|
|