public function getMatchesList()
{
$result = array('exactmatch' => Craft::t('Exact Match'), 'regexmatch' => Craft::t('RegEx Match'));
/* -- Add any plugins that offer the retourMatch() method */
foreach (craft()->plugins->getPlugins() as $plugin) {
if (method_exists($plugin, "retourMatch")) {
$result[$plugin->getClassHandle()] = $plugin->getName() . Craft::t(" Match");
}
}
return $result;
}