Bitrix API

SocialNetwork

Table of Contents

Constants

PATH_GROUP_BINDING  = 'kb/binding/group/create.php?groupId=#groupId#'
Path for binding group with new site.
SETTINGS_CODE  = 'landing_knowledge'
Binding code.
SETTINGS_CODE_SHORT  = 'knowledge'
Binding code short.

Methods

canCreateNewBinding()  : bool
Returns true if current user for specified sonet group can create new binding.
canPerformOperation()  : bool
Returns true if current user for specified sonet group can perform specified operation.
getBindingRow()  : array<string|int, mixed>
Gets binding row by group id.
getSocNetMenuTitle()  : string
Returns title knowledge of group.
getSocNetMenuUrl()  : string
Builds and returns social group menu link.
getTabUrl()  : string
Returns group path by id.
onFillSocNetFeaturesList()  : void
Fill settings array for social network group.
onFillSocNetMenu()  : void
Fill menu array for social network group.
onSocNetFeaturesUpdate()  : void
Invokes when changing §permissions of socialnetwork group is occurred.
onSocNetGroupDelete()  : void
On social network group delete.
userInGroup()  : bool
Returns true, if current user is member of group.

Constants

PATH_GROUP_BINDING

Path for binding group with new site.

public mixed PATH_GROUP_BINDING = 'kb/binding/group/create.php?groupId=#groupId#'
Tags
todo:

it's not good, specify path in the code, but temporary it's ok

SETTINGS_CODE

Binding code.

public mixed SETTINGS_CODE = 'landing_knowledge'

SETTINGS_CODE_SHORT

Binding code short.

public mixed SETTINGS_CODE_SHORT = 'knowledge'

Methods

canCreateNewBinding()

Returns true if current user for specified sonet group can create new binding.

public static canCreateNewBinding(int $groupId) : bool
Parameters
$groupId : int

Group id.

Return values
bool

canPerformOperation()

Returns true if current user for specified sonet group can perform specified operation.

public static canPerformOperation(int $groupId, string $operation) : bool
Parameters
$groupId : int

Group id.

$operation : string

Operation code.

Tags
see
Rights::ACCESS_TYPES
Return values
bool

getBindingRow()

Gets binding row by group id.

public static getBindingRow(int $groupId[, bool $checkAccess = true ]) : array<string|int, mixed>
Parameters
$groupId : int

Group id.

$checkAccess : bool = true

Check read access.

Return values
array<string|int, mixed>

getSocNetMenuTitle()

Returns title knowledge of group.

public static getSocNetMenuTitle(int $groupId) : string
Parameters
$groupId : int

Group id.

Return values
string

getSocNetMenuUrl()

Builds and returns social group menu link.

public static getSocNetMenuUrl(int $groupId[, bool $returnCreateLink = true ]) : string
Parameters
$groupId : int

Group id.

$returnCreateLink : bool = true

If true and link is no exist, returns create link.

Return values
string

getTabUrl()

Returns group path by id.

public static getTabUrl(int $groupId[, string|null $pagePath = null ][, bool $generalPath = false ]) : string
Parameters
$groupId : int

Group id.

$pagePath : string|null = null

Page of landing.

$generalPath : bool = false

Returns only general path of group.

Return values
string

onFillSocNetFeaturesList()

Fill settings array for social network group.

public static onFillSocNetFeaturesList(array<string|int, mixed> &$socNetFeaturesSettings) : void
Parameters
$socNetFeaturesSettings : array<string|int, mixed>

Settings array.

onFillSocNetMenu()

Fill menu array for social network group.

public static onFillSocNetMenu(array<string|int, mixed> &$result) : void
Parameters
$result : array<string|int, mixed>

Menu array.

onSocNetFeaturesUpdate()

Invokes when changing §permissions of socialnetwork group is occurred.

public static onSocNetFeaturesUpdate(int $id, array<string|int, mixed> $fields) : void
Parameters
$id : int

Feature id.

$fields : array<string|int, mixed>

Feature fields.

onSocNetGroupDelete()

On social network group delete.

public static onSocNetGroupDelete(int $groupId) : void
Parameters
$groupId : int

Group id.

userInGroup()

Returns true, if current user is member of group.

public static userInGroup(int $groupId) : bool
Parameters
$groupId : int

Group id.

Return values
bool

        
On this page

Search results