Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71205900
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
Wed, Jul 10, 07:14
Size
749 B
Mime Type
text/x-php
Expires
Fri, Jul 12, 07:14 (2 d)
Engine
blob
Format
Raw Data
Handle
18920456
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