CBPHelper :: GetFilterOperation: Bitrix method

      
<?php 
//  CBPHelper :: GetFilterOperation()
//  /dist/bitrix/modules/bizproc/classes/general/helper.php:389

    
public static function GetFilterOperation($key)
    {
        
$strNegative "N";
        if (
substr($key01)=="!")
        {
            
$key substr($key1);
            
$strNegative "Y";
        }

        
$strOrNull "N";
        if (
substr($key01)=="+")
        {
            
$key substr($key1);
            
$strOrNull "Y";
        }

        if (
substr($key02)==">=")
        {
            
$key substr($key2);
            
$strOperation ">=";
        }
        elseif (
substr($key01)==">")
        {
            
$key substr($key1);
            
$strOperation ">";
        }
        elseif (
substr($key02)=="<=")
        {
            
$key substr($key2);
            
$strOperation "<=";
        }
        elseif (
substr($key01)=="<")
        {
            
$key substr($key1);
            
$strOperation "<";
        }
        elseif (
substr($key01)=="@")
        {
            
$key substr($key1);
            
$strOperation "=";
            
$strNegative 'N';
        }
        elseif (
substr($key01)=="~")
        {
            
$key substr($key1);
            
$strOperation "LIKE";
        }
        elseif (
substr($key01)=="%")
        {
            
$key substr($key1);
            
$strOperation "QUERY";
        }
        else
        {
            
$strOperation "=";
        }

        return array(
"FIELD" => $key"NEGATIVE" => $strNegative"OPERATION" => $strOperation"OR_NULL" => $strOrNull);
    }