Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893401
ManiphestTaskPHIDResolver.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
656 B
Referenced Files
None
Subscribers
None
ManiphestTaskPHIDResolver.php
View Options
<?php
final
class
ManiphestTaskPHIDResolver
extends
PhabricatorPHIDResolver
{
protected
function
getResolutionMap
(
array
$names
)
{
foreach
(
$names
as
$key
=>
$name
)
{
if
(
ctype_digit
(
$name
)
)
{
$names
[
$key
]
=
'T'
.
$name
;
}
}
$query
=
id
(
new
PhabricatorObjectQuery
(
)
)
->
setViewer
(
$this
->
getViewer
(
)
)
;
$tasks
=
id
(
new
ManiphestTaskPHIDType
(
)
)
->
loadNamedObjects
(
$query
,
$names
)
;
$results
=
array
(
)
;
foreach
(
$tasks
as
$task
)
{
$task_phid
=
$task
->
getPHID
(
)
;
$results
[
$task
->
getID
(
)
]
=
$task_phid
;
$results
[
$task
->
getMonogram
(
)
]
=
$task_phid
;
}
return
$results
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:20 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127379
Default Alt Text
ManiphestTaskPHIDResolver.php (656 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment