- Модуль: ldap
- Путь к файлу: ~/bitrix/modules/ldap/classes/general/ldap_util.php
- Класс: CLdapUtil
- Вызов: CLdapUtil::MkOperationFilter
static function MkOperationFilter($key)
{
if(mb_substr($key, 0, 1) == "!")
{
$key = mb_substr($key, 1);
$cOperationType = "N";
}
elseif(mb_substr($key, 0, 1) == "?")
{
$key = mb_substr($key, 1);
$cOperationType = "?";
}
elseif(mb_substr($key, 0, 2) == ">=")
{
$key = mb_substr($key, 2);
$cOperationType = "GE";
}
elseif(mb_substr($key, 0, 1) == ">")
{
$key = mb_substr($key, 1);
$cOperationType = "G";
}
elseif(mb_substr($key, 0, 2) == "<=")
{
$key = mb_substr($key, 2);
$cOperationType = "LE";
}
elseif(mb_substr($key, 0, 1) == "<")
{
$key = mb_substr($key, 1);
$cOperationType = "L";
}
else
$cOperationType = "E";
return Array("FIELD"=>$key, "OPERATION"=>$cOperationType);
}