Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894632
PhabricatorOwnerPathQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
848 B
Referenced Files
None
Subscribers
None
PhabricatorOwnerPathQuery.php
View Options
<?php
final
class
PhabricatorOwnerPathQuery
extends
Phobject
{
public
static
function
loadAffectedPaths
(
PhabricatorRepository
$repository
,
PhabricatorRepositoryCommit
$commit
,
PhabricatorUser
$user
)
{
$drequest
=
DiffusionRequest
::
newFromDictionary
(
array
(
'user'
=>
$user
,
'repository'
=>
$repository
,
'commit'
=>
$commit
->
getCommitIdentifier
(
)
,
)
)
;
$path_query
=
DiffusionPathChangeQuery
::
newFromDiffusionRequest
(
$drequest
)
;
$paths
=
$path_query
->
loadChanges
(
)
;
$result
=
array
(
)
;
foreach
(
$paths
as
$path
)
{
$basic_path
=
'/'
.
$path
->
getPath
(
)
;
if
(
$path
->
getFileType
(
)
==
DifferentialChangeType
::
FILE_DIRECTORY
)
{
$basic_path
=
rtrim
(
$basic_path
,
'/'
)
.
'/'
;
}
$result
[
]
=
$basic_path
;
}
return
$result
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 20:10 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128330
Default Alt Text
PhabricatorOwnerPathQuery.php (848 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment