Bitrix API

ExternalLink

Table of Contents

Methods

buildPreview()  : string
Returns HTML code for file preview.
checkUserReadAccess()  : bool
Returns true if current user has read access to the file.

Methods

buildPreview()

Returns HTML code for file preview.

public static buildPreview(array<string|int, mixed> $params) : string
Parameters
$params : array<string|int, mixed>

Expected keys: action, hash.

Return values
string

checkUserReadAccess()

Returns true if current user has read access to the file.

public static checkUserReadAccess(array<string|int, mixed> $params, int $userId) : bool
Parameters
$params : array<string|int, mixed>

Allowed keys: hash.

$userId : int

Current user's id.

Return values
bool

        
On this page

Search results