Bitrix API

Token extends Base

Class Token

Table of Contents

Methods

__construct()  : mixed
Base constructor.
getBody()  : mixed
getHeaders()  : mixed
getStatus()  : mixed|string
getUser()  : CUser
isAccess()  : bool
render()  : mixed
setBody()  : void
setHeader()  : void
setStatus()  : void
setUser()  : void
Set $user to current user property

Methods

__construct()

Base constructor.

public __construct() : mixed

getBody()

public getBody() : mixed
Return values
mixed

Body will set in response.

getHeaders()

public getHeaders() : mixed
Return values
mixed

Headers will set in response.

getStatus()

public getStatus() : mixed|string
Return values
mixed|string

getUser()

public getUser() : CUser
Return values
CUser

Return current object user property.

isAccess()

public isAccess() : bool
Return values
bool

Check is user is authorized.

render()

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

Path to template.

$params : array<string|int, mixed>

Params passing to template.

setBody()

public setBody(string $content) : void
Parameters
$content : string

String to concatenate with existing body property.

setHeader()

public setHeader(mixed $name, mixed $value) : void
Parameters
$name : mixed
$value : mixed

setStatus()

public setStatus(mixed $status) : void
Parameters
$status : mixed

setUser()

Set $user to current user property

public setUser(CUser $user) : void
Parameters
$user : CUser

Object of user.


        
On this page

Search results