Added objectName(): returns current translated object name

This commit is contained in:
Rooty 2021-04-30 10:17:00 +02:00
parent def29edb0d
commit 6beb9b0080

View File

@ -230,6 +230,19 @@ function className ()
} }
} }
/**
*Fonction objectName
* <P>Récépere le nom localisé de l'outil courant</P>
* @return string name
*/
function objectName($langcode="fr")
{
if (isset($GLOBALS["SYSTEM_CONTROL"]))
return $GLOBALS["SYSTEM_CONTROL"]->currentCoordinationObject->getName($langcode);
else
return NULL; /* Attention variable arbitraire */
}
/** /**
*Fonction methodName *Fonction methodName
* <P>Récépere le nom de la methode courante</P> * <P>Récépere le nom de la methode courante</P>
@ -472,7 +485,8 @@ function systemPrint($data)
/** /**
* Function permettant de récupérer l'id du noeud racine de communauté * Function permettant de récupérer l'id du noeud racine de communauté
* @access private * @access pri()
{vate
* @return chaine entier noeud de configuration * @return chaine entier noeud de configuration
*/ */
function recupCommunityByDomain($domain) function recupCommunityByDomain($domain)