Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F76466653
PhabricatorCalendarImportUpdateLogType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Aug 8, 03:22
Size
868 B
Mime Type
text/x-php
Expires
Sat, Aug 10, 03:22 (2 d)
Engine
blob
Format
Raw Data
Handle
19716677
Attached To
rPH Phabricator
PhabricatorCalendarImportUpdateLogType.php
View Options
<?php
final
class
PhabricatorCalendarImportUpdateLogType
extends
PhabricatorCalendarImportLogType
{
const
LOGTYPE
=
'update'
;
public
function
getDisplayType
(
PhabricatorUser
$viewer
,
PhabricatorCalendarImportLog
$log
)
{
$is_new
=
$log
->
getParameter
(
'new'
);
if
(
$is_new
)
{
return
pht
(
'Imported Event'
);
}
else
{
return
pht
(
'Updated Event'
);
}
}
public
function
getDisplayDescription
(
PhabricatorUser
$viewer
,
PhabricatorCalendarImportLog
$log
)
{
$event_phid
=
$log
->
getParameter
(
'phid'
);
return
$viewer
->
renderHandle
(
$event_phid
);
}
public
function
getDisplayIcon
(
PhabricatorUser
$viewer
,
PhabricatorCalendarImportLog
$log
)
{
return
'fa-calendar'
;
}
public
function
getDisplayColor
(
PhabricatorUser
$viewer
,
PhabricatorCalendarImportLog
$log
)
{
return
'green'
;
}
}
Event Timeline
Log In to Comment