2
0
forked from Wavyzz/dolibarr

Prepare phpunit 6.1 compatibility

This commit is contained in:
Laurent Destailleur
2018-09-02 14:23:52 +02:00
61 changed files with 230 additions and 108 deletions

View File

@@ -61,7 +61,9 @@ class BankAccountTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -62,6 +62,8 @@ class BonPrelevementTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -89,7 +89,9 @@ class BuildDocTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -59,7 +59,9 @@ class CMailFileTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -60,7 +60,9 @@ class CategorieTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -60,6 +60,8 @@ class ChargeSocialesTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -72,7 +72,9 @@ class CodingPhpTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -72,7 +72,9 @@ class CodingSqlTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -61,7 +61,9 @@ class CommandeFournisseurTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -59,7 +59,9 @@ class CommandeTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -60,7 +60,9 @@ class CommonObjectTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -60,6 +60,8 @@ class CompanyBankAccountTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -59,7 +59,9 @@ class CompanyLibTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -68,6 +68,8 @@ class ContactTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,6 +60,8 @@ class ContratTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -62,7 +62,9 @@ class CoreTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -60,6 +60,8 @@ class DateLibTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,6 +60,8 @@ class DateLibTzFranceTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,6 +60,8 @@ class DiscountTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,6 +60,8 @@ class EntrepotTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,7 +60,9 @@ class ExpenseReportTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -64,6 +64,8 @@ class ExportTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -61,6 +61,8 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -61,6 +61,8 @@ class FactureRecTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -59,7 +59,9 @@ class FactureTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -60,6 +60,8 @@ class FactureTestRounding extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,6 +60,8 @@ class FichinterTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -61,6 +61,8 @@ class FilesLibTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,6 +60,8 @@ class FormAdminTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -63,7 +63,9 @@ class Functions2LibTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -63,7 +63,9 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -62,6 +62,8 @@ class HolidayTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -61,6 +61,8 @@ class ImagesLibTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -62,6 +62,8 @@ class ImportTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -62,7 +62,9 @@ class JsonLibTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -72,6 +72,8 @@ class LangTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,6 +60,8 @@ class MarginsLibTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -59,6 +59,8 @@ class ModulesTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -62,6 +62,8 @@ class MouvementStockTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -59,6 +59,8 @@ class NumberingModulesTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
@@ -137,9 +139,9 @@ class NumberingModulesTest extends PHPUnit_Framework_TestCase
$conf->global->FACTURE_ADDON='mercure'; $conf->global->FACTURE_ADDON='mercure';
$conf->global->FACTURE_MERCURE_MASK_CREDIT='{yyyy}-{0000}'; $conf->global->FACTURE_MERCURE_MASK_CREDIT='{yyyy}-{0000}';
$conf->global->FACTURE_MERCURE_MASK_INVOICE='{yyyy}-{0000}'; $conf->global->FACTURE_MERCURE_MASK_INVOICE='{yyyy}-{0000}';
$conf->global->INVOICE_CAN_ALWAYS_BE_REMOVED=0; $conf->global->INVOICE_CAN_ALWAYS_BE_REMOVED=0;
$localobject=new Facture($this->savdb); $localobject=new Facture($this->savdb);
$localobject->initAsSpecimen(); $localobject->initAsSpecimen();
$localobject->date=dol_mktime(12, 0, 0, 1, 1, 1915); // we use year 1915 to be sure to not have existing invoice for this year $localobject->date=dol_mktime(12, 0, 0, 1, 1, 1915); // we use year 1915 to be sure to not have existing invoice for this year
$numbering=new mod_facture_mercure(); $numbering=new mod_facture_mercure();

View File

@@ -61,6 +61,8 @@ class PaypalTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -63,6 +63,8 @@ class PdfDocTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -62,6 +62,8 @@ class PgsqlTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -67,7 +67,9 @@ class PricesTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -60,7 +60,9 @@ class ProductTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -61,6 +61,8 @@ class ProjectTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,6 +60,8 @@ class PropalTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -62,7 +62,9 @@ class RestAPIDocumentTest extends PHPUnit_Framework_TestCase
*/ */
public function __construct() public function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf = $conf; $this->savconf = $conf;
$this->savuser = $user; $this->savuser = $user;

View File

@@ -64,7 +64,9 @@ class RestAPIUserTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -72,6 +72,8 @@ class ScriptsTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -72,6 +72,8 @@ class SecurityTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -60,7 +60,9 @@ class SocieteTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -59,7 +59,9 @@ class UserGroupTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -59,7 +59,9 @@ class UserTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -69,6 +69,8 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
parent::__construct();
//$this->sharedFixture //$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;

View File

@@ -63,7 +63,9 @@ class WebservicesOrdersTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -63,7 +63,9 @@ class WebservicesOtherTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -70,7 +70,9 @@ class WebservicesProductsTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -70,7 +70,9 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -63,7 +63,9 @@ class WebservicesUserTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;

View File

@@ -59,7 +59,9 @@ class XCalLibTest extends PHPUnit_Framework_TestCase
*/ */
function __construct() function __construct()
{ {
//$this->sharedFixture parent::__construct();
//$this->sharedFixture
global $conf,$user,$langs,$db; global $conf,$user,$langs,$db;
$this->savconf=$conf; $this->savconf=$conf;
$this->savuser=$user; $this->savuser=$user;