Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78395327
AlmanacNetworkPHIDType.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
Tue, Aug 20, 14:29
Size
914 B
Mime Type
text/x-php
Expires
Thu, Aug 22, 14:29 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20039114
Attached To
rPH Phabricator
AlmanacNetworkPHIDType.php
View Options
<?php
final
class
AlmanacNetworkPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'ANET'
;
public
function
getTypeName
()
{
return
pht
(
'Almanac Network'
);
}
public
function
newObject
()
{
return
new
AlmanacNetwork
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorAlmanacApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
AlmanacNetworkQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$network
=
$objects
[
$phid
];
$id
=
$network
->
getID
();
$name
=
$network
->
getName
();
$handle
->
setObjectName
(
pht
(
'Network %d'
,
$id
));
$handle
->
setName
(
$name
);
$handle
->
setURI
(
$network
->
getURI
());
}
}
}
Event Timeline
Log In to Comment