Task extends Socialnetwork
FinalYes
Table of Contents
Methods
- formatFeedEntry() : array<string|int, mixed>
- Formats task entity to show in the Live Feed. Eventually, just call the component bitrix:tasks.task.livefeed
- getActionPath() : string
- Returns default action path for the current site and task NOT being added to a group
Methods
formatFeedEntry()
Formats task entity to show in the Live Feed. Eventually, just call the component bitrix:tasks.task.livefeed
public
static formatFeedEntry(mixed $arFields, mixed $arParams) : array<string|int, mixed>
Parameters
- $arFields : mixed
- $arParams : mixed
Return values
array<string|int, mixed>getActionPath()
Returns default action path for the current site and task NOT being added to a group
public
static getActionPath([mixed $groupId = 0 ][, mixed $userId = 0 ][, mixed $siteId = '' ]) : string
Example:
if ($arTask["GROUP_ID"] > 0)
{ $path = str_replace("#group_id#", $arTask["GROUP_ID"], COption::GetOptionString("tasks", "paths_task_group_entry", "/workgroups/group/#group_id#/tasks/task/view/#task_id#/", $arTask["SITE_ID"])); } else { $path = str_replace("#user_id#", $arTask["RESPONSIBLE_ID"], COption::GetOptionString("tasks", "paths_task_user_entry", "/company/personal/user/#user_id#/tasks/task/view/#task_id#/", $arTask["SITE_ID"])); }
Parameters
- $groupId : mixed = 0
- $userId : mixed = 0
- $siteId : mixed = ''