Differential D17158 Diff 41267 src/applications/maniphest/conduit/ManiphestQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/conduit/ManiphestQueryConduitAPIMethod.php
<?php | <?php | ||||
final class ManiphestQueryConduitAPIMethod extends ManiphestConduitAPIMethod { | final class ManiphestQueryConduitAPIMethod extends ManiphestConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'maniphest.query'; | return 'maniphest.query'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Execute complex searches for Maniphest tasks.'); | return pht('Execute complex searches for Maniphest tasks.'); | ||||
} | } | ||||
public function getMethodStatus() { | |||||
return self::METHOD_STATUS_FROZEN; | |||||
} | |||||
public function getMethodStatusDescription() { | |||||
return pht( | |||||
'This method is frozen and will eventually be deprecated. New code '. | |||||
'should use "maniphest.search" instead.'); | |||||
} | |||||
protected function defineParamTypes() { | protected function defineParamTypes() { | ||||
$statuses = array( | $statuses = array( | ||||
ManiphestTaskQuery::STATUS_ANY, | ManiphestTaskQuery::STATUS_ANY, | ||||
ManiphestTaskQuery::STATUS_OPEN, | ManiphestTaskQuery::STATUS_OPEN, | ||||
ManiphestTaskQuery::STATUS_CLOSED, | ManiphestTaskQuery::STATUS_CLOSED, | ||||
ManiphestTaskQuery::STATUS_RESOLVED, | ManiphestTaskQuery::STATUS_RESOLVED, | ||||
ManiphestTaskQuery::STATUS_WONTFIX, | ManiphestTaskQuery::STATUS_WONTFIX, | ||||
ManiphestTaskQuery::STATUS_INVALID, | ManiphestTaskQuery::STATUS_INVALID, | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |