notification = stNotification::getInstance(); } public function executeNotifyGroups() { $groups = array(); $routing = sfRouting::getInstance(); $i18n = $this->getContext()->getI18N(); foreach (stNotificationConfiguration::getGroups() as $name => $options) { if (!isset($options['label'])) { $module = new stBackendDesktopModule($routing, $name); $label = $module->getLabel(); } else { $label = $i18n->__($options['label'], null, $options['i18n_catalogue']); } $groups[$name] = $label; } asort($groups, SORT_NATURAL); $this->groups = $groups; } }