- Модуль: voximplant
- Путь к файлу: ~/bitrix/modules/voximplant/lib/search/mapbuilder.php
- Класс: BitrixVoximplantSearchMapBuilder
- Вызов: MapBuilder::addUser
public function addUser($userId)
{
if($userId <= 0)
{
return $this;
}
$user = BitrixMainUserTable::getList(Array(
'select' => array('ID', 'LOGIN', 'NAME', 'LAST_NAME', 'SECOND_NAME', 'TITLE'),
'filter' => array('=ID' => $userId)
))->fetch();
if(!is_array($user))
{
return $this;
}
$value = CUser::FormatName(
CSite::GetNameFormat(),
$user,
true,
false
);
$value = Content::prepareToken($value);
if($value != '')
{
$this->tokens[$value] = true;
}
return $this;
}