-
Notifications
You must be signed in to change notification settings - Fork 0
API DataValidator_Filters ExistsInDB
Christophe SAUVEUR edited this page Sep 29, 2024
·
2 revisions
chsxf\MFX\DataValidator\Filters
class ExistsInDB extends chsxf\MFX\DataValidator\AbstractFilter
Description of a filter validating if the specified value exists in a database table
Since 1.0
public function __construct(string $table, string $field, ?string $message, DatabaseConnectionInstance $connection)
Constructor
Since 1.0
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 |
Getting Started | Framework Reference | API Reference | MFX is released under the MIT license