Hijri
3 years ago
Processors
1 month ago
QuranADay
2 months ago
StartTime
1 year ago
design
1 month ago
AdminMenu.php
2 years ago
AssetsLoader.php
1 year ago
CustomPluginSettings.php
4 years ago
DPTAjaxHandler.php
4 years ago
DPTHelper.php
1 month ago
DSTemplateLoader.php
2 years ago
DailyShortCode.php
1 month ago
DigitalScreen.php
1 month ago
HijriDate.php
3 years ago
Init.php
4 years ago
MonthlyShortCode.php
2 years ago
MonthlyTimeTable.php
3 years ago
Shortcodes.php
2 months ago
Translator.php
4 years ago
UpdateStyles.php
1 month ago
Validator.php
3 years ago
db.php
2 months ago
dptWidget.php
4 years ago
Translator.php
34 lines
| 1 | <?php |
| 2 | require_once(__DIR__ . '/../Views/TimetablePrinter.php'); |
| 3 | |
| 4 | // #TODO @TODO |
| 5 | class Translator |
| 6 | { |
| 7 | /** @var TimetablePrinter */ |
| 8 | private $timetablePrinter; |
| 9 | |
| 10 | function __construct() |
| 11 | { |
| 12 | $this->timetablePrinter = new TimetablePrinter(); |
| 13 | } |
| 14 | |
| 15 | function getPrayerNames() |
| 16 | { |
| 17 | $this->timetablePrinter->getLocalPrayerNames(); |
| 18 | } |
| 19 | |
| 20 | function getPrayerName($prayerName) |
| 21 | { |
| 22 | return $this->getPrayerNames()[$prayerName]; |
| 23 | } |
| 24 | |
| 25 | function getNumbers() |
| 26 | { |
| 27 | return $this->timetablePrinter->getLocalNumbers(); |
| 28 | } |
| 29 | |
| 30 | function getNumber(int $number) |
| 31 | { |
| 32 | return $this->timetablePrinter->getLocalNumbers(); |
| 33 | } |
| 34 | } |