Public Member Functions | |
__construct (RedBeanModel $model) | |
getDedupeViewClassName () | |
registerScriptForEditAndDetailsView (Element $element) | |
searchForDuplicateModels ($attribute, $value) | |
Protected Member Functions | |
getDedupeAttributesAndRelatedAttributesMappedArray () | |
getDedupeElements () | |
getDedupeAttributesAndSearchForDuplicateModelsCallbackMappedArray () | |
getInputIdForDedupe (Element $element) | |
getAttributeForDedupe (Element $element) | |
getRelatedAttributeForDedupe (Element $element) | |
getElementNameByElement (Element $element) | |
shouldCreateScriptForElement (Element $element) | |
getCallbackToSearchForDuplicateModelsByAttribute ($attribute) | |
Protected Attributes | |
$model | |
Class DedupeRules Base class of dedupe rules that assist Extend this class to make a set of DedupeRules that is for a specific model.
Definition at line 42 of file DedupeRules.php.
|
protected |
This array should map the relation between the attribute and related attribute that should trigger the dedupe
Definition at line 55 of file DedupeRules.php.
|
protected |
This array contains a list of the Element names that will trigger the dedupe
Definition at line 64 of file DedupeRules.php.
|
protected |
This array maps the relation between the attribute name and function callback for search for duplicate models
Definition at line 73 of file DedupeRules.php.
getDedupeViewClassName | ( | ) |
The ViewClassName used to display the results of the dedupe models list
Definition at line 82 of file DedupeRules.php.
registerScriptForEditAndDetailsView | ( | Element | $element | ) |
Register the script that will make the ajax call to search for a dedupe and update the DedupeViewClassName with the content returned. It also display a clickable flash message with the number of results found
Element | $element |
Definition at line 94 of file DedupeRules.php.
|
protected |
Returns the input id that should be used to trigger the dedupe
Element | $element |
Definition at line 170 of file DedupeRules.php.
|
protected |
Returns the attribute name that should be used to trigger the dedupe
Element | $element |
NotSupportedException |
Definition at line 189 of file DedupeRules.php.
|
protected |
Return the related attribute that should be used to trigger the dedupe
Element | $element |
Definition at line 213 of file DedupeRules.php.
|
protected |
Returns the name of the element
Element | $element |
Definition at line 224 of file DedupeRules.php.
|
protected |
Based on the Element the data from
Element | $element |
Definition at line 236 of file DedupeRules.php.