Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72532049
AphrontPHIDListHTTPParameterType.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
Mon, Jul 15, 14:11
Size
718 B
Mime Type
text/x-php
Expires
Wed, Jul 17, 14:11 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
19062271
Attached To
rPH Phabricator
AphrontPHIDListHTTPParameterType.php
View Options
<?php
final
class
AphrontPHIDListHTTPParameterType
extends
AphrontHTTPParameterType
{
protected
function
getParameterValue
(
AphrontRequest
$request
,
$key
)
{
$type
=
new
AphrontStringListHTTPParameterType
();
return
$this
->
getValueWithType
(
$type
,
$request
,
$key
);
}
protected
function
getParameterTypeName
()
{
return
'list<phid>'
;
}
protected
function
getParameterFormatDescriptions
()
{
return
array
(
pht
(
'Comma-separated list of PHIDs.'
),
pht
(
'List of PHIDs, as array.'
),
);
}
protected
function
getParameterExamples
()
{
return
array
(
'v=PHID-XXXX-1111'
,
'v=PHID-XXXX-1111,PHID-XXXX-2222'
,
'v[]=PHID-XXXX-1111&v[]=PHID-XXXX-2222'
,
);
}
}
Event Timeline
Log In to Comment