Added objectName(): returns current translated object name
This commit is contained in:
parent
def29edb0d
commit
6beb9b0080
@ -35,7 +35,7 @@ if ( !defined('SYSTEM_IN') )
|
||||
* <P>Récupere l'uid de l'utilisateur courant</P>
|
||||
* @return entier
|
||||
*/
|
||||
function uid ()
|
||||
function uid()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_USER_SESSION"]))
|
||||
{
|
||||
@ -55,7 +55,7 @@ function uid ()
|
||||
* <P>Récupere le "First Name" de l'utilisateur courant</P>
|
||||
* @return entier
|
||||
*/
|
||||
function userFirstName ()
|
||||
function userFirstName()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_USER_SESSION"]))
|
||||
{
|
||||
@ -70,7 +70,7 @@ function userFirstName ()
|
||||
* <P>Récupere le "Last Name" de l'utilisateur courant</P>
|
||||
* @return entier
|
||||
*/
|
||||
function userLastName ()
|
||||
function userLastName()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_USER_SESSION"]))
|
||||
{
|
||||
@ -85,7 +85,7 @@ function userLastName ()
|
||||
* <P>Récupere le "Mail" de l'utilisateur courant</P>
|
||||
* @return entier
|
||||
*/
|
||||
function userMail ()
|
||||
function userMail()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_USER_SESSION"]))
|
||||
{
|
||||
@ -100,7 +100,7 @@ function userMail ()
|
||||
* <P>Récupere l'identifiant de la langue courante d'affichage</P>
|
||||
* @return entier
|
||||
*/
|
||||
function lid ()
|
||||
function lid()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_USER_SESSION"]))
|
||||
{
|
||||
@ -120,7 +120,7 @@ function lid ()
|
||||
* <P>Récépere le code de la langue courante (FR-GB) etc</P>
|
||||
* @return param code
|
||||
*/
|
||||
function lcode ()
|
||||
function lcode()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_USER_SESSION"]))
|
||||
{
|
||||
@ -140,7 +140,7 @@ function lcode ()
|
||||
* <P>Récupere un tableau contenant les identifiants des groupes de l'utilisateurs courant</P>
|
||||
* @return tableau tableau d'entier
|
||||
*/
|
||||
function gid ()
|
||||
function gid()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_USER_SESSION"]))
|
||||
{
|
||||
@ -155,7 +155,7 @@ function gid ()
|
||||
* <P>Récépere l'identifiant du noeud courant de navigation (endroit dans l'arbre)</P>
|
||||
* @return tableau tableau d'entier
|
||||
*/
|
||||
function nid ()
|
||||
function nid()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_USER_SESSION"]))
|
||||
{
|
||||
@ -175,7 +175,7 @@ function nid ()
|
||||
* <P>Récépere l'identifiant du noeud d'entrée de navigation (=> noeud d'entrée dans l'arbre)</P>
|
||||
* @return tableau tableau d'entier
|
||||
*/
|
||||
function eid ()
|
||||
function eid()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_USER_SESSION"]))
|
||||
{
|
||||
@ -195,7 +195,7 @@ function eid ()
|
||||
* <P>Récépere l'identifiant de l'objet a executer</P>
|
||||
* @return tableau tableau d'entier
|
||||
*/
|
||||
function oid ()
|
||||
function oid()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_CONTROL"]))
|
||||
{
|
||||
@ -215,7 +215,7 @@ function oid ()
|
||||
* <P>Récépere le nom de la classe courante</P>
|
||||
* @return tableau tableau d'entier
|
||||
*/
|
||||
function className ()
|
||||
function className()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_CONTROL"]))
|
||||
{
|
||||
@ -230,12 +230,25 @@ 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
|
||||
* <P>Récépere le nom de la methode courante</P>
|
||||
* @return tableau tableau d'entier
|
||||
*/
|
||||
function methodName ()
|
||||
function methodName()
|
||||
{
|
||||
if (isset($GLOBALS["SYSTEM_CONTROL"]))
|
||||
{
|
||||
@ -472,7 +485,8 @@ function systemPrint($data)
|
||||
|
||||
/**
|
||||
* Function permettant de récupérer l'id du noeud racine de communauté
|
||||
* @access private
|
||||
* @access pri()
|
||||
{vate
|
||||
* @return chaine entier noeud de configuration
|
||||
*/
|
||||
function recupCommunityByDomain($domain)
|
||||
|
Loading…
x
Reference in New Issue
Block a user