Alternc
latest
Alternc logiel libre pour l'hébergement
|
Go to the source code of this file.
Functions | |
variable_init ($conf=array()) | |
Persistent variable table. More... | |
variable_init_maybe () | |
Initialize the global $conf array if necessary. More... | |
variable_get ($name, $default=null, $createit_comment=null) | |
Return a persistent variable. More... | |
variable_set ($name, $value, $comment=null) | |
Set a persistent variable. More... | |
variable_del ($name) | |
Unset a persistent variable. More... | |
variables_list () | |
List all variables. More... | |
variable_del | ( | $name | ) |
Unset a persistent variable.
$name | The name of the variable to undefine. |
Definition at line 146 of file variables.php.
variable_get | ( | $name, | |
$default = null , |
|||
$createit_comment = null |
|||
) |
Return a persistent variable.
$name | The name of the variable to return. |
$default | The default value to use if this variable has never been set. |
$createit_comment | If variable doesn't exist, create it with the default value and createit_comment value as comment |
global | $conf | A cache of the configuration. |
Definition at line 85 of file variables.php.
References $conf, elseif, variable_init_maybe(), and variable_set().
Referenced by m_admin\__construct(), m_mysql\__construct(), m_mem\_get_reset_url(), m_mysql\add_db(), m_admin\add_shared_domain(), m_mysql\add_user(), m_action\archive(), m_admin\checkalldom(), m_messages\debug(), m_admin\dom_list(), m_ssl\get_fqdn_specials(), m_admin\hook_admin_add_member(), m_mail\hook_dom_add_mx_domain(), m_dom\m_dom(), m_ftp\m_ftp(), m_lxc\m_lxc(), m_mail\m_mail(), m_piwik\m_piwik(), m_quota\m_quota(), m_ssl\m_ssl(), m_mysql\put_mysql_backup(), m_mysql\put_mysql_details(), m_mem\requires_old_password_for_change(), m_mem\send_reset_url(), m_mem\temporary_login(), m_ssl\update_specials_match(), and m_mem\validate_reset_url().
variable_init | ( | $conf = array() | ) |
Persistent variable table.
Definition at line 36 of file variables.php.
References $conf, $db, and $value.
Referenced by variable_init_maybe().
variable_init_maybe | ( | ) |
Initialize the global $conf array if necessary.
global | $conf | the global conf array @uses variable_init() |
Definition at line 62 of file variables.php.
References $conf, and variable_init().
Referenced by variable_get(), and variable_set().
variable_set | ( | $name, | |
$value, | |||
$comment = null |
|||
) |
Set a persistent variable.
$name | The name of the variable to set. |
$value | The value to set. This can be any PHP data type; these functions take care of serialization as necessary. |
Definition at line 108 of file variables.php.
References $conf, $db, $hooks, $msg, $query, $value, and variable_init_maybe().
Referenced by m_ssl\cron_new_certs(), and variable_get().
variables_list | ( | ) |