Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82238799
PhortuneSubscriptionPHIDType.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
Tue, Sep 10, 08:17
Size
797 B
Mime Type
text/x-php
Expires
Thu, Sep 12, 08:17 (2 d)
Engine
blob
Format
Raw Data
Handle
20668997
Attached To
rPH Phabricator
PhortuneSubscriptionPHIDType.php
View Options
<?php
final
class
PhortuneSubscriptionPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'PSUB'
;
public
function
getTypeName
()
{
return
pht
(
'Phortune Subscription'
);
}
public
function
newObject
()
{
return
new
PhortuneSubscription
();
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhortuneSubscriptionQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$subscription
=
$objects
[
$phid
];
$id
=
$subscription
->
getID
();
$handle
->
setName
(
$subscription
->
getSubscriptionName
());
$handle
->
setURI
(
$subscription
->
getURI
());
}
}
}
Event Timeline
Log In to Comment