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