Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75855651
PhortuneCartPHIDType.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, Aug 4, 17:20
Size
749 B
Mime Type
text/x-php
Expires
Tue, Aug 6, 17:20 (2 d)
Engine
blob
Format
Raw Data
Handle
19616746
Attached To
rPH Phabricator
PhortuneCartPHIDType.php
View Options
<?php
final
class
PhortuneCartPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'CART'
;
public
function
getTypeName
()
{
return
pht
(
'Phortune Cart'
);
}
public
function
newObject
()
{
return
new
PhortuneCart
();
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhortuneCartQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$cart
=
$objects
[
$phid
];
$id
=
$cart
->
getID
();
$name
=
$cart
->
getName
();
$handle
->
setName
(
$name
);
$handle
->
setURI
(
"/phortune/cart/{$id}/"
);
}
}
}
Event Timeline
Log In to Comment