Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/files/conduit/FileUploadHashConduitAPIMethod.php
12241 views
1
<?php
2
3
final class FileUploadHashConduitAPIMethod extends FileConduitAPIMethod {
4
5
public function getAPIMethodName() {
6
return 'file.uploadhash';
7
}
8
9
public function getMethodStatus() {
10
return self::METHOD_STATUS_DEPRECATED;
11
}
12
13
public function getMethodStatusDescription() {
14
return pht(
15
'This method is deprecated. Callers should use "file.allocate" '.
16
'instead.');
17
}
18
19
public function getMethodDescription() {
20
return pht('Obsolete. Has no effect.');
21
}
22
23
protected function defineParamTypes() {
24
return array(
25
'hash' => 'required nonempty string',
26
'name' => 'required nonempty string',
27
);
28
}
29
30
protected function defineReturnType() {
31
return 'null';
32
}
33
34
protected function execute(ConduitAPIRequest $request) {
35
return null;
36
}
37
38
}
39
40