class Conf extends stdClass (View source)

Class to stock current configuration

Properties

object $file
object $db
object $global
stdClass $browser
stdClass $mycompany
stdClass $admin
stdClass $medias
stdClass $multicompany
?mixed $delivery_note
int $use_javascript_ajax
int $disable_compute
string $currency
string $theme
string $css
string $email_from
string $standard_menu
array<string, string> $modules
array<string, array<string, string|array>> $modules_parts
array<string, mixed> $cache
int $headerdone
string[] $logbuffer
LogHandler[] $loghandlers
int $entity
int[] $entities
int<0, 1> $dol_hide_topmenu
int<0, 1> $dol_hide_leftmenu
int $dol_optimize_smallscreen
int $dol_no_mouse_hover
int $dol_use_jmobile
string $format_date_short
string $format_date_short_java
string $format_hour_short
string $format_hour_short_duration
string $format_date_text_short
string $format_date_text
string $format_date_hour_short
string $format_date_hour_sec_short
string $format_date_hour_text_short
string $format_date_hour_text
int $liste_limit
int $main_checkbox_left_column
string $tzuserinputkey
stdClass $fournisseur
stdClass $product
stdClass deprecated $produit
stdClass $service
stdClass deprecated $contrat
stdClass $contract
stdClass $actions
stdClass $agenda
stdClass $propal
stdClass deprecated $commande
stdClass $order
stdClass deprecated $facture
stdClass $invoice
stdClass $user
stdClass deprecated $adherent
stdClass $member
stdClass $bank
stdClass $notification
stdClass $expensereport
stdClass $productbatch
stdClass $api
stdClass deprecated $projet
stdClass $project
stdClass $supplier_proposal
stdClass $supplier_order
stdClass $supplier_invoice
stdClass $category
stdClass $mrp

Methods

__construct()

Constructor

int
setEntityValues(DoliDB $db, int $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.

int
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.

Details

__construct()

Constructor

int setEntityValues(DoliDB $db, int $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 $db

Database handler

int $entity

Entity to get

Return Value

int

Return integer < 0 if KO, >= 0 if OK

int 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.

@param DoliDB $db Database handler

Parameters

$db

Return Value

int

Return integer < 0 if KO, >= 0 if OK