• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/crm/fields.php
  • Класс: BitrixImOpenLinesCrmFields
  • Вызов: Fields::setPersonPhone
public function setPersonPhone($field): self
{
	if (
		$this->skipPhoneValidate !== true
		&& ToolsPhone::validate($field)
	)
	{
		$this->person['PHONE'] = $field;
	}
	elseif (
		$this->skipPhoneValidate === true
		&& ToolsPhone::extractNumbers($field)
	)
	{
		$this->person['PHONE'] = $field;
	}

	return $this;
}