Skip to content

API DataValidator_Filters ExistsInDB

Christophe SAUVEUR edited this page Sep 29, 2024 · 2 revisions

ExistsInDB Class

chsxf\MFX\DataValidator\Filters

class ExistsInDB extends chsxf\MFX\DataValidator\AbstractFilter

Summary

Description of a filter validating if the specified value exists in a database table

Since 1.0

Methods

__construct

public function __construct(string $table, string $field, ?string $message, DatabaseConnectionInstance $connection)

Constructor

Since 1.0

Parameters

Name Type Description
$table string Database table name
$field string Database field name
$message string Error message (Defaults to NULL)
$connection DatabaseConnectionInstance Database connection instance

Clone this wiki locally