Page MenuHomePhorge

PhabricatorCalendarImportICSWarningLogType.php
No OneTemporary

PhabricatorCalendarImportICSWarningLogType.php

<?php
final class PhabricatorCalendarImportICSWarningLogType
extends PhabricatorCalendarImportLogType {
const LOGTYPE = 'ics.warning';
public function getDisplayType(
PhabricatorUser $viewer,
PhabricatorCalendarImportLog $log) {
return pht('ICS Parser Warning');
}
public function getDisplayDescription(
PhabricatorUser $viewer,
PhabricatorCalendarImportLog $log) {
return pht(
'Warning ("%s") while parsing ICS data (near line %s): %s',
$log->getParameter('ics.warning.code'),
$log->getParameter('ics.warning.line'),
$log->getParameter('ics.warning.message'));
}
public function getDisplayIcon(
PhabricatorUser $viewer,
PhabricatorCalendarImportLog $log) {
return 'fa-exclamation-triangle';
}
public function getDisplayColor(
PhabricatorUser $viewer,
PhabricatorCalendarImportLog $log) {
return 'yellow';
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 18:15 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127335
Default Alt Text
PhabricatorCalendarImportICSWarningLogType.php (910 B)

Event Timeline