PHP Interface Fuel\Validation\ValidatableInterface

Exibir arquivo Open project: fuelphp/validation

Public Methods

Method Description
run ( array $data, Fuel\Validation\ResultInterface $result = null ) : Fuel\Validation\ResultInterface Takes an array of data and validates that against the assigned rules.

Method Details

run() public method

The array is expected to have keys named after fields. This function will call reset() before it runs.
Since: 2.0
public run ( array $data, Fuel\Validation\ResultInterface $result = null ) : Fuel\Validation\ResultInterface
$data array
$result Fuel\Validation\ResultInterface
return Fuel\Validation\ResultInterface