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