You are here

function _services_is_valid_query_op in Services 7.3

Determines whether or not an operator is valid.

Parameters

string $op: The operator.

Return value

bool Whether or not the operator is valid.

1 call to _services_is_valid_query_op()
services_resource_build_index_query in ./services.module
Helper function to build index queries.

File

./services.module, line 1162
Provides a generic but powerful API for web services.

Code

function _services_is_valid_query_op($op) {
  return in_array(strtoupper(trim($op)), array(
    '=',
    '<=>',
    '>',
    '>=',
    'IN',
    'NOT IN',
    'IS',
    'IS NOT',
    'IS NOT NULL',
    'IS NULL',
    '<',
    '<=',
    'LIKE',
    '!=',
    '<>',
    'NOT LIKE',
    'BETWEEN',
    'EXISTS',
    'NOT EXISTS',
  ), TRUE);
}