Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2891798
PhabricatorCalendarImportUpdateLogType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
868 B
Referenced Files
None
Subscribers
None
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'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 15:45 (3 w, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126140
Default Alt Text
PhabricatorCalendarImportUpdateLogType.php (868 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment