Skip to content

Color

Properties

template

protected $template

Methods

__construct

public __construct(array $options = []): mixed

Parameters:

Parameter Type Description
$options array = [
'message' => '',
'template' => '',
'allowEmpty' => false
]

validate

public validate(\Phalcon\Filter\Validation $validation, mixed $field): bool

Parameters:

Parameter Type Description
$validation \Phalcon\Filter\Validation
$field mixed

isValidColor

Check if a given color is in a valid hexadecimal format.

private isValidColor(string $color): bool

Parameters:

Parameter Type Description
$color string