Page MenuHomePhorge

ConduitIntListParameterType.php
No OneTemporary

Size
706 B
Referenced Files
None
Subscribers
None

ConduitIntListParameterType.php

<?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

Mime Type
text/x-php
Expires
Tue, May 27, 8:57 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
170505
Default Alt Text
ConduitIntListParameterType.php (706 B)

Event Timeline