Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892532
AphrontJSONHTTPParameterType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
609 B
Referenced Files
None
Subscribers
None
AphrontJSONHTTPParameterType.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment