ContentImmediateMailBuilder.php 861 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
3
4
5
6
<?php
/**
 * Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
 * OPEN 2.0
 *
 *
waltermazza's avatar
waltermazza committed
7
 * @package    arter\amos\notificationmanager\base\builder
Marcello Pivanti's avatar
Marcello Pivanti committed
8
9
10
11
 * @category   CategoryName
 * @author     Elite Division S.r.l.
 */

waltermazza's avatar
waltermazza committed
12
namespace arter\amos\notificationmanager\base\builder;
Marcello Pivanti's avatar
Marcello Pivanti committed
13

waltermazza's avatar
waltermazza committed
14
use arter\amos\notificationmanager\AmosNotify;
Marcello Pivanti's avatar
Marcello Pivanti committed
15
16
17
18
19
20
21
22
23
24
25
26

class ContentImmediateMailBuilder extends ContentMailBuilder
{

    /**
     * @param array $resultset
     * @return string
     */
    protected function renderContentHeader(array $resultset)
    {
        $controller = \Yii::$app->controller;
        $contents_number = count($resultset);
waltermazza's avatar
waltermazza committed
27
        $ris = $controller->renderPartial("@vendor/arter/amos-" . AmosNotify::getModuleName() . "/src/views/email/content_immediate_email_header", [
Marcello Pivanti's avatar
Marcello Pivanti committed
28
29
30
31
32
33
            'contents_number' => $contents_number
        ]);
        return $ris;
    }

}