Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83273669
PhortunePaymentMethodPHIDType.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, Sep 16, 04:09
Size
834 B
Mime Type
text/x-php
Expires
Wed, Sep 18, 04:09 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20814074
Attached To
rPH Phabricator
PhortunePaymentMethodPHIDType.php
View Options
<?php
final
class
PhortunePaymentMethodPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'PAYM'
;
public
function
getTypeName
()
{
return
pht
(
'Phortune Payment Method'
);
}
public
function
newObject
()
{
return
new
PhortunePaymentMethod
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorPhortuneApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhortunePaymentMethodQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$method
=
$objects
[
$phid
];
$id
=
$method
->
getID
();
$handle
->
setName
(
$method
->
getFullDisplayName
());
}
}
}
Event Timeline
Log In to Comment