Bitrix API

Validator

Class Validator

Table of Contents

Methods

validate()  : string
Validate.
validateEmail()  : string
Validate email.
validateOpenLine()  : bool
Validate OpenLine code.
validatePhone()  : bool
Validate phone number.

Methods

validate()

Validate.

public static validate(string $code, int $typeId) : string
Parameters
$code : string

Code.

$typeId : int

Type ID.

Return values
string

validateEmail()

Validate email.

public static validateEmail(string $email) : string
Parameters
$email : string

Email.

Return values
string

validateOpenLine()

Validate OpenLine code.

public static validateOpenLine(string $code) : bool
Parameters
$code : string

Code.

Return values
bool

validatePhone()

Validate phone number.

public static validatePhone(string $phone) : bool
Parameters
$phone : string

Phone number.

Return values
bool

        
On this page

Search results