add visibility
This commit is contained in:
parent
ba4ca5d7c2
commit
92c5c15033
@ -33,21 +33,21 @@ include_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
||||
*/
|
||||
class box_comptes extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="currentaccounts";
|
||||
var $boximg="object_bill";
|
||||
var $boxlabel="BoxCurrentAccounts";
|
||||
var $depends = array("banque"); // Box active if module banque active
|
||||
public $boxcode="currentaccounts";
|
||||
public $boximg="object_bill";
|
||||
public $boxlabel="BoxCurrentAccounts";
|
||||
public $depends = array("banque"); // Box active if module banque active
|
||||
|
||||
/**
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
var $enabled = 1;
|
||||
public $param;
|
||||
public $enabled = 1;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -56,7 +56,7 @@ class box_comptes extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param = '')
|
||||
public function __construct($db, $param = '')
|
||||
{
|
||||
global $conf, $user;
|
||||
|
||||
@ -75,7 +75,7 @@ class box_comptes extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $user, $langs, $db, $conf;
|
||||
|
||||
@ -176,16 +176,16 @@ class box_comptes extends ModeleBoxes
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to show box
|
||||
*
|
||||
* @param array $head Array with properties of box title
|
||||
* @param array $contents Array with properties of box lines
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
/**
|
||||
* Method to show box
|
||||
*
|
||||
* @param array $head Array with properties of box title
|
||||
* @param array $contents Array with properties of box lines
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,20 +34,20 @@ include_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
|
||||
*/
|
||||
class box_contacts extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="lastcontacts";
|
||||
var $boximg="object_contact";
|
||||
var $boxlabel="BoxLastContacts";
|
||||
var $depends = array("societe");
|
||||
public $boxcode="lastcontacts";
|
||||
public $boximg="object_contact";
|
||||
public $boxlabel="BoxLastContacts";
|
||||
public $depends = array("societe");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
public $param;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -56,7 +56,7 @@ class box_contacts extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -71,7 +71,7 @@ class box_contacts extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $user, $langs, $db, $conf;
|
||||
$langs->load("boxes");
|
||||
@ -185,7 +185,7 @@ class box_contacts extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -31,20 +31,20 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_contracts extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="lastcontracts";
|
||||
var $boximg="object_contract";
|
||||
var $boxlabel="BoxLastContracts";
|
||||
var $depends = array("contrat"); // conf->contrat->enabled
|
||||
public $boxcode="lastcontracts";
|
||||
public $boximg="object_contract";
|
||||
public $boxlabel="BoxLastContracts";
|
||||
public $depends = array("contrat"); // conf->contrat->enabled
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
public $param;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -53,7 +53,7 @@ class box_contracts extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -68,7 +68,7 @@ class box_contracts extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $user, $langs, $db, $conf;
|
||||
|
||||
@ -189,7 +189,7 @@ class box_contracts extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -34,20 +34,20 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_external_rss extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="lastrssinfos";
|
||||
var $boximg="object_rss";
|
||||
var $boxlabel="BoxLastRssInfos";
|
||||
var $depends = array("externalrss");
|
||||
public $boxcode="lastrssinfos";
|
||||
public $boximg="object_rss";
|
||||
public $boxlabel="BoxLastRssInfos";
|
||||
public $depends = array("externalrss");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $paramdef; // Params of box definition (not user params)
|
||||
public $paramdef; // Params of box definition (not user params)
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -56,7 +56,7 @@ class box_external_rss extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
$this->db=$db;
|
||||
$this->paramdef=$param;
|
||||
@ -69,7 +69,7 @@ class box_external_rss extends ModeleBoxes
|
||||
* @param int $cachedelay Delay we accept for cache file
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5, $cachedelay = 3600)
|
||||
public function loadBox($max = 5, $cachedelay = 3600)
|
||||
{
|
||||
global $user, $langs, $conf;
|
||||
$langs->load("boxes");
|
||||
@ -195,7 +195,7 @@ class box_external_rss extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -30,20 +30,20 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_factures extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="lastcustomerbills";
|
||||
var $boximg="object_bill";
|
||||
var $boxlabel="BoxLastCustomerBills";
|
||||
var $depends = array("facture");
|
||||
public $boxcode="lastcustomerbills";
|
||||
public $boximg="object_bill";
|
||||
public $boxlabel="BoxLastCustomerBills";
|
||||
public $depends = array("facture");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
public $param;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -52,7 +52,7 @@ class box_factures extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -67,7 +67,7 @@ class box_factures extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -209,7 +209,7 @@ class box_factures extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -31,20 +31,20 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_factures_fourn extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="lastsupplierbills";
|
||||
var $boximg="object_bill";
|
||||
var $boxlabel="BoxLastSupplierBills";
|
||||
var $depends = array("facture","fournisseur");
|
||||
public $boxcode="lastsupplierbills";
|
||||
public $boximg="object_bill";
|
||||
public $boxlabel="BoxLastSupplierBills";
|
||||
public $depends = array("facture","fournisseur");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
public $param;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -53,7 +53,7 @@ class box_factures_fourn extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -68,7 +68,7 @@ class box_factures_fourn extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -214,7 +214,7 @@ class box_factures_fourn extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -30,20 +30,20 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_factures_fourn_imp extends ModeleBoxes
|
||||
{
|
||||
var $boxcode = "oldestunpaidsupplierbills";
|
||||
var $boximg = "object_bill";
|
||||
var $boxlabel = "BoxOldestUnpaidSupplierBills";
|
||||
var $depends = array("facture","fournisseur");
|
||||
public $boxcode = "oldestunpaidsupplierbills";
|
||||
public $boximg = "object_bill";
|
||||
public $boxlabel = "BoxOldestUnpaidSupplierBills";
|
||||
public $depends = array("facture","fournisseur");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
public $param;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -52,7 +52,7 @@ class box_factures_fourn_imp extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -67,7 +67,7 @@ class box_factures_fourn_imp extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -201,7 +201,7 @@ class box_factures_fourn_imp extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -33,20 +33,20 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||
*/
|
||||
class box_factures_imp extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="oldestunpaidcustomerbills";
|
||||
var $boximg="object_bill";
|
||||
var $boxlabel="BoxOldestUnpaidCustomerBills";
|
||||
var $depends = array("facture");
|
||||
public $boxcode="oldestunpaidcustomerbills";
|
||||
public $boximg="object_bill";
|
||||
public $boxlabel="BoxOldestUnpaidCustomerBills";
|
||||
public $depends = array("facture");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
public $param;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -55,7 +55,7 @@ class box_factures_imp extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -70,7 +70,7 @@ class box_factures_imp extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -207,7 +207,7 @@ class box_factures_imp extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -31,20 +31,20 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_ficheinter extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="ficheinter";
|
||||
var $boximg="object_intervention";
|
||||
var $boxlabel="BoxFicheInter";
|
||||
var $depends = array("ficheinter"); // conf->contrat->enabled
|
||||
public $boxcode="ficheinter";
|
||||
public $boximg="object_intervention";
|
||||
public $boxlabel="BoxFicheInter";
|
||||
public $depends = array("ficheinter"); // conf->contrat->enabled
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
public $param;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -53,7 +53,7 @@ class box_ficheinter extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -68,7 +68,7 @@ class box_ficheinter extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 10)
|
||||
public function loadBox($max = 10)
|
||||
{
|
||||
global $user, $langs, $db, $conf;
|
||||
|
||||
@ -176,7 +176,7 @@ class box_ficheinter extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -31,20 +31,20 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_fournisseurs extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="lastsuppliers";
|
||||
var $boximg="object_company";
|
||||
var $boxlabel="BoxLastSuppliers";
|
||||
var $depends = array("fournisseur");
|
||||
public $boxcode="lastsuppliers";
|
||||
public $boximg="object_company";
|
||||
public $boxlabel="BoxLastSuppliers";
|
||||
public $depends = array("fournisseur");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
public $param;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -53,7 +53,7 @@ class box_fournisseurs extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -68,7 +68,7 @@ class box_fournisseurs extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
$langs->load("boxes");
|
||||
@ -160,7 +160,7 @@ class box_fournisseurs extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -33,20 +33,20 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_goodcustomers extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="goodcustomers";
|
||||
var $boximg="object_company";
|
||||
var $boxlabel="BoxGoodCustomers";
|
||||
var $depends = array("societe");
|
||||
public $boxcode="goodcustomers";
|
||||
public $boximg="object_company";
|
||||
public $boxlabel="BoxGoodCustomers";
|
||||
public $depends = array("societe");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $enabled = 1;
|
||||
public $enabled = 1;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -55,7 +55,7 @@ class box_goodcustomers extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param = '')
|
||||
public function __construct($db, $param = '')
|
||||
{
|
||||
global $conf, $user;
|
||||
|
||||
@ -74,7 +74,7 @@ class box_goodcustomers extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $user, $langs, $db, $conf;
|
||||
$langs->load("boxes");
|
||||
@ -171,7 +171,7 @@ class box_goodcustomers extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -28,18 +28,18 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_graph_invoices_permonth extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="invoicespermonth";
|
||||
var $boximg="object_bill";
|
||||
var $boxlabel="BoxCustomersInvoicesPerMonth";
|
||||
var $depends = array("facture");
|
||||
public $boxcode="invoicespermonth";
|
||||
public $boximg="object_bill";
|
||||
public $boxlabel="BoxCustomersInvoicesPerMonth";
|
||||
public $depends = array("facture");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -48,7 +48,7 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -63,7 +63,7 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -76,14 +76,14 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
||||
|
||||
$text = $langs->trans("BoxCustomersInvoicesPerMonth", $max);
|
||||
$this->info_box_head = array(
|
||||
'text' => $text,
|
||||
'limit'=> dol_strlen($text),
|
||||
'graph'=> 1,
|
||||
'sublink'=>'',
|
||||
'subtext'=>$langs->trans("Filter"),
|
||||
'subpicto'=>'filter.png',
|
||||
'subclass'=>'linkobject boxfilter',
|
||||
'target'=>'none' // Set '' to get target="_blank"
|
||||
'text' => $text,
|
||||
'limit'=> dol_strlen($text),
|
||||
'graph'=> 1,
|
||||
'sublink'=>'',
|
||||
'subtext'=>$langs->trans("Filter"),
|
||||
'subpicto'=>'filter.png',
|
||||
'subclass'=>'linkobject boxfilter',
|
||||
'target'=>'none' // Set '' to get target="_blank"
|
||||
);
|
||||
|
||||
$dir=''; // We don't need a path because image file will not be saved into disk
|
||||
@ -275,7 +275,7 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -28,18 +28,18 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="invoicessupplierpermonth";
|
||||
var $boximg="object_bill";
|
||||
var $boxlabel="BoxSuppliersInvoicesPerMonth";
|
||||
var $depends = array("fournisseur");
|
||||
public $boxcode="invoicessupplierpermonth";
|
||||
public $boximg="object_bill";
|
||||
public $boxlabel="BoxSuppliersInvoicesPerMonth";
|
||||
public $depends = array("fournisseur");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -48,7 +48,7 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -63,7 +63,7 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -277,7 +277,7 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -28,18 +28,18 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_graph_orders_permonth extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="orderspermonth";
|
||||
var $boximg="object_order";
|
||||
var $boxlabel="BoxCustomersOrdersPerMonth";
|
||||
var $depends = array("commande");
|
||||
public $boxcode="orderspermonth";
|
||||
public $boximg="object_order";
|
||||
public $boxlabel="BoxCustomersOrdersPerMonth";
|
||||
public $depends = array("commande");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -48,7 +48,7 @@ class box_graph_orders_permonth extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -63,7 +63,7 @@ class box_graph_orders_permonth extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -273,14 +273,14 @@ class box_graph_orders_permonth extends ModeleBoxes
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to show box
|
||||
* Method to show box
|
||||
*
|
||||
* @param array $head Array with properties of box title
|
||||
* @param array $contents Array with properties of box lines
|
||||
* @param array $head Array with properties of box title
|
||||
* @param array $contents Array with properties of box lines
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -63,7 +63,7 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -279,7 +279,7 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -29,20 +29,20 @@ include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
||||
*/
|
||||
class box_graph_product_distribution extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="productdistribution";
|
||||
var $boximg="object_product";
|
||||
var $boxlabel="BoxProductDistribution";
|
||||
var $depends = array("product|service","facture|propal|commande");
|
||||
public $boxcode="productdistribution";
|
||||
public $boximg="object_product";
|
||||
public $boxlabel="BoxProductDistribution";
|
||||
public $depends = array("product|service","facture|propal|commande");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
public $param;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -51,7 +51,7 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user, $conf;
|
||||
|
||||
@ -70,7 +70,7 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -416,7 +416,7 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -28,18 +28,18 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_graph_propales_permonth extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="propalpermonth";
|
||||
var $boximg="object_propal";
|
||||
var $boxlabel="BoxProposalsPerMonth";
|
||||
var $depends = array("propal");
|
||||
public $boxcode="propalpermonth";
|
||||
public $boximg="object_propal";
|
||||
public $boxlabel="BoxProposalsPerMonth";
|
||||
public $depends = array("propal");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -48,7 +48,7 @@ class box_graph_propales_permonth extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $user;
|
||||
|
||||
@ -63,7 +63,7 @@ class box_graph_propales_permonth extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -283,7 +283,7 @@ class box_graph_propales_permonth extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -195,7 +195,7 @@ class box_last_modified_ticket extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -192,7 +192,7 @@ class box_last_ticket extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -30,21 +30,21 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_lastlogin extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="lastlogin";
|
||||
var $boximg="object_user";
|
||||
var $boxlabel='BoxLoginInformation';
|
||||
var $depends = array("user");
|
||||
public $boxcode="lastlogin";
|
||||
public $boximg="object_user";
|
||||
public $boxlabel='BoxLoginInformation';
|
||||
public $depends = array("user");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
var $enabled = 1;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $param;
|
||||
public $enabled = 1;
|
||||
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -53,7 +53,7 @@ class box_lastlogin extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param)
|
||||
public function __construct($db, $param)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
@ -66,7 +66,7 @@ class box_lastlogin extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $conf, $user, $langs, $db;
|
||||
|
||||
@ -75,7 +75,7 @@ class box_lastlogin extends ModeleBoxes
|
||||
'text' => $textHead,
|
||||
'limit'=> dol_strlen($textHead),
|
||||
);
|
||||
|
||||
|
||||
$line=0;
|
||||
$this->info_box_contents[$line][0] = array(
|
||||
'td' => '',
|
||||
@ -86,7 +86,7 @@ class box_lastlogin extends ModeleBoxes
|
||||
'text' => $user->getNomUrl(-1),
|
||||
'asis' => 1
|
||||
);
|
||||
|
||||
|
||||
$line=1;
|
||||
$this->info_box_contents[$line][0] = array(
|
||||
'td' => '',
|
||||
@ -102,14 +102,14 @@ class box_lastlogin extends ModeleBoxes
|
||||
|
||||
|
||||
/**
|
||||
* Method to show box
|
||||
* Method to show box
|
||||
*
|
||||
* @param array $head Array with properties of box title
|
||||
* @param array $contents Array with properties of box lines
|
||||
* @param array $head Array with properties of box title
|
||||
* @param array $contents Array with properties of box lines
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return void
|
||||
* @return void
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -32,21 +32,21 @@ include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
*/
|
||||
class box_members extends ModeleBoxes
|
||||
{
|
||||
var $boxcode="lastmembers";
|
||||
var $boximg="object_user";
|
||||
var $boxlabel="BoxLastMembers";
|
||||
var $depends = array("adherent");
|
||||
public $boxcode="lastmembers";
|
||||
public $boximg="object_user";
|
||||
public $boxlabel="BoxLastMembers";
|
||||
public $depends = array("adherent");
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $param;
|
||||
var $enabled = 1;
|
||||
public $param;
|
||||
public $enabled = 1;
|
||||
|
||||
var $info_box_head = array();
|
||||
var $info_box_contents = array();
|
||||
public $info_box_head = array();
|
||||
public $info_box_contents = array();
|
||||
|
||||
|
||||
/**
|
||||
@ -55,7 +55,7 @@ class box_members extends ModeleBoxes
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $param More parameters
|
||||
*/
|
||||
function __construct($db, $param = '')
|
||||
public function __construct($db, $param = '')
|
||||
{
|
||||
global $conf, $user;
|
||||
|
||||
@ -74,7 +74,7 @@ class box_members extends ModeleBoxes
|
||||
* @param int $max Maximum number of records to load
|
||||
* @return void
|
||||
*/
|
||||
function loadBox($max = 5)
|
||||
public function loadBox($max = 5)
|
||||
{
|
||||
global $user, $langs, $db, $conf;
|
||||
$langs->load("boxes");
|
||||
@ -178,7 +178,7 @@ class box_members extends ModeleBoxes
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return string
|
||||
*/
|
||||
function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
@ -32,15 +32,15 @@ class MenuManager
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $type_user; // Put 0 for internal users, 1 for external users
|
||||
var $atarget=""; // To store default target to use onto links
|
||||
var $name="auguria";
|
||||
|
||||
var $menu_array;
|
||||
var $menu_array_after;
|
||||
public $type_user; // Put 0 for internal users, 1 for external users
|
||||
public $atarget=""; // To store default target to use onto links
|
||||
public $name="auguria";
|
||||
|
||||
var $tabMenu;
|
||||
public $menu_array;
|
||||
public $menu_array_after;
|
||||
|
||||
public $tabMenu;
|
||||
|
||||
|
||||
/**
|
||||
@ -49,7 +49,7 @@ class MenuManager
|
||||
* @param DoliDB $db Database handler
|
||||
* @param int $type_user Type of user
|
||||
*/
|
||||
function __construct($db, $type_user)
|
||||
public function __construct($db, $type_user)
|
||||
{
|
||||
$this->type_user=$type_user;
|
||||
$this->db=$db;
|
||||
@ -63,7 +63,7 @@ class MenuManager
|
||||
* @param string $forceleftmenu To force leftmenu to load
|
||||
* @return void
|
||||
*/
|
||||
function loadMenu($forcemainmenu = '', $forceleftmenu = '')
|
||||
public function loadMenu($forcemainmenu = '', $forceleftmenu = '')
|
||||
{
|
||||
global $conf, $user, $langs;
|
||||
|
||||
@ -123,7 +123,7 @@ class MenuManager
|
||||
* @param array $moredata An array with more data to output
|
||||
* @return int 0 or nb of top menu entries if $mode = 'topnb'
|
||||
*/
|
||||
function showmenu($mode, $moredata = null)
|
||||
public function showmenu($mode, $moredata = null)
|
||||
{
|
||||
global $conf, $langs, $user;
|
||||
|
||||
|
||||
@ -32,14 +32,14 @@ class MenuManager
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $type_user; // Put 0 for internal users, 1 for external users
|
||||
var $atarget=""; // To store default target to use onto links
|
||||
var $name="eldy";
|
||||
public $type_user; // Put 0 for internal users, 1 for external users
|
||||
public $atarget=""; // To store default target to use onto links
|
||||
public $name="eldy";
|
||||
|
||||
var $menu_array;
|
||||
var $menu_array_after;
|
||||
public $menu_array;
|
||||
public $menu_array_after;
|
||||
|
||||
var $tabMenu;
|
||||
public $tabMenu;
|
||||
|
||||
|
||||
/**
|
||||
@ -48,7 +48,7 @@ class MenuManager
|
||||
* @param DoliDB $db Database handler
|
||||
* @param int $type_user Type of user
|
||||
*/
|
||||
function __construct($db, $type_user)
|
||||
public function __construct($db, $type_user)
|
||||
{
|
||||
$this->type_user=$type_user;
|
||||
$this->db=$db;
|
||||
@ -62,7 +62,7 @@ class MenuManager
|
||||
* @param string $forceleftmenu To force leftmenu to load
|
||||
* @return void
|
||||
*/
|
||||
function loadMenu($forcemainmenu = '', $forceleftmenu = '')
|
||||
public function loadMenu($forcemainmenu = '', $forceleftmenu = '')
|
||||
{
|
||||
// On sauve en session le menu principal choisi
|
||||
if (isset($_GET["mainmenu"])) $_SESSION["mainmenu"]=$_GET["mainmenu"];
|
||||
@ -123,7 +123,7 @@ class MenuManager
|
||||
* @param array $moredata An array with more data to output
|
||||
* @return int 0 or nb of top menu entries if $mode = 'topnb'
|
||||
*/
|
||||
function showmenu($mode, $moredata = null)
|
||||
public function showmenu($mode, $moredata = null)
|
||||
{
|
||||
global $conf, $langs, $user;
|
||||
|
||||
|
||||
@ -30,11 +30,11 @@ class MenuManager
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $type_user=0; // Put 0 for internal users, 1 for external users
|
||||
var $atarget=""; // To store default target to use onto links
|
||||
public $type_user=0; // Put 0 for internal users, 1 for external users
|
||||
public $atarget=""; // To store default target to use onto links
|
||||
|
||||
var $menu;
|
||||
var $menu_array_after;
|
||||
public $menu;
|
||||
public $menu_array_after;
|
||||
|
||||
|
||||
/**
|
||||
@ -43,7 +43,7 @@ class MenuManager
|
||||
* @param DoliDB $db Database handler
|
||||
* @param int $type_user Type of user
|
||||
*/
|
||||
function __construct($db, $type_user)
|
||||
public function __construct($db, $type_user)
|
||||
{
|
||||
$this->type_user=$type_user;
|
||||
$this->db=$db;
|
||||
@ -55,7 +55,7 @@ class MenuManager
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function loadMenu()
|
||||
public function loadMenu()
|
||||
{
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ class MenuManager
|
||||
* @param array $moredata An array with more data to output
|
||||
* @return int 0 or nb of top menu entries if $mode = 'topnb'
|
||||
*/
|
||||
function showmenu($mode, $moredata = null)
|
||||
public function showmenu($mode, $moredata = null)
|
||||
{
|
||||
global $user,$conf,$langs,$dolibarr_main_db_name;
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ class mod_supplier_payment_bronan extends ModeleNumRefSupplierPayments
|
||||
*
|
||||
* @return string Text with description
|
||||
*/
|
||||
function info()
|
||||
public function info()
|
||||
{
|
||||
global $langs;
|
||||
return $langs->trans("SimpleNumRefModelDesc", $this->prefix);
|
||||
@ -72,7 +72,7 @@ class mod_supplier_payment_bronan extends ModeleNumRefSupplierPayments
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
function getExample()
|
||||
public function getExample()
|
||||
{
|
||||
return $this->prefix."0501-0001";
|
||||
}
|
||||
@ -84,7 +84,7 @@ class mod_supplier_payment_bronan extends ModeleNumRefSupplierPayments
|
||||
*
|
||||
* @return boolean false si conflit, true si ok
|
||||
*/
|
||||
function canBeActivated()
|
||||
public function canBeActivated()
|
||||
{
|
||||
global $conf,$langs,$db;
|
||||
|
||||
@ -119,7 +119,7 @@ class mod_supplier_payment_bronan extends ModeleNumRefSupplierPayments
|
||||
* @param Object $object Object we need next value for
|
||||
* @return string Value if KO, <0 if KO
|
||||
*/
|
||||
function getNextValue($objsoc, $object)
|
||||
public function getNextValue($objsoc, $object)
|
||||
{
|
||||
global $db,$conf;
|
||||
|
||||
@ -163,7 +163,7 @@ class mod_supplier_payment_bronan extends ModeleNumRefSupplierPayments
|
||||
* @param string $objforref Object for number to search
|
||||
* @return string Next free value
|
||||
*/
|
||||
function payment_get_num($objsoc, $objforref)
|
||||
public function payment_get_num($objsoc, $objforref)
|
||||
{
|
||||
// phpcs:enable
|
||||
return $this->getNextValue($objsoc, $objforref);
|
||||
|
||||
@ -28,7 +28,7 @@ abstract class ModelePDFSuppliersPayments extends CommonDocGenerator
|
||||
public $error='';
|
||||
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Return list of active generation models
|
||||
*
|
||||
@ -36,7 +36,7 @@ abstract class ModelePDFSuppliersPayments extends CommonDocGenerator
|
||||
* @param integer $maxfilenamelength Max length of value to show
|
||||
* @return array List of numbers
|
||||
*/
|
||||
static function liste_modeles($db, $maxfilenamelength = 0)
|
||||
public static function liste_modeles($db, $maxfilenamelength = 0)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $conf;
|
||||
@ -68,7 +68,7 @@ abstract class ModeleNumRefSupplierPayments
|
||||
*
|
||||
* @return boolean true if module can be used
|
||||
*/
|
||||
function isEnabled()
|
||||
public function isEnabled()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -78,7 +78,7 @@ abstract class ModeleNumRefSupplierPayments
|
||||
*
|
||||
* @return string Texte descripif
|
||||
*/
|
||||
function info()
|
||||
public function info()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("bills");
|
||||
@ -90,7 +90,7 @@ abstract class ModeleNumRefSupplierPayments
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
function getExample()
|
||||
public function getExample()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("bills");
|
||||
@ -102,7 +102,7 @@ abstract class ModeleNumRefSupplierPayments
|
||||
*
|
||||
* @return boolean false si conflit, true si ok
|
||||
*/
|
||||
function canBeActivated()
|
||||
public function canBeActivated()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -114,7 +114,7 @@ abstract class ModeleNumRefSupplierPayments
|
||||
* @param Object $object Object we need next value for
|
||||
* @return string Valeur
|
||||
*/
|
||||
function getNextValue($objsoc, $object)
|
||||
public function getNextValue($objsoc, $object)
|
||||
{
|
||||
global $langs;
|
||||
return $langs->trans("NotAvailable");
|
||||
@ -125,15 +125,15 @@ abstract class ModeleNumRefSupplierPayments
|
||||
*
|
||||
* @return string Value
|
||||
*/
|
||||
function getVersion()
|
||||
public function getVersion()
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("admin");
|
||||
|
||||
if ($this->version == 'development') return $langs->trans("VersionDevelopment");
|
||||
if ($this->version == 'experimental') return $langs->trans("VersionExperimental");
|
||||
if ($this->version == 'dolibarr') return DOL_VERSION;
|
||||
if ($this->version) return $this->version;
|
||||
elseif ($this->version == 'experimental') return $langs->trans("VersionExperimental");
|
||||
elseif ($this->version == 'dolibarr') return DOL_VERSION;
|
||||
elseif ($this->version) return $this->version;
|
||||
return $langs->trans("NotAvailable");
|
||||
}
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
||||
*
|
||||
* @param DoliDB $db Database handler
|
||||
*/
|
||||
function __construct($db)
|
||||
public function __construct($db)
|
||||
{
|
||||
global $conf, $langs, $mysoc;
|
||||
|
||||
@ -107,7 +107,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
||||
* @param Translate $langs Lang object to use for output
|
||||
* @return string Description
|
||||
*/
|
||||
function info($langs)
|
||||
public function info($langs)
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
@ -233,7 +233,7 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
||||
* @param int $hideref Do not show ref
|
||||
* @return int 1 if OK, <=0 if KO
|
||||
*/
|
||||
function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
|
||||
public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $user, $langs, $conf, $mysoc, $hookmanager;
|
||||
|
||||
@ -205,7 +205,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
||||
* @param int $hideref Do not show ref
|
||||
* @return int 1=OK, 0=KO
|
||||
*/
|
||||
function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
|
||||
public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $user,$langs,$conf,$mysoc,$db,$hookmanager,$nblignes;
|
||||
@ -704,7 +704,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
||||
}
|
||||
}
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Show payments table
|
||||
*
|
||||
@ -714,13 +714,13 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
||||
* @param Translate $outputlangs Object langs for output
|
||||
* @return int <0 if KO, >0 if OK
|
||||
*/
|
||||
function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
|
||||
private function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
|
||||
{
|
||||
// phpcs:enable
|
||||
}
|
||||
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Show miscellaneous information (payment mode, payment term, ...)
|
||||
*
|
||||
@ -730,7 +730,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
||||
* @param Translate $outputlangs Langs object
|
||||
* @return void
|
||||
*/
|
||||
function _tableau_info(&$pdf, $object, $posy, $outputlangs)
|
||||
private function _tableau_info(&$pdf, $object, $posy, $outputlangs)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $conf;
|
||||
@ -888,7 +888,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
||||
}
|
||||
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Show total to pay
|
||||
*
|
||||
@ -899,7 +899,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
||||
* @param Translate $outputlangs Objet langs
|
||||
* @return int Position pour suite
|
||||
*/
|
||||
function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
|
||||
private function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
|
||||
{
|
||||
// phpcs:enable
|
||||
global $conf,$mysoc;
|
||||
@ -1174,7 +1174,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
||||
* @param string $currency Currency code
|
||||
* @return void
|
||||
*/
|
||||
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0, $currency = '')
|
||||
private function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0, $currency = '')
|
||||
{
|
||||
global $conf;
|
||||
|
||||
@ -1283,7 +1283,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
|
||||
* @param Translate $outputlangs Object lang for output
|
||||
* @return void
|
||||
*/
|
||||
function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
|
||||
private function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
|
||||
{
|
||||
global $conf, $langs;
|
||||
|
||||
|
||||
@ -504,7 +504,7 @@ class MyObject extends CommonObject
|
||||
else $result .= $hookmanager->resPrint;
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return label of the status
|
||||
|
||||
@ -194,18 +194,18 @@ class mymodulewidget1 extends ModeleBoxes
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to show box. Called by Dolibarr eatch time it wants to display the box.
|
||||
*
|
||||
* @param array $head Array with properties of box title
|
||||
* @param array $contents Array with properties of box lines
|
||||
/**
|
||||
* Method to show box. Called by Dolibarr eatch time it wants to display the box.
|
||||
*
|
||||
* @param array $head Array with properties of box title
|
||||
* @param array $contents Array with properties of box lines
|
||||
* @param int $nooutput No print, only return string
|
||||
* @return void
|
||||
*/
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
// You may make your own code here…
|
||||
// … or use the parent's class function using the provided head and contents templates
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
* @return void
|
||||
*/
|
||||
public function showBox($head = null, $contents = null, $nooutput = 0)
|
||||
{
|
||||
// You may make your own code here…
|
||||
// … or use the parent's class function using the provided head and contents templates
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user