• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/vcard/vcardaddress.php
  • Класс: Bitrix\Crm\VCard\VCardAddress
  • Вызов: VCardAddress::getFormatted
public function getFormatted()
{
	$ary = array();
	if($this->street !== '')
	{
		$ary[] = $this->street;
	}

	if($this->ext !== '')
	{
		$ary[] = $this->ext;
	}

	if($this->pobox !== '')
	{
		$ary[] = $this->pobox;
	}

	if($this->locality !== '')
	{
		$ary[] = $this->locality;
	}

	if($this->region !== '')
	{
		$ary[] = $this->region;
	}

	if($this->code !== '')
	{
		$ary[] = $this->code;
	}

	if($this->country !== '')
	{
		$ary[] = $this->country;
	}

	return implode(', ', $ary);
}