Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82767563
ConduitColumnsParameterType.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
Fri, Sep 13, 07:53
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Sep 15, 07:53 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20749651
Attached To
rPH Phabricator
ConduitColumnsParameterType.php
View Options
<?php
final
class
ConduitColumnsParameterType
extends
ConduitParameterType
{
protected
function
getParameterValue
(
array
$request
,
$key
,
$strict
)
{
// We don't do any meaningful validation here because the transaction
// itself validates everything and the input format is flexible.
return
parent
::
getParameterValue
(
$request
,
$key
,
$strict
);
}
protected
function
getParameterTypeName
()
{
return
'columns'
;
}
protected
function
getParameterDefault
()
{
return
array
();
}
protected
function
getParameterFormatDescriptions
()
{
return
array
(
pht
(
'Single column PHID.'
),
pht
(
'List of column PHIDs.'
),
pht
(
'List of position dictionaries.'
),
pht
(
'List with a mixture of PHIDs and dictionaries.'
),
);
}
protected
function
getParameterExamples
()
{
return
array
(
'"PHID-PCOL-1111"'
,
'["PHID-PCOL-2222", "PHID-PCOL-3333"]'
,
'[{"columnPHID": "PHID-PCOL-4444", "afterPHID": "PHID-TASK-5555"}]'
,
'[{"columnPHID": "PHID-PCOL-4444", "beforePHID": "PHID-TASK-6666"}]'
,
);
}
}
Event Timeline
Log In to Comment