SproutCMS

This is the code documentation for the SproutCMS project

function addArrayFieldError()

Add an error message for a given field to the field errors list
This variation is for array validation, e.g. an array of integers

Usage

void $Validator->addArrayFieldError ( string $field_name , int $index , string $message );

Arguments

  1. string $field_name
    The field to add the error message for
  2. int $index
    The array index of the field to report error for
  3. string $message
    The message text

Return value

  • void