Bitrix API

Token

Table of Contents

Constants

T_BACK_QUOTE  = 5
T_CHAR  = 2
T_COMMENT  = 7
T_DOUBLE_QUOTE  = 4
T_SINGLE_QUOTE  = 3
T_SQUARE_QUOTE  = 6
T_STRING  = 1
T_WHITESPACE  = 0

Properties

$level  : mixed
$line  : mixed
$text  : mixed
$type  : mixed
$upper  : mixed

Methods

__construct()  : mixed
appendText()  : void
Adds new text for the token.
setText()  : void
Sets new text for the token.

Constants

T_DOUBLE_QUOTE

public mixed T_DOUBLE_QUOTE = 4

T_SINGLE_QUOTE

public mixed T_SINGLE_QUOTE = 3

T_SQUARE_QUOTE

public mixed T_SQUARE_QUOTE = 6

Properties

Methods

__construct()

public __construct(int $type, string $text) : mixed
Parameters
$type : int

Type of the token.

$text : string

Text of the token.

appendText()

Adds new text for the token.

public appendText(string $text) : void

And updates member $upper properly.

Parameters
$text : string

A chunk to be added.

setText()

Sets new text for the token.

public setText(string $text) : void

And updates member $upper properly.

Parameters
$text : string

New text.


        
On this page

Search results