Piwik\Plugins\ScheduledReports\API::getReportSubjectAndReportTitle PHP Method

getReportSubjectAndReportTitle() private static method

private static getReportSubjectAndReportTitle ( $websiteName, $reports )
    private static function getReportSubjectAndReportTitle($websiteName, $reports)
    {
        // if the only report is "All websites", we don't display the site name
        $reportTitle = $websiteName;
        $reportSubject = $websiteName;
        if (count($reports) == 1 && $reports[0] == 'MultiSites_getAll') {
            $reportSubject = Piwik::translate('General_MultiSitesSummary');
            $reportTitle = $reportSubject;
        }
        return array($reportSubject, $reportTitle);
    }