Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77144375
DrydockResourceActivationYieldLogType.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
Mon, Aug 12, 17:20
Size
504 B
Mime Type
text/x-php
Expires
Wed, Aug 14, 17:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19823427
Attached To
rPH Phabricator
DrydockResourceActivationYieldLogType.php
View Options
<?php
final
class
DrydockResourceActivationYieldLogType
extends
DrydockLogType
{
const
LOGCONST
=
'core.resource.activation-yield'
;
public
function
getLogTypeName
()
{
return
pht
(
'Waiting for Activation'
);
}
public
function
getLogTypeIcon
(
array
$data
)
{
return
'fa-clock-o green'
;
}
public
function
renderLog
(
array
$data
)
{
$duration
=
idx
(
$data
,
'duration'
);
return
pht
(
'Waiting %s second(s) for resource to activate.'
,
new
PhutilNumber
(
$duration
));
}
}
Event Timeline
Log In to Comment