Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72354405
DrydockLeaseNoAuthorizationsLogType.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, Jul 15, 09:25
Size
695 B
Mime Type
text/x-php
Expires
Wed, Jul 17, 09:25 (2 d)
Engine
blob
Format
Raw Data
Handle
19041186
Attached To
rPH Phabricator
DrydockLeaseNoAuthorizationsLogType.php
View Options
<?php
final
class
DrydockLeaseNoAuthorizationsLogType
extends
DrydockLogType
{
const
LOGCONST
=
'core.lease.no-authorizations'
;
public
function
getLogTypeName
()
{
return
pht
(
'No Authorizations'
);
}
public
function
getLogTypeIcon
(
array
$data
)
{
return
'fa-map-o red'
;
}
public
function
renderLog
(
array
$data
)
{
$viewer
=
$this
->
getViewer
();
$authorizing_phid
=
idx
(
$data
,
'authorizingPHID'
);
return
pht
(
'The object which authorized this lease (%s) is not authorized to use '
.
'any of the blueprints the lease lists. Approve the authorizations '
.
'before using the lease.'
,
$viewer
->
renderHandle
(
$authorizing_phid
)->
render
());
}
}
Event Timeline
Log In to Comment