Piwik\Plugins\Marketplace\UpdateCommunication::sendNotifications PHP Метод

sendNotifications() защищенный Метод

protected sendNotifications ( $pluginsToBeNotified )
    protected function sendNotifications($pluginsToBeNotified)
    {
        $hasThemeUpdate = false;
        $hasPluginUpdate = false;
        foreach ($pluginsToBeNotified as $plugin) {
            $hasThemeUpdate = $hasThemeUpdate || $plugin['isTheme'];
            $hasPluginUpdate = $hasPluginUpdate || !$plugin['isTheme'];
        }
        $subject = Piwik::translate('CoreUpdater_NotificationSubjectAvailablePluginUpdate');
        $message = $this->buildNotificationMessage($pluginsToBeNotified, $hasThemeUpdate, $hasPluginUpdate);
        $this->sendEmailNotification($subject, $message);
    }