Files
2025-03-12 17:06:23 +01:00

39 lines
933 B
PHP

<?php
class stNotificationBackendComponents extends autoStNotificationBackendComponents
{
public function executeShow()
{
$this->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;
}
}