Role::createRequestingLayout

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Role
  4. createRequestingLayout
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/grid/scrum/row/content/role.php
  • Класс: Bitrix\Tasks\Grid\Scrum\Row\Content\Role
  • Вызов: Role::createRequestingLayout
private function createRequestingLayout(array $user): string
{
	$requestPath = \CComponentEngine::makePathFromTemplate(
		$this->getParameters()['PATH_TO_USER_REQUESTS'],
		['user_id' => $user['ID']]
	);
	$userGroupRelationId = $this->getRowData()['USER_GROUP_ID'];

	if ($user['IS_ACCESS_REQUESTING_BY_ME'] === 'Y')
	{
		$text = Loc::getMessage('TASKS_GRID_SCRUM_ROW_CONTENT_ROLE_REQUEST_SENT');

		return
			"
			
{$text}
" ; } $text = Loc::getMessage('TASKS_GRID_SCRUM_ROW_CONTENT_ROLE_INVITED'); return "
{$text}
" ; }

Добавить комментарий