Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83513435
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, Sep 17, 13:36
Size
914 B
Mime Type
text/x-php
Expires
Thu, Sep 19, 13:36 (2 d)
Engine
blob
Format
Raw Data
Handle
20850462
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