Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/conduit/PasteCreateConduitAPIMethod.php
<?php | <?php | ||||
final class PasteCreateConduitAPIMethod extends PasteConduitAPIMethod { | final class PasteCreateConduitAPIMethod extends PasteConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'paste.create'; | return 'paste.create'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Create a new paste.'); | return pht('Create a new paste.'); | ||||
} | } | ||||
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 "paste.edit" instead.'); | |||||
} | |||||
protected function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'content' => 'required string', | 'content' => 'required string', | ||||
'title' => 'optional string', | 'title' => 'optional string', | ||||
'language' => 'optional string', | 'language' => 'optional string', | ||||
); | ); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |