Page MenuHomePhorge

AphrontStringListHTTPParameterType.php
No OneTemporary

AphrontStringListHTTPParameterType.php

<?php
final class AphrontStringListHTTPParameterType
extends AphrontHTTPParameterType {
protected function getParameterValue(AphrontRequest $request, $key) {
$list = $request->getArr($key, null);
if ($list === null) {
$list = $request->getStrList($key);
}
return $list;
}
protected function getParameterDefault() {
return array();
}
protected function getParameterTypeName() {
return 'list<string>';
}
protected function getParameterFormatDescriptions() {
return array(
pht('Comma-separated list of strings.'),
pht('List of strings, as array.'),
);
}
protected function getParameterExamples() {
return array(
'v=cat,dog,pig',
'v[]=cat&v[]=dog',
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 15:12 (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125852
Default Alt Text
AphrontStringListHTTPParameterType.php (753 B)

Event Timeline