Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F70836758
PhortuneAccountPHIDType.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, Jul 7, 21:22
Size
844 B
Mime Type
text/x-php
Expires
Tue, Jul 9, 21:22 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
18873081
Attached To
rPH Phabricator
PhortuneAccountPHIDType.php
View Options
<?php
final
class
PhortuneAccountPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'ACNT'
;
public
function
getTypeName
()
{
return
pht
(
'Phortune Account'
);
}
public
function
newObject
()
{
return
new
PhortuneAccount
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorPhortuneApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhortuneAccountQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$account
=
$objects
[
$phid
];
$id
=
$account
->
getID
();
$handle
->
setName
(
$account
->
getName
());
$handle
->
setURI
(
"/phortune/{$id}/"
);
}
}
}
Event Timeline
Log In to Comment