Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1111727
PhabricatorOwnersPathsSearchEngineAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
778 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
->
getPath
(),
'isExcluded'
=>
(
bool
)
$path
->
getExcluded
(),
);
}
return
array
(
'paths'
=>
$list
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 30, 11:26 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
276300
Default Alt Text
PhabricatorOwnersPathsSearchEngineAttachment.php (778 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment