Bitrix API

Group extends SocialNetwork

Table of Contents

Constants

ACTION_CREATE_TASKS  = 'create_tasks'
ACTION_DELETE_TASKS  = 'delete_tasks'
ACTION_EDIT_TASKS  = 'edit_tasks'
ACTION_SORT_TASKS  = 'sort'
ACTION_VIEW_ALL_TASKS  = 'view_all'
ACTION_VIEW_OWN_TASKS  = 'view'
MODULE_NAME  = 'socialnetwork'

Properties

$cache  : array<string|int, mixed>

Methods

addToArchive()  : array<string|int, mixed>
can()  : mixed
canReadGroupTasks()  : mixed
checkPermissions()  : array<string|int, mixed>
clearCaches()  : mixed
delete()  : array<string|int, mixed>
disable()  : mixed
enable()  : mixed
extractPublicData()  : mixed
formatDateTimeToGMT()  : mixed
getById()  : Workgroup|null
getData()  : array<string|int, mixed>
getDepartmentEntityPrefix()  : mixed
getGroupData()  : array<string|int, mixed>
getGroupEntityPrefix()  : mixed
getGroupLastActivityDate()  : DateTime|null
getIdsByAllowedAction()  : mixed
getLastViewedProject()  : int
getLogDestination()  : array<string|int, mixed>
Get data for user selector dialog
getMemberList()  : mixed
getParser()  : mixed
getUserEntityPrefix()  : mixed
getUserPermissionsInGroup()  : array<string|int, mixed>
isCollab()  : bool
isEnabled()  : mixed
isUserMember()  : bool
removeFromArchive()  : array<string|int, mixed>
searchGroups()  : array<string|int, mixed>
setLastViewedProject()  : mixed
setLogDestinationLast()  : mixed
Save last selected items in user selector dialog
update()  : array<string|int, mixed>
updateLastActivity()  : mixed
usersHasCommonGroup()  : bool

Constants

ACTION_CREATE_TASKS

public mixed ACTION_CREATE_TASKS = 'create_tasks'

ACTION_DELETE_TASKS

public mixed ACTION_DELETE_TASKS = 'delete_tasks'

ACTION_EDIT_TASKS

public mixed ACTION_EDIT_TASKS = 'edit_tasks'

ACTION_SORT_TASKS

public mixed ACTION_SORT_TASKS = 'sort'

ACTION_VIEW_ALL_TASKS

public mixed ACTION_VIEW_ALL_TASKS = 'view_all'

ACTION_VIEW_OWN_TASKS

public mixed ACTION_VIEW_OWN_TASKS = 'view'

Properties

$cache

public static array<string|int, mixed> $cache = array()
Tags
access

private

Methods

addToArchive()

public static addToArchive(array<string|int, mixed> $groupIds) : array<string|int, mixed>
Parameters
$groupIds : array<string|int, mixed>
Return values
array<string|int, mixed>

can()

public static can(mixed $id, mixed $actionCode[, mixed $userId = 0 ]) : mixed
Parameters
$id : mixed
$actionCode : mixed
$userId : mixed = 0

canReadGroupTasks()

public static canReadGroupTasks(mixed $userId, mixed $groupId) : mixed
Parameters
$userId : mixed
$groupId : mixed

checkPermissions()

public static checkPermissions(array<string|int, mixed> $groupIds) : array<string|int, mixed>
Parameters
$groupIds : array<string|int, mixed>
Return values
array<string|int, mixed>

clearCaches()

public static clearCaches() : mixed

delete()

public static delete(array<string|int, mixed> $groupIds) : array<string|int, mixed>
Parameters
$groupIds : array<string|int, mixed>
Return values
array<string|int, mixed>

extractPublicData()

public static extractPublicData(array<string|int, mixed> $group) : mixed
Parameters
$group : array<string|int, mixed>

formatDateTimeToGMT()

public static formatDateTimeToGMT(mixed $time, mixed $userId) : mixed
Parameters
$time : mixed
$userId : mixed

getData()

public static getData(array<string|int, mixed> $groupIds[, array<string|int, mixed> $select = [] ][, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>
Parameters
$groupIds : array<string|int, mixed>
$select : array<string|int, mixed> = []
$params : array<string|int, mixed> = []
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

getDepartmentEntityPrefix()

public static getDepartmentEntityPrefix() : mixed

getGroupData()

public static getGroupData(int $groupId) : array<string|int, mixed>
Parameters
$groupId : int
Return values
array<string|int, mixed>

getGroupEntityPrefix()

public static getGroupEntityPrefix() : mixed

getGroupLastActivityDate()

public static getGroupLastActivityDate(int $groupId) : DateTime|null
Parameters
$groupId : int
Return values
DateTime|null

getIdsByAllowedAction()

public static getIdsByAllowedAction([mixed $actionCode = self::ACTION_VIEW_ALL_TASKS ][, mixed $ownGroups = true ][, mixed $userId = 0 ]) : mixed
Parameters
$actionCode : mixed = self::ACTION_VIEW_ALL_TASKS
$ownGroups : mixed = true
$userId : mixed = 0

getLastViewedProject()

public static getLastViewedProject(mixed $userId) : int
Parameters
$userId : mixed
Return values
int

getLogDestination()

Get data for user selector dialog

public static getLogDestination([string $context = 'TASKS' ][, array<string|int, mixed> $parameters = array() ]) : array<string|int, mixed>
Parameters
$context : string = 'TASKS'
$parameters : array<string|int, mixed> = array()
Tags
throws
LoaderException
throws
SystemException
Return values
array<string|int, mixed>

getMemberList()

public static getMemberList(mixed $groupId) : mixed
Parameters
$groupId : mixed

getParser()

public static getParser([array<string|int, mixed> $parameters = array() ]) : mixed
Parameters
$parameters : array<string|int, mixed> = array()

getUserEntityPrefix()

public static getUserEntityPrefix() : mixed

getUserPermissionsInGroup()

public static getUserPermissionsInGroup(int $groupId[, int $userId = 0 ]) : array<string|int, mixed>
Parameters
$groupId : int
$userId : int = 0
Return values
array<string|int, mixed>

isCollab()

public static isCollab([string|null $type = null ]) : bool
Parameters
$type : string|null = null
Return values
bool

isUserMember()

public static isUserMember(int $groupId, int $userId) : bool
Parameters
$groupId : int
$userId : int
Return values
bool

removeFromArchive()

public static removeFromArchive(array<string|int, mixed> $groupIds) : array<string|int, mixed>
Parameters
$groupIds : array<string|int, mixed>
Return values
array<string|int, mixed>

searchGroups()

public static searchGroups(string $searchText[, array<string|int, mixed> $select = [] ]) : array<string|int, mixed>
Parameters
$searchText : string
$select : array<string|int, mixed> = []
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

setLastViewedProject()

public static setLastViewedProject(mixed $userId, int $groupId) : mixed
Parameters
$userId : mixed
$groupId : int

setLogDestinationLast()

Save last selected items in user selector dialog

public static setLogDestinationLast([array<string|int, mixed> $items = array() ][, string $context = 'TASKS' ]) : mixed
Parameters
$items : array<string|int, mixed> = array()
$context : string = 'TASKS'

update()

public static update(array<string|int, mixed> $groupIds, array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$groupIds : array<string|int, mixed>
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

updateLastActivity()

public static updateLastActivity(mixed $id) : mixed
Parameters
$id : mixed

usersHasCommonGroup()

public static usersHasCommonGroup(int $userIdA, int $userIdB[, bool $includeInvited = false ]) : bool
Parameters
$userIdA : int
$userIdB : int
$includeInvited : bool = false
Tags
throws
LoaderException
Return values
bool

        
On this page

Search results