Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/conduit/FileInfoConduitAPIMethod.php
| <?php | <?php | ||||
| final class FileInfoConduitAPIMethod extends FileConduitAPIMethod { | final class FileInfoConduitAPIMethod extends FileConduitAPIMethod { | ||||
| public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
| return 'file.info'; | return 'file.info'; | ||||
| } | } | ||||
| public function getMethodDescription() { | public function getMethodDescription() { | ||||
| return pht('Get information about a file.'); | return pht('Get information about a file.'); | ||||
| } | } | ||||
| 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 "file.search" instead.'); | |||||
| } | |||||
| protected function defineParamTypes() { | protected function defineParamTypes() { | ||||
| return array( | return array( | ||||
| 'phid' => 'optional phid', | 'phid' => 'optional phid', | ||||
| 'id' => 'optional id', | 'id' => 'optional id', | ||||
| ); | ); | ||||
| } | } | ||||
| protected function defineReturnType() { | protected function defineReturnType() { | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||