SproutCMS

This is the code documentation for the SproutCMS project

function allInTable()

Checks all selected values match IDs in a corresponding table

Usage

void Validity::allInTable ( array $val , string $table );

Example

$_POST['favourite_cities'] = (array) @$_POST['favourite_cities']
$valid->check('favourite_cities', 'Validity::allInTable', 'cities')

Arguments

  1. array $val
  2. string $table

Exceptions thrown

Return value

  • void