Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F680033
ConduitIntListParameterType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
706 B
Referenced Files
None
Subscribers
None
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]'
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 27, 8:57 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
170505
Default Alt Text
ConduitIntListParameterType.php (706 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment