Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72191654
ReleephBranchPHIDType.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
Mon, Jul 15, 05:48
Size
852 B
Mime Type
text/x-php
Expires
Wed, Jul 17, 05:48 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
18986031
Attached To
rPH Phabricator
ReleephBranchPHIDType.php
View Options
<?php
final
class
ReleephBranchPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'REBR'
;
public
function
getTypeName
()
{
return
pht
(
'Releeph Branch'
);
}
public
function
newObject
()
{
return
new
ReleephBranch
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorReleephApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
ReleephBranchQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$branch
=
$objects
[
$phid
];
$handle
->
setURI
(
$branch
->
getURI
());
$handle
->
setName
(
$branch
->
getBasename
());
$handle
->
setFullName
(
$branch
->
getName
());
}
}
}
Event Timeline
Log In to Comment