Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/conduit/PhrictionInfoConduitAPIMethod.php
<?php | <?php | ||||
final class PhrictionInfoConduitAPIMethod extends PhrictionConduitAPIMethod { | final class PhrictionInfoConduitAPIMethod extends PhrictionConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'phriction.info'; | return 'phriction.info'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Retrieve information about a Phriction document.'); | return pht('Retrieve information about a Phriction document.'); | ||||
} | } | ||||
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 "phriction.document.search" instead.'); | |||||
} | |||||
protected function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'slug' => 'required string', | 'slug' => 'required string', | ||||
); | ); | ||||
} | } | ||||
protected function defineReturnType() { | protected function defineReturnType() { | ||||
return 'nonempty dict'; | return 'nonempty dict'; | ||||
Show All 24 Lines |