Renamed WorkBoardResponse to WorkboardResponse
This commit is contained in:
parent
c01281a538
commit
fa55c60c35
@ -1726,7 +1726,7 @@ class Adherent extends CommonObject
|
||||
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
|
||||
*
|
||||
* @param User $user Objet user
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user)
|
||||
{
|
||||
@ -1747,7 +1747,7 @@ class Adherent extends CommonObject
|
||||
{
|
||||
$langs->load("members");
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay=$conf->adherent->cotisation->warning_delay/60/60/24;
|
||||
$response->label=$langs->trans("MembersWithSubscriptionToReceive");
|
||||
$response->url=DOL_URL_ROOT.'/adherents/list.php?mainmenu=members&statut=1';
|
||||
|
||||
@ -716,7 +716,7 @@ class ActionComm extends CommonObject
|
||||
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
|
||||
*
|
||||
* @param User $user Objet user
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user)
|
||||
{
|
||||
@ -738,7 +738,7 @@ class ActionComm extends CommonObject
|
||||
{
|
||||
$now = dol_now();
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay = $conf->actions->warning_delay/60/60/24;
|
||||
$response->label = $langs->trans("ActionsToDo");
|
||||
$response->url = DOL_URL_ROOT.'/comm/action/listactions.php?status=todo&mainmenu=agenda';
|
||||
|
||||
@ -2345,7 +2345,7 @@ class Propal extends CommonObject
|
||||
*
|
||||
* @param User $user Object user
|
||||
* @param int $mode "opened" for proposal to close, "signed" for proposal to invoice
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user,$mode)
|
||||
{
|
||||
@ -2383,7 +2383,7 @@ class Propal extends CommonObject
|
||||
$label = $langs->trans("PropalsToBill");
|
||||
}
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay = $delay_warning;
|
||||
$response->label = $label;
|
||||
$response->url = DOL_URL_ROOT.'/comm/propal/list.php?viewstatut='.$statut;
|
||||
|
||||
@ -2725,7 +2725,7 @@ class Commande extends CommonOrder
|
||||
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
|
||||
*
|
||||
* @param User $user Object user
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user)
|
||||
{
|
||||
@ -2751,7 +2751,7 @@ class Commande extends CommonOrder
|
||||
{
|
||||
$now=dol_now();
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay=$conf->commande->client->warning_delay/60/60/24;
|
||||
$response->label=$langs->trans("OrdersToProcess");
|
||||
$response->url=DOL_URL_ROOT.'/commande/list.php?viewstatut=-3';
|
||||
|
||||
@ -882,7 +882,7 @@ class Account extends CommonObject
|
||||
*
|
||||
* @param User $user Objet user
|
||||
* @param int $filteraccountid To get info for a particular account id
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user,$filteraccountid=0)
|
||||
{
|
||||
@ -905,7 +905,7 @@ class Account extends CommonObject
|
||||
$langs->load("banks");
|
||||
$now=dol_now();
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay=$conf->bank->rappro->warning_delay/60/60/24;
|
||||
$response->label=$langs->trans("TransactionsToConciliate");
|
||||
$response->url=DOL_URL_ROOT.'/compta/bank/index.php?leftmenu=bank&mainmenu=bank';
|
||||
|
||||
@ -3085,7 +3085,7 @@ class Facture extends CommonInvoice
|
||||
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
|
||||
*
|
||||
* @param User $user Object user
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user)
|
||||
{
|
||||
@ -3112,7 +3112,7 @@ class Facture extends CommonInvoice
|
||||
$langs->load("bills");
|
||||
$now=dol_now();
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay=$conf->facture->client->warning_delay/60/60/24;
|
||||
$response->label=$langs->trans("CustomerBillsUnpaid");
|
||||
$response->url=DOL_URL_ROOT.'/compta/facture/impayees.php';
|
||||
|
||||
@ -433,7 +433,7 @@ class RemiseCheque extends CommonObject
|
||||
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
|
||||
*
|
||||
* @param User $user Objet user
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user)
|
||||
{
|
||||
@ -456,7 +456,7 @@ class RemiseCheque extends CommonObject
|
||||
$langs->load("banks");
|
||||
$now=dol_now();
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay=$conf->bank->cheque->warning_delay/60/60/24;
|
||||
$response->label=$langs->trans("BankChecksToReceipt");
|
||||
$response->url=DOL_URL_ROOT.'/compta/paiement/cheque/index.php?leftmenu=checks&mainmenu=accountancy';
|
||||
|
||||
@ -1881,7 +1881,7 @@ class Contrat extends CommonObject
|
||||
*
|
||||
* @param User $user Objet user
|
||||
* @param string $mode "inactive" pour services a activer, "expired" pour services expires
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user,$mode)
|
||||
{
|
||||
@ -1929,7 +1929,7 @@ class Contrat extends CommonObject
|
||||
$label = $langs->trans("BoardRunningServices");
|
||||
}
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay = $warning_delay/60/60/24;
|
||||
$response->label = $label;
|
||||
$response->url = $url;
|
||||
|
||||
@ -17,11 +17,11 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/core/class/WorkBoardResponse.class.php
|
||||
* \file htdocs/core/class/WorkboardResponse.class.php
|
||||
* \brief Class that represents response of load_board functions
|
||||
*/
|
||||
|
||||
class WorkBoardResponse
|
||||
class WorkboardResponse
|
||||
{
|
||||
|
||||
/**
|
||||
@ -2000,7 +2000,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
|
||||
*
|
||||
* @param User $user Objet user
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user)
|
||||
{
|
||||
@ -2025,7 +2025,7 @@ class CommandeFournisseur extends CommonOrder
|
||||
{
|
||||
$now=dol_now();
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay=$conf->commande->fournisseur->warning_delay/60/60/24;
|
||||
$response->label=$langs->trans("SuppliersOrdersToProcess");
|
||||
$response->url=DOL_URL_ROOT.'/fourn/commande/index.php';
|
||||
|
||||
@ -1421,7 +1421,7 @@ class FactureFournisseur extends CommonInvoice
|
||||
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
|
||||
*
|
||||
* @param User $user Object user
|
||||
* @return WorkBoardResponse|int <0 if KO, WorkBoardResponse if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
function load_board($user)
|
||||
{
|
||||
@ -1442,7 +1442,7 @@ class FactureFournisseur extends CommonInvoice
|
||||
$langs->load("bills");
|
||||
$now=dol_now();
|
||||
|
||||
$response = new WorkBoardResponse();
|
||||
$response = new WorkboardResponse();
|
||||
$response->warning_delay=$conf->facture->fournisseur->warning_delay/60/60/24;
|
||||
$response->label=$langs->trans("SupplierBillsToPay");
|
||||
$response->url=DOL_URL_ROOT.'/fourn/facture/list.php?filtre=paye:0';
|
||||
|
||||
@ -293,7 +293,7 @@ print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
||||
*/
|
||||
$showweather=empty($conf->global->MAIN_DISABLE_METEO)?1:0;
|
||||
|
||||
//Array that contains all WorkBoardResponse classes to process them
|
||||
//Array that contains all WorkboardResponse classes to process them
|
||||
$dashboardlines=array();
|
||||
|
||||
print '<table class="noborder" width="100%">'."\n";
|
||||
@ -311,7 +311,7 @@ print '</tr>'."\n";
|
||||
// Do not include sections without management permission
|
||||
//
|
||||
|
||||
require DOL_DOCUMENT_ROOT.'/core/class/WorkBoardResponse.class.php';
|
||||
require DOL_DOCUMENT_ROOT.'/core/class/WorkboardResponse.class.php';
|
||||
|
||||
// Number of actions to do (late)
|
||||
if (! empty($conf->agenda->enabled) && $user->rights->agenda->myactions->read)
|
||||
@ -405,9 +405,9 @@ $totallate=0;
|
||||
$var=true;
|
||||
|
||||
//Remove any invalid response
|
||||
//load_board can return an integer if failed or WorkBoardResponse if OK
|
||||
//load_board can return an integer if failed or WorkboardResponse if OK
|
||||
$valid_dashboardlines = array_filter($dashboardlines, function ($board) {
|
||||
return $board instanceof WorkBoardResponse;
|
||||
return $board instanceof WorkboardResponse;
|
||||
});
|
||||
|
||||
$rowspan = count($valid_dashboardlines);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user