• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/mail/internal/event.php
  • Класс: BitrixMainMailInternalEventTable
  • Вызов: EventTable::isFieldSerialized
static function isFieldSerialized($str)
{
	$str = trim($str);

	if ($str == 'N;')
		return true;

	if ( !preg_match( '/^([abdiOs]):/', $str, $matches ) )
		return false;

	switch($matches[1])
	{
		case 'b':
		case 'i':
		case 'd':
			if(preg_match( "/^".$matches[1].":[0-9.E-]+;$/", $str))
				return true;
			break;

		case 'a':
		case 'O':
		case 's':
			if(preg_match( "/^".$matches[1].":[0-9]+:.*[;}]$/s", $str))
				return true;
			break;
	}