Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852595
PhortuneCartPHIDType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
849 B
Referenced Files
None
Subscribers
None
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
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
'PhabricatorPhortuneApplication'
;
}
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}/"
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:42 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1754517
Default Alt Text
PhortuneCartPHIDType.php (849 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment