• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile.php
  • Класс: BitrixIntranetComponentUserProfile
  • Вызов: UserProfile::getGratsInstance
protected function getGratsInstance()
{
	if ($this->grats === null)
	{
		$this->grats = new BitrixIntranetComponentUserProfileGrats([
			'profileId' => $this->arParams['ID'],
			'pathToPostEdit' => $this->arParams['PATH_TO_POST_EDIT_GRAT'],
			'pathToUserGrat' => $this->arParams['PATH_TO_USER_GRAT'],
			'pathToPost' => $this->arParams['PATH_TO_POST'],
			'pathToUser' => $this->arParams['PATH_TO_USER'],
			'pageSize' => $this->arParams['GRAT_POST_LIST_PAGE_SIZE'],
		]);
	}
	return $this->grats;
}