Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893574
AphrontStringListHTTPParameterType.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
757 B
Referenced Files
None
Subscribers
None
AphrontStringListHTTPParameterType.php
View Options
<?php
final
class
AphrontStringListHTTPParameterType
extends
AphrontListHTTPParameterType
{
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'
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:39 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127513
Default Alt Text
AphrontStringListHTTPParameterType.php (757 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment