Fix php7 compatibility
This commit is contained in:
parent
dd5976066a
commit
f72ac3cf45
@ -49,20 +49,23 @@ class Documents extends DolibarrApi
|
|||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a document
|
* Return a document
|
||||||
*
|
*
|
||||||
* @param string $module_part Module part for file
|
* @param string $module_part Module part for file
|
||||||
* @param string $filename File name
|
* @param string $filename File name
|
||||||
*
|
*
|
||||||
|
* @url GET {module_part}/{filename}
|
||||||
|
*
|
||||||
* @return array Array with data of file
|
* @return array Array with data of file
|
||||||
* @throws RestException
|
* @throws RestException
|
||||||
*/
|
*/
|
||||||
public function index($module_part, $filename) {
|
public function get($module_part, $filename) {
|
||||||
return array('note'=>'FeatureNotYetAvailable');
|
return array('note'=>'FeatureNotYetAvailable');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Push a file.
|
* Push a file.
|
||||||
* Test sample 1: { "filename": "mynewfile.txt", "modulepart": "facture", "ref": "FA1701-001", "subdir": "", "filecontent": "content text", "fileencoding": "", "overwriteifexists": "0" }.
|
* Test sample 1: { "filename": "mynewfile.txt", "modulepart": "facture", "ref": "FA1701-001", "subdir": "", "filecontent": "content text", "fileencoding": "", "overwriteifexists": "0" }.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user