Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71620222
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
Fri, Jul 12, 06:35
Size
664 B
Mime Type
text/x-php
Expires
Sun, Jul 14, 06:35 (2 d)
Engine
blob
Format
Raw Data
Handle
18962314
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
);
}
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