Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F68775165
PhortunePaymentProviderPHIDType.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
Fri, Jun 28, 21:22
Size
787 B
Mime Type
text/x-php
Expires
Sun, Jun 30, 21:22 (2 d)
Engine
blob
Format
Raw Data
Handle
18631429
Attached To
rPH Phabricator
PhortunePaymentProviderPHIDType.php
View Options
<?php
final
class
PhortunePaymentProviderPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'PHPR'
;
public
function
getTypeName
()
{
return
pht
(
'Phortune Payment Provider'
);
}
public
function
newObject
()
{
return
new
PhortunePaymentProviderConfig
();
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhortunePaymentProviderConfigQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$provider_config
=
$objects
[
$phid
];
$id
=
$provider_config
->
getID
();
$handle
->
setName
(
$provider_config
->
buildProvider
()->
getName
());
}
}
}
Event Timeline
Log In to Comment