Line 4:
Line 4:
= Content/Contenu/Contenido =
= Content/Contenu/Contenido =
−
{{flag en}} Contains the global application parameters (parameters for which the value is the same for all users).
+
{{flag en}} Contains the global application parameters (parameters for which the value is the same for all users). More information on page [[Constants]].
−
{{flag fr}} Contient le paramétrage global de l'application, c'est-à-dire les paramètres dont la valeur est commune à tous les utilisateurs.
+
{{flag fr}} Contient le paramétrage global de l'application, c'est-à-dire les paramètres dont la valeur est commune à tous les utilisateurs. Plus d'information sur la page [[Constantes]].
−
{{flag sp}} Contiene los parámetros globales de la aplicación (parámetros cuyo valor es común a todos los usuarios).
+
{{flag sp}} Contiene los parámetros globales de la aplicación (parámetros cuyo valor es común a todos los usuarios). Mas informacion en la página [[Constantes ES|Constantes]].
= Structure =
= Structure =
−
{| align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0" style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
+
== Table ==
+
{| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
|style="background-color: #e9e9ef"| <b>Field</b>
|style="background-color: #e9e9ef"| <b>Field</b>
|style="background-color: #e9e9ef"| <b>Type</b>
|style="background-color: #e9e9ef"| <b>Type</b>
Line 22:
Line 23:
| rowid
| rowid
| int(11)
| int(11)
−
|
+
| NO
| PRI
| PRI
−
| NULL
+
|
| auto_increment
| auto_increment
| technical index
| technical index
Line 30:
Line 31:
| name
| name
| varchar(255)
| varchar(255)
−
| YES
+
| NO
+
| UNI
|
|
−
| NULL
|
|
−
| name of constant
+
| key/name of constant
|-
|-
| entity
| entity
| int(11)
| int(11)
−
|
+
| NO
−
|
+
| UNI
| 1
| 1
|
|
Line 46:
Line 47:
| value
| value
| text
| text
−
| YES
+
| NO
+
|
|
|
−
| NULL
|
|
−
| value of constant. max 65535 caracteres
+
| value of constant.
|-
|-
| type
| type
Line 58:
Line 59:
| NULL
| NULL
|
|
−
| type of constant
+
| type of constant (deprecated)
|-
|-
| visible
| visible
| tinyint(4)
| tinyint(4)
−
|
+
| NO
|
|
| 1
| 1
|
|
−
| is the constant visible?
+
| is the constant visible in the page home->setup->other ?
|-
|-
| note
| note
Line 75:
Line 76:
|
|
| notes about the constant
| notes about the constant
−
|-
+
{{FieldTms}}
−
| tms
+
|}
−
| timestamp
+
−
|
+
== Keys ==
−
|
+
{| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
−
| CURRENT_TIMESTAMP
+
|style="background-color: #e9e9ef"| <b>Key</b>
−
|
+
|style="background-color: #e9e9ef"| <b>Type</b>
−
| last update date
+
|style="background-color: #e9e9ef"| <b>Fields</b>
−
|}
+
|-
+
| PRIMARY
+
| PRIMARY
+
| rowid
+
|-
+
| uk_const
+
| UNIQUE
+
| name,entity
+
|}
= Note =
= Note =
{{flag en}} Note that value of all parameters stored into this table can be read by developers in source code with syntax:
{{flag en}} Note that value of all parameters stored into this table can be read by developers in source code with syntax:
−
<source lang="php">
+
<syntaxhighlight lang="php">
$value=$conf->global->NAME
$value=$conf->global->NAME
−
</source>
+
</syntaxhighlight>
where NAME is parameter name stored in column "name". This will return walue found in column "value".
where NAME is parameter name stored in column "name". This will return walue found in column "value".
{{flag fr}} Notons que les valeurs de tous les paramètres stockés dans cette table peuvent être lu par les développeurs dans leur code source avec la syntaxe:
{{flag fr}} Notons que les valeurs de tous les paramètres stockés dans cette table peuvent être lu par les développeurs dans leur code source avec la syntaxe:
−
<source lang="php">
+
<syntaxhighlight lang="php">
$value=$conf->global->NAME
$value=$conf->global->NAME
−
</source>
+
</syntaxhighlight>
où NAME est le nom du paramètre contenu dans la colonne "name". Ceci renverra la valeur trouvé dans la colonne "value".
où NAME est le nom du paramètre contenu dans la colonne "name". Ceci renverra la valeur trouvé dans la colonne "value".
+
+
{{flag sp}} Destacar que los valores de todos los parámetros guardados en esta tabla pueden ser leídos por los desarrolladores en su código mediante la sintaxis:
+
<syntaxhighlight lang="php">
+
$value=$conf->global->NAME
+
</syntaxhighlight>
+
donde NAME es el nombre del parámetro contenido en la columna "name". Esto devolverá el valor guardado en la columna "value".