Generate file attachment transactions for explicit Remarkup attachments on common...
[phabricator.git] / src / aphront / httpparametertype / AphrontJSONHTTPParameterType.php
blob3a1081bd7575ab5b56836a9a4a9d8c926fcacc7c
1 <?php
3 final class AphrontJSONHTTPParameterType
4 extends AphrontHTTPParameterType {
6 protected function getParameterDefault() {
7 return array();
10 protected function getParameterValue(AphrontRequest $request, $key) {
11 $str = $request->getStr($key);
12 return phutil_json_decode($str);
15 protected function getParameterTypeName() {
16 return 'string (json object)';
19 protected function getParameterFormatDescriptions() {
20 return array(
21 pht('A JSON-encoded object.'),
25 protected function getParameterExamples() {
26 return array(
27 'v={...}',