dolibarr 19.0.3
Conf Class Reference

Class to stock current configuration. More...

Inheritance diagram for Conf:
Collaboration diagram for Conf:

Public Member Functions

 __construct ()
 Constructor.
 
 setEntityValues ($db, $entity)
 Load setup values into conf object (read llx_const) for a specified entity Note that this->db->xxx, this->file->xxx and this->multicompany have been already loaded when setEntityValues is called.
 
 setValues ($db)
 Load setup values into conf object (read llx_const) Note that this->db->xxx, this->file->xxx have been already set when setValues is called.
 

Public Attributes

 $global
 To store properties found into database.
 
 $browser
 To store browser info (->name, ->os, ->version, ->ua, ->layout, ...)
 
 $mycompany
 To store some setup of generic modules.
 
 $multicompany
 To store properties of multi-company.
 
 $expedition_bon
 To store module status of special module names.
 
 $use_javascript_ajax
 To store if javascript/ajax is enabked.
 
 $disable_compute
 To store if javascript/ajax is enabked.
 
 $currency
 Used to store current currency (ISO code like 'USD', 'EUR', ...). To get the currency symbol: $langs->getCurrencySymbol($this->currency)
 
 $theme
 Used to store current css (from theme)
 
 $standard_menu
 Used to store current menu handler.
 
 $entity = 1
 Used to store running instance for multi-company (default 1)
 
 $entities = array()
 Used to store list of entities to use for each element.
 
 $produit
 
 $contrat
 
 $facture
 
 $adherent
 
 $projet
 

Detailed Description

Class to stock current configuration.

Definition at line 32 of file conf.class.php.

Constructor & Destructor Documentation

◆ __construct()

Conf::__construct ( )

Constructor.

Charset for HTML output and for storing data in memory

Definition at line 172 of file conf.class.php.

References user.

Member Function Documentation

◆ setEntityValues()

Conf::setEntityValues ( $db,
$entity )

Load setup values into conf object (read llx_const) for a specified entity Note that this->db->xxx, this->file->xxx and this->multicompany have been already loaded when setEntityValues is called.

Parameters
DoliDB$dbDatabase handler
int$entityEntity to get
Returns
int Return integer < 0 if KO, >= 0 if OK

Definition at line 242 of file conf.class.php.

References $entity, and setValues().

◆ setValues()

Conf::setValues ( $db)

Load setup values into conf object (read llx_const) Note that this->db->xxx, this->file->xxx have been already set when setValues is called.

Parameters
DoliDB$dbDatabase handler
Returns
int Return integer < 0 if KO, >= 0 if OK

Definition at line 260 of file conf.class.php.

References $adherent, $contrat, $facture, $projet, dol_buildpath(), dol_include_once(), dol_osencode(), dol_sanitizeFileName(), dol_syslog(), dolDecrypt(), getDolGlobalInt(), and user.

Referenced by setEntityValues().

Member Data Documentation

◆ $adherent

Conf::$adherent
Deprecated
Use member

Definition at line 152 of file conf.class.php.

Referenced by setValues().

◆ $contrat

Conf::$contrat
Deprecated
Use contract

Definition at line 136 of file conf.class.php.

Referenced by setValues().

◆ $facture

Conf::$facture
Deprecated
Use invoice

Definition at line 146 of file conf.class.php.

Referenced by setValues().

◆ $produit

Conf::$produit
Deprecated
Use product

Definition at line 131 of file conf.class.php.

◆ $projet

Conf::$projet
Deprecated
Use project

Definition at line 161 of file conf.class.php.

Referenced by setValues().


The documentation for this class was generated from the following file: