Check if any other DataObject has the same value already
Signature
public function __construct(string
$field,
[string
$errorMsg = NULL,
[string
$errorMsgType = 'error',
[array
$args = NULL]]] )
Parameters
$field
—
string
name of the field
$errorMsg
—
string
the message to be displayed
$errorMsgType
—
string
the css class added to the field on validation error
$args
—
array
first argument is the classname, the second the DB field name on the class, the third is optional the ID to excluse from the uniqe rule or the name of another field in the form (default is field ID in the form), the 4th is optional the DB field name to check for the exclude id