Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122407086
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
Thu, Jul 17, 17:28
Size
706 B
Mime Type
text/x-php
Expires
Sat, Jul 19, 17:28 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27480730
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