Check Unique value in a InformationSet
App::Utility()->uniqueInformation(Value, Options)
Parameter |
Description |
---|---|
Value |
Value to check |
Options |
Define InformationSet and field to check. |
See bellow example:
$return = App::Helper('Validation')
->uniqueInformation(
'ContactUs',
array(
'type'=>'Emailtemplate',
'fieldname'=>'templatetype'
)
);