Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F448900
DiffusionRepositoryURIsSearchEngineAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
799 B
Referenced Files
None
Subscribers
None
DiffusionRepositoryURIsSearchEngineAttachment.php
View Options
<?php
final
class
DiffusionRepositoryURIsSearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
()
{
return
pht
(
'Repository URIs'
);
}
public
function
getAttachmentDescription
()
{
return
pht
(
'Get a list of associated URIs for each repository.'
);
}
public
function
willLoadAttachmentData
(
$query
,
$spec
)
{
$query
->
needURIs
(
true
);
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
$uris
=
array
();
foreach
(
$object
->
getURIs
()
as
$uri
)
{
$uris
[]
=
array
(
'id'
=>
$uri
->
getID
(),
'type'
=>
phid_get_type
(
$uri
->
getPHID
()),
'phid'
=>
$uri
->
getPHID
(),
'fields'
=>
$uri
->
getFieldValuesForConduit
(),
);
}
return
array
(
'uris'
=>
$uris
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 6:52 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
67291
Default Alt Text
DiffusionRepositoryURIsSearchEngineAttachment.php (799 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment