Merge pull request #12525 from ptibogxiv/patch-283

NEW get company info by API
This commit is contained in:
Laurent Destailleur 2019-11-28 12:28:18 +01:00 committed by GitHub
commit 17054c94ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1327,6 +1327,20 @@ class Setup extends DolibarrApi
return $list;
}
/**
* Get properties of company
*
* @url GET /company
*
* @return array|mixed Data without useless information
*
*/
public function getCompany()
{
global $mysoc;
return $this->_cleanObjectDatas($mysoc);
}
/**
* Do a test of integrity for files and setup.