method
public
Template::__construct()
Сигнатура
public __construct(string $type, string $template) : mixed
Описание
Конструктор шаблона.
Параметры
$type
string
См. TemplateType
$template
string
Возвращаемое значение
mixed
Как применяется в Template
Template::__construct() — метод класса \Bitrix\Location\Entity\Format\Template модуля «Местоположения». Template: Содержит шаблон для преобразования адреса в строку.
Конструктор: создаёт экземпляр Template — обязательные аргументы перечислены в разделе «Параметры».
use Bitrix\Main\Loader;
use Bitrix\Location\Entity\Format\Template;
Loader::includeModule('location');
$type = '';
$template = '';
$object = new Template($type, $template);Другие методы Template
__construct() есть и у других классов модуля «Местоположения»: Address, AddressLink, Format, Location, StringTemplateConverter.
Исходный файл: source/location/lib/entity/format/template.php:23

