Bitrix API

Validator

Class Validator

Table of Contents

Methods

validate()  : string
Validate.
validateCrmEntityId()  : bool
Validate Crm entity code.
validateEmail()  : string
Validate email.
validateIm()  : bool
Validate im code.
validatePhone()  : bool
Validate phone number.

Methods

validate()

Validate.

public static validate(string $code[, int $typeId = Type::EMAIL ]) : string
Parameters
$code : string

Code.

$typeId : int = Type::EMAIL

Type ID.

Return values
string

validateCrmEntityId()

Validate Crm entity code.

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

Code.

Return values
bool

validateEmail()

Validate email.

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

Email.

Return values
string

validateIm()

Validate im code.

public static validateIm(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