method
public
Format::setCode()
Сигнатура
public setCode(string $code) : $this
Параметры
$code
string
Возвращаемое значение
$this
Как применяется в Format
Format::setCode() — метод класса \Bitrix\Location\Entity\Format модуля «Местоположения».
Метод объекта: сначала нужен экземпляр Format.
use Bitrix\Main\Loader;
use Bitrix\Location\Entity\Format;
Loader::includeModule('location');
/** @var Format $object */
$code = '';
$result = $object->setCode($code);
// $result: $thisДругие методы Format
getCode()getDelimiter()getDescription()getFieldForUnRecognized()getLanguageId()getName()getTemplate()setDelimiter()setDescription()setFieldForUnRecognized()setLanguageId()setName()
setCode() есть и у других классов модуля «Местоположения»: Area, Location.
Исходный файл: source/location/lib/entity/format.php:113

