Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F483783
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
Wed, May 7, 3:21 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
89661
Default Alt Text
PhabricatorOwnersPathsSearchEngineAttachment.php (783 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment