Created
January 29, 2015 10:20
-
-
Save tleilax/0032f6f645155ac0ea55 to your computer and use it in GitHub Desktop.
Stud.IP: Helpbar::addPlainText()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo | |
{ | |
// ... | |
/** | |
* Setzt den Helpbar-Inhalt für die Funktionen des Plugins | |
*/ | |
protected function getHelpbarContent($key) | |
{ | |
if ($id === 'protect') { | |
$tip = _('Die Auflistung der Veranstaltungen kann je nach Menge sehr lange dauern.'); | |
$hint = _('Beachten Sie, dass beim Schützen der Veranstaltungen das Datum der letzten Aktivität auf den heutigen Tag gesetzt wird und dies nicht rückgängig gemacht werden kann.'); | |
Helpbar::get()->addPlainText(_('Hinweis'), $tip, 'icons/16/white/date.png'); | |
Helpbar::get()->addPlainText(_('Achtung'), $hint, 'icons/16/white/info-circle.png'); | |
} elseif ($id === 'list') { | |
$description = _('Wählen Sie das Semester aus.') . ' '; | |
$description .= _('Die anderen Parameter kommen aus der Konfiguration der automatischen Archivierung.') . ' '; | |
$description .= _('Sie erhalten dann eine Liste aller Veranstaltungen, die diese Kriterien erfüllen.'); | |
$tip = _('Die Auflistung der Veranstaltungen kann unter Umständen sehr lange dauern.'); | |
Helpbar::get()->addPlainText(_('Information'), $description, 'icons/16/white/info-circle.png'); | |
Helpbar::get()->addPlainText(_('Hinweis'), $tip, 'icons/16/white/info-circle.png'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment