• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/classes/general/mail.php
  • Класс: CAllMailUtil
  • Вызов: CAllMailUtil::MkOperationFilter
static function MkOperationFilter($key)
{
	if(mb_substr($key, 0, 1) == "!")
	{
		$key = mb_substr($key, 1);
		$cOperationType = "N";
	}
	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";
	}
	elseif(mb_substr($key, 0, 1) == "=")
	{
		$key = mb_substr($key, 1);
		$cOperationType = "E";
	}
	else
		$cOperationType = "?";

	return Array("FIELD"=>$key, "OPERATION"=>$cOperationType);
}