Page MenuHomePhorge

AphrontJSONHTTPParameterType.php
No OneTemporary

AphrontJSONHTTPParameterType.php

<?php
final class AphrontJSONHTTPParameterType
extends AphrontHTTPParameterType {
protected function getParameterDefault() {
return array();
}
protected function getParameterValue(AphrontRequest $request, $key) {
$str = $request->getStr($key);
return phutil_json_decode($str);
}
protected function getParameterTypeName() {
return 'string (json object)';
}
protected function getParameterFormatDescriptions() {
return array(
pht('A JSON-encoded object.'),
);
}
protected function getParameterExamples() {
return array(
'v={...}',
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 16:58 (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126319
Default Alt Text
AphrontJSONHTTPParameterType.php (609 B)

Event Timeline