32 'between' =>
'between',
44 public static function get()
46 return static::$operators;
49 public static function eq($columnSql, $valueSql)
53 return "{$columnSql} IS NULL";
55 return "{$columnSql} = {$valueSql}";
58 public static function neq($columnSql, $valueSql)
62 return "{$columnSql} IS NOT NULL";
64 return "{$columnSql} <> {$valueSql}";
67 public static function lt($columnSql, $valueSql)
69 return "{$columnSql} < {$valueSql}";
72 public static function lte($columnSql, $valueSql)
74 return "{$columnSql} <= {$valueSql}";
77 public static function gt($columnSql, $valueSql)
79 return "{$columnSql} > {$valueSql}";
82 public static function gte($columnSql, $valueSql)
84 return "{$columnSql} >= {$valueSql}";
87 public static function in($columnSql, $valueSql)
89 return "{$columnSql} IN (".join(
', ', (array) $valueSql).
")";
92 public static function between($columnSql, $valueSql)
94 return "{$columnSql} BETWEEN {$valueSql[0]} AND {$valueSql[1]}";
97 public static function like($columnSql, $valueSql)
99 return "{$columnSql} LIKE {$valueSql}";
102 public static function exists($columnSql, $valueSql)
104 return "EXISTS ({$valueSql})";
107 public static function match($columnSql, $valueSql)
109 $connection = \Bitrix\Main\Application::getConnection();
110 $helper = $connection->getSqlHelper();
112 return $helper->getMatchFunction($columnSql, $valueSql);
115 public static function expr($columnSql, $valueSql)
117 return "{$columnSql}";
static lt($columnSql, $valueSql)
static eq($columnSql, $valueSql)
static gte($columnSql, $valueSql)
static match($columnSql, $valueSql)
static between($columnSql, $valueSql)
static in($columnSql, $valueSql)
static exists($columnSql, $valueSql)
static expr($columnSql, $valueSql)
static lte($columnSql, $valueSql)
static gt($columnSql, $valueSql)
static neq($columnSql, $valueSql)
static like($columnSql, $valueSql)