mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Doc
This commit is contained in:
@@ -12598,12 +12598,12 @@ function getElementProperties($elementType)
|
||||
* Fetch an object from its id and element_type
|
||||
* Inclusion of classes is automatic
|
||||
*
|
||||
* @param int $element_id Element id (Use this or element_id but not both)
|
||||
* @param string $element_type Element type ('module' or 'myobject@mymodule' or 'mymodule_myobject')
|
||||
* @param string $element_ref Element ref (Use this or element_id but not both)
|
||||
* @param int<0,2> $useCache if you want to store object in cache or get it from cache 0 => no use cache , 1 use cache, 2 force reload cache
|
||||
* @param int $maxCacheByType number of object in cache for this element type
|
||||
* @return int<-1,0>|object object || 0 || <0 if error
|
||||
* @param int $element_id Element id (Use this or element_ref but not both. If id and ref are empty, object with no fetch is returned)
|
||||
* @param string $element_type Element type ('module' or 'myobject@mymodule' or 'mymodule_myobject')
|
||||
* @param string $element_ref Element ref (Use this or element_id but not both. If id and ref are empty, object with no fetch is returned)
|
||||
* @param int<0,2> $useCache If you want to store object in cache or get it from cache 0 => no use cache , 1 use cache, 2 force reload cache
|
||||
* @param int $maxCacheByType Number of object in cache for this element type
|
||||
* @return int<-1,0>|object object || 0 || <0 if error
|
||||
* @see getElementProperties()
|
||||
*/
|
||||
function fetchObjectByElement($element_id, $element_type, $element_ref = '', $useCache = 0, $maxCacheByType = 10)
|
||||
|
||||
Reference in New Issue
Block a user