This commit is contained in:
Laurent Destailleur
2024-04-27 16:39:26 +02:00
parent 26da44e254
commit c656df9d35
2 changed files with 7 additions and 7 deletions

View File

@@ -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)