Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96197414
HarbormasterQueryBuildsSearchEngineAttachment.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, Dec 23, 16:40
Size
859 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 16:40 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
23143067
Attached To
rPH Phabricator
HarbormasterQueryBuildsSearchEngineAttachment.php
View Options
<?php
final
class
HarbormasterQueryBuildsSearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
()
{
return
pht
(
'Harbormaster Query Builds'
);
}
public
function
getAttachmentDescription
()
{
return
pht
(
'This attachment exists solely to provide compatibility with the '
.
'message format returned by an outdated API method. It will be '
.
'taken away at some point and you should not rely on these fields '
.
'being available.'
);
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
$status_name
=
HarbormasterBuildStatus
::
getBuildStatusName
(
$object
->
getBuildStatus
());
return
array
(
'uri'
=>
PhabricatorEnv
::
getProductionURI
(
$object
->
getURI
()),
'name'
=>
$object
->
getName
(),
'buildStatusName'
=>
$status_name
,
);
}
}
Event Timeline
Log In to Comment