Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82469744
ConduitPHIDParameterType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 11, 14:51
Size
676 B
Mime Type
text/x-php
Expires
Fri, Sep 13, 14:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20704815
Attached To
rPH Phabricator
ConduitPHIDParameterType.php
View Options
<?php
final
class
ConduitPHIDParameterType
extends
ConduitParameterType
{
protected
function
getParameterValue
(
array
$request
,
$key
)
{
$value
=
parent
::
getParameterValue
(
$request
,
$key
);
if
(!
is_string
(
$value
))
{
$this
->
raiseValidationException
(
$request
,
$key
,
pht
(
'Expected PHID, got something else.'
));
}
return
$value
;
}
protected
function
getParameterTypeName
()
{
return
'phid'
;
}
protected
function
getParameterFormatDescriptions
()
{
return
array
(
pht
(
'A PHID.'
),
);
}
protected
function
getParameterExamples
()
{
return
array
(
'"PHID-WXYZ-1111222233334444"'
,
);
}
}
Event Timeline
Log In to Comment