Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893365
PhabricatorPackagesVersionPHIDType.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
887 B
Referenced Files
None
Subscribers
None
PhabricatorPackagesVersionPHIDType.php
View Options
<?php
final
class
PhabricatorPackagesVersionPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'PVER'
;
public
function
getTypeName
(
)
{
return
pht
(
'Version'
)
;
}
public
function
newObject
(
)
{
return
new
PhabricatorPackagesVersion
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
PhabricatorPackagesApplication
::
class
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorPackagesVersionQuery
(
)
)
->
withPHIDs
(
$phids
)
;
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$version
=
$objects
[
$phid
]
;
$name
=
$version
->
getName
(
)
;
$uri
=
$version
->
getURI
(
)
;
$handle
->
setName
(
$name
)
->
setURI
(
$uri
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:16 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127348
Default Alt Text
PhabricatorPackagesVersionPHIDType.php (887 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment