SproutCMS

This is the code documentation for the SproutCMS project

function oneRequired()

At least one value must be specified (e.g. one of email/phone/mobile)

Usage

void Validity::oneRequired ( array $vals );

Example

$valid->multipleCheck(['email', 'phone'], 'Validity::oneRequired')

Arguments

  1. array $vals
    Values to check

Exceptions thrown

Return value

  • void