Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72141641
PhortunePurchasePHIDType.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:57
Size
863 B
Mime Type
text/x-php
Expires
Tue, Jul 16, 22:57 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
18983315
Attached To
rPH Phabricator
PhortunePurchasePHIDType.php
View Options
<?php
final
class
PhortunePurchasePHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'PRCH'
;
public
function
getTypeName
()
{
return
pht
(
'Phortune Purchase'
);
}
public
function
newObject
()
{
return
new
PhortunePurchase
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorPhortuneApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhortunePurchaseQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$purchase
=
$objects
[
$phid
];
$id
=
$purchase
->
getID
();
$handle
->
setName
(
$purchase
->
getFullDisplayName
());
$handle
->
setURI
(
$purchase
->
getURI
());
}
}
}
Event Timeline
Log In to Comment