- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/journal.php
- Класс: BitrixSaleTradingPlatformVkJournal
- Вызов: Journal::getStatisticText
static function getStatisticText($type, $exportId)
{
$journal = self::getStatistic($type, $exportId);
$result = "" . Loc::getMessage("VK_JOURNAL_" . $type) . "
";
// never running
if (!isset($journal[$type]["START"]) && !isset($journal[$type]["END"]))
{
$result .= "" . Loc::getMessage("VK_JOURNAL_NEVER") . "
";
}
// export was finished
elseif (isset($journal[$type]["END"]))
{
$result .= "";
$result .= Loc::getMessage("VK_JOURNAL_LAST_EXPORT", array(
'#D1' => date('d.m.y', $journal[$type]["END"]),
'#D2' => date('G:i', $journal[$type]["END"]),
));
$result .= isset($journal[$type]["ABORT"]) && $journal[$type]["ABORT"] ?
' ' . Loc::getMessage("VK_JOURNAL_LAST_EXPORT_ABORTED") : '';
$result .= "
";
// add count items
if ($journal[$type]["COUNT"])
$result .= "" .
Loc::getMessage("VK_JOURNAL_COUNT_WAS", array(
'#C1' => $journal[$type]["COUNT"],
)) .
"
";
}
// running now
elseif (isset($journal[$type]["START"]))
{
$result .= "" . Loc::getMessage("VK_JOURNAL_EXPORT_NOW") . "
";
// add count items
if ($journal[$type]["COUNT"])
$result .=
"" .
Loc::getMessage("VK_JOURNAL_COUNT_NOW", array(
'#C1' => $journal[$type]["COUNT"],
)) .
"
";
}
return $result;
}