|
@@ 1758-1767 (lines=10) @@
|
| 1755 |
|
* @uses dateIsExpression |
| 1756 |
|
* @uses dateNotExpression |
| 1757 |
|
*/ |
| 1758 |
|
protected function createConditionsForDatetimeColumn($field, $query, $alias, $currentUser, $methods) |
| 1759 |
|
{ |
| 1760 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1761 |
|
$methods, |
| 1762 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true'] |
| 1763 |
|
) |
| 1764 |
|
) { |
| 1765 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1766 |
|
} |
| 1767 |
|
|
| 1768 |
|
return $this->createExpression('date', $field, $query, $alias, $currentUser, $methods); |
| 1769 |
|
} |
| 1770 |
|
|
|
@@ 1817-1826 (lines=10) @@
|
| 1814 |
|
* @uses subqueryAnyExpression |
| 1815 |
|
* @uses subqueryNullExpression |
| 1816 |
|
*/ |
| 1817 |
|
protected function createConditionsForIntegerSubquery($subquery, $query, $alias, $currentUser, $methods) |
| 1818 |
|
{ |
| 1819 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1820 |
|
$methods, |
| 1821 |
|
['false', 'true', 'gt', 'gte', 'lt', 'lte', 'eq', 'any', 'null'] |
| 1822 |
|
) |
| 1823 |
|
) { |
| 1824 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1825 |
|
} |
| 1826 |
|
|
| 1827 |
|
return $this->createExpression('subquery', $subquery, $query, $alias, $currentUser, $methods); |
| 1828 |
|
} |
| 1829 |
|
|
|
@@ 1914-1923 (lines=10) @@
|
| 1911 |
|
* @uses integerFalseExpression |
| 1912 |
|
* @uses integerTrueExpression |
| 1913 |
|
*/ |
| 1914 |
|
protected function createConditionsForIntegerColumn($col, $query, $alias, $currentUser, $methods) |
| 1915 |
|
{ |
| 1916 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1917 |
|
$methods, |
| 1918 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true'] |
| 1919 |
|
) |
| 1920 |
|
) { |
| 1921 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1922 |
|
} |
| 1923 |
|
|
| 1924 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 1925 |
|
} |
| 1926 |
|
|
|
@@ 1951-1960 (lines=10) @@
|
| 1948 |
|
* @uses integerTrueExpression |
| 1949 |
|
* @uses integerAnyExpression |
| 1950 |
|
*/ |
| 1951 |
|
protected function createConditionsForIntegerColumnInternal($col, $query, $alias, $currentUser, $methods) |
| 1952 |
|
{ |
| 1953 |
|
if (\UnserAllerLib_Tool_Array::hasMoreKeysThan( |
| 1954 |
|
$methods, |
| 1955 |
|
['is', 'not', 'gt', 'gte', 'lt', 'lte', 'false', 'true', 'any'] |
| 1956 |
|
) |
| 1957 |
|
) { |
| 1958 |
|
throw new \InvalidArgumentException('Invalid expression methods used'); |
| 1959 |
|
} |
| 1960 |
|
|
| 1961 |
|
return $this->createExpression('integer', $col, $query, $alias, $currentUser, $methods); |
| 1962 |
|
} |
| 1963 |
|
|