Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83701429
PhabricatorRepositoryRefCursorPHIDType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 18, 14:02
Size
898 B
Mime Type
text/x-php
Expires
Fri, Sep 20, 14:02 (2 d)
Engine
blob
Format
Raw Data
Handle
20880196
Attached To
rPH Phabricator
PhabricatorRepositoryRefCursorPHIDType.php
View Options
<?php
final
class
PhabricatorRepositoryRefCursorPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'RREF'
;
public
function
getTypeName
()
{
return
pht
(
'Repository Ref'
);
}
public
function
getTypeIcon
()
{
return
'fa-code-fork'
;
}
public
function
newObject
()
{
return
new
PhabricatorRepositoryRefCursor
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorDiffusionApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorRepositoryRefCursorQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$ref
=
$objects
[
$phid
];
$name
=
$ref
->
getRefName
();
$handle
->
setName
(
$name
);
}
}
}
Event Timeline
Log In to Comment