Validate

Value validation functions

Arguments

$type
Validation type
$value
Value to validate

Example

Check if value in email is valid email:

if ( $this->get('validate','email', $Order->email) ){
    // Order has valid email
}

Setting time

Type Example Description
email my.email@doot.com Valid email address.
phone +358408255925 Value phone number. (Starts with 0/+, only numbers)