rename method

This commit is contained in:
Frédéric France 2024-01-18 18:55:53 +01:00
parent e87362a9ad
commit b3bcdeafe5
18 changed files with 19 additions and 55 deletions

View File

@ -3685,15 +3685,13 @@ class Propal extends CommonObject
}
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load the indicators this->nb for the state board
*
* @return int Return integer <0 if ko, >0 if ok
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $user;
$this->nb = array();

View File

@ -4062,15 +4062,13 @@ class Commande extends CommonOrder
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load the indicators this->nb for the state board
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $user;
$this->nb = array();

View File

@ -1346,16 +1346,14 @@ class Account extends CommonObject
}
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load the indicators this->nb for the state board
*
* @param int $filteraccountid To get info for a particular account id
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board($filteraccountid = 0)
public function loadStateBoard($filteraccountid = 0)
{
// phpcs:enable
global $user;
if ($user->socid) {

View File

@ -5152,15 +5152,13 @@ class Facture extends CommonInvoice
}
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $conf, $user;
$this->nb = array();

View File

@ -524,16 +524,14 @@ class RemiseCheque extends CommonObject
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicators this->nb for the state board
*
* @param string $type Type of payment mode deposit ('CHQ', 'TRA', ...)
* @return int Return integer <0 if ko, >0 if ok
*/
public function load_state_board($type = 'CHQ')
public function loadStateBoard($type = 'CHQ')
{
// phpcs:enable
global $user;
if ($user->socid) {

View File

@ -397,15 +397,13 @@ class Contact extends CommonObject
}*/
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicators into this->nb for board
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $user, $hookmanager;
$this->nb = array();

View File

@ -2374,15 +2374,13 @@ class Contrat extends CommonObject
}
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load the indicators this->nb for state board
*
* @return int Return integer <0 si ko, >0 si ok
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $conf, $user;
$this->nb = array();

View File

@ -877,15 +877,13 @@ class Don extends CommonObject
return $result;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load the indicators this->nb for the state board
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
$this->nb = array();
$sql = "SELECT count(d.rowid) as nb";

View File

@ -2482,15 +2482,13 @@ class ExpenseReport extends CommonObject
return $ret;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load the indicators this->nb for the state board
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $conf, $user;
$this->nb = array();

View File

@ -207,15 +207,13 @@ class Fichinter extends CommonObject
$this->db = $db;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicators into this->nb for board
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $user;
$this->nb = array();

View File

@ -94,15 +94,13 @@ class Fournisseur extends Societe
}
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load statistics indicators
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $conf, $user, $hookmanager;
$this->nb = array();

View File

@ -6123,15 +6123,13 @@ class Product extends CommonObject
$this->imgHeight = $infoImg[1]; // Hauteur de l'image
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicators this->nb for the dashboard
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $hookmanager;
$this->nb = array();

View File

@ -2293,15 +2293,13 @@ class Project extends CommonObject
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicators this->nb for the state board
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $user;
$this->nb = array();

View File

@ -2337,15 +2337,13 @@ class Task extends CommonObjectLine
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicators this->nb for state board
*
* @return int Return integer <0 if ko, >0 if ok
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $user;
$mine = 0;

View File

@ -48,15 +48,13 @@ class Client extends Societe
$this->fournisseur = 0;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicators into this->nb for board
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $user, $hookmanager;
$this->nb = array("prospects" => 0, "customers" => 0);

View File

@ -2363,15 +2363,13 @@ class SupplierProposal extends CommonObject
}
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicator this->nb of global stats widget
*
* @return int Return integer <0 if ko, >0 if ok
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $conf, $user;
$this->nb = array();

View File

@ -3054,16 +3054,14 @@ class Ticket extends CommonObject
}
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load indicator this->nb of global stats widget
*
* @return int Return integer <0 if ko, >0 if ok
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $conf, $user;
global $user;
$this->nb = array();
$clause = "WHERE";

View File

@ -3875,15 +3875,13 @@ class User extends CommonObject
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Load metrics this->nb for dashboard
*
* @return int Return integer <0 if KO, >0 if OK
*/
public function load_state_board()
public function loadStateBoard()
{
// phpcs:enable
global $conf;
$this->nb = array();