-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
abraflexi-daydigest.php
32 lines (27 loc) · 1.06 KB
/
abraflexi-daydigest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
declare(strict_types=1);
/**
* This file is part of the AbraFlexi-Digest package
*
* https://github.com/VitexSoftware/AbraFlexi-Digest/
*
* (c) Vítězslav Dvořák <http://vitexsoftware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AbraFlexi\Digest;
\define('EASE_APPNAME', 'AbraFlexi🌅Digest');
require_once __DIR__.'/init.php';
$period = new \DatePeriod(new \DateTime(), new \DateInterval('P1D'), new \DateTime());
$fmt = datefmt_create(
'cs_CZ',
\IntlDateFormatter::SHORT,
\IntlDateFormatter::NONE,
'Europe/Prague',
\IntlDateFormatter::GREGORIAN,
);
$subject = \sprintf(_('AbraFlexi 🌅ly digest for %s'), $myCompanyName);
$digestor = new Digestor($subject);
$digestor->addItem(new \Ease\Html\DivTag(datefmt_format($fmt, (new \DateTime())->getTimestamp())));
$digestor->dig($period, array_merge(\Ease\Functions::loadClassesInNamespace('AbraFlexi\Digest\Modules'), \Ease\Functions::loadClassesInNamespace('AbraFlexi\Digest\Modules\Daily')));