Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/conduit/ProjectCreateConduitAPIMethod.php
<?php | <?php | ||||
final class ProjectCreateConduitAPIMethod extends ProjectConduitAPIMethod { | final class ProjectCreateConduitAPIMethod extends ProjectConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'project.create'; | return 'project.create'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Create a project.'); | return pht('Create a project.'); | ||||
} | } | ||||
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 "project.edit" instead.'); | |||||
} | |||||
protected function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'name' => 'required string', | 'name' => 'required string', | ||||
'members' => 'optional list<phid>', | 'members' => 'optional list<phid>', | ||||
'icon' => 'optional string', | 'icon' => 'optional string', | ||||
'color' => 'optional string', | 'color' => 'optional string', | ||||
'tags' => 'optional list<string>', | 'tags' => 'optional list<string>', | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |