Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80632554
PhabricatorRepositoryURIPHIDType.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
Sun, Sep 1, 19:02
Size
835 B
Mime Type
text/x-php
Expires
Tue, Sep 3, 19:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20380407
Attached To
rPH Phabricator
PhabricatorRepositoryURIPHIDType.php
View Options
<?php
final
class
PhabricatorRepositoryURIPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'RURI'
;
public
function
getTypeName
()
{
return
pht
(
'Repository URI'
);
}
public
function
newObject
()
{
return
new
PhabricatorRepositoryURI
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorDiffusionApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorRepositoryURIQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$uri
=
$objects
[
$phid
];
$handle
->
setName
(
pht
(
'URI %d %s'
,
$uri
->
getID
(),
$uri
->
getDisplayURI
()));
}
}
}
Event Timeline
Log In to Comment