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
stringvalidateCrmEntityId()
Validate Crm entity code.
public
static validateCrmEntityId(string $code) : bool
Parameters
- $code : string
-
Code.
Return values
boolvalidateEmail()
Validate email.
public
static validateEmail(string $email) : string
Parameters
- $email : string
-
Email.
Return values
stringvalidateIm()
Validate im code.
public
static validateIm(string $code) : bool
Parameters
- $code : string
-
Code.
Return values
boolvalidatePhone()
Validate phone number.
public
static validatePhone(string $phone) : bool
Parameters
- $phone : string
-
Phone number.