Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1517263
PhabricatorOwnersPathsSearchEngineAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
783 B
Referenced Files
None
Subscribers
None
PhabricatorOwnersPathsSearchEngineAttachment.php
View Options
<?php
final
class
PhabricatorOwnersPathsSearchEngineAttachment
extends
PhabricatorSearchEngineAttachment
{
public
function
getAttachmentName
()
{
return
pht
(
'Included Paths'
);
}
public
function
getAttachmentDescription
()
{
return
pht
(
'Get the paths for each package.'
);
}
public
function
willLoadAttachmentData
(
$query
,
$spec
)
{
$query
->
needPaths
(
true
);
}
public
function
getAttachmentForObject
(
$object
,
$data
,
$spec
)
{
$paths
=
$object
->
getPaths
();
$list
=
array
();
foreach
(
$paths
as
$path
)
{
$list
[]
=
array
(
'repositoryPHID'
=>
$path
->
getRepositoryPHID
(),
'path'
=>
$path
->
getPathDisplay
(),
'excluded'
=>
(
bool
)
$path
->
getExcluded
(),
);
}
return
array
(
'paths'
=>
$list
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jul 14, 12:51 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
347913
Default Alt Text
PhabricatorOwnersPathsSearchEngineAttachment.php (783 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment