Page MenuHomePhorge

AphrontStringListHTTPParameterType.php
No OneTemporary

AphrontStringListHTTPParameterType.php

<?php
final class AphrontStringListHTTPParameterType
extends AphrontListHTTPParameterType {
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, 18:39 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127513
Default Alt Text
AphrontStringListHTTPParameterType.php (757 B)

Event Timeline