Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72199506
AphrontStringListHTTPParameterType.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, 06:18
Size
753 B
Mime Type
text/x-php
Expires
Wed, Jul 17, 06:18 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19038151
Attached To
rPH Phabricator
AphrontStringListHTTPParameterType.php
View Options
<?php
final
class
AphrontStringListHTTPParameterType
extends
AphrontHTTPParameterType
{
protected
function
getParameterValue
(
AphrontRequest
$request
,
$key
)
{
$list
=
$request
->
getArr
(
$key
,
null
);
if
(
$list
===
null
)
{
$list
=
$request
->
getStrList
(
$key
);
}
return
$list
;
}
protected
function
getParameterDefault
()
{
return
array
();
}
protected
function
getParameterTypeName
()
{
return
'list<string>'
;
}
protected
function
getParameterFormatDescriptions
()
{
return
array
(
pht
(
'Comma-separated list of strings.'
),
pht
(
'List of strings, as array.'
),
);
}
protected
function
getParameterExamples
()
{
return
array
(
'v=cat,dog,pig'
,
'v[]=cat&v[]=dog'
,
);
}
}
Event Timeline
Log In to Comment