Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88548923
ConduitIntListParameterType.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
Sat, Oct 19, 10:39
Size
706 B
Mime Type
text/x-php
Expires
Mon, Oct 21, 10:39 (2 d)
Engine
blob
Format
Raw Data
Handle
21788947
Attached To
rPH Phabricator
ConduitIntListParameterType.php
View Options
<?php
final
class
ConduitIntListParameterType
extends
ConduitListParameterType
{
protected
function
getParameterValue
(
array
$request
,
$key
,
$strict
)
{
$list
=
parent
::
getParameterValue
(
$request
,
$key
,
$strict
);
foreach
(
$list
as
$idx
=>
$item
)
{
$list
[
$idx
]
=
$this
->
parseIntValue
(
$request
,
$key
.
'['
.
$idx
.
']'
,
$item
,
$strict
);
}
return
$list
;
}
protected
function
getParameterTypeName
()
{
return
'list<int>'
;
}
protected
function
getParameterFormatDescriptions
()
{
return
array
(
pht
(
'List of integers.'
),
);
}
protected
function
getParameterExamples
()
{
return
array
(
'[123, 0, -456]'
,
);
}
}
Event Timeline
Log In to Comment