Qual: Removed phpcs warnings

This commit is contained in:
Laurent Destailleur 2011-11-23 18:28:14 +01:00
parent 71e0f825b2
commit 6fb994d296
21 changed files with 235 additions and 57 deletions

View File

@ -52,8 +52,10 @@ class box_actions extends ModeleBoxes {
}
/**
* Charge les donnees en memoire pour affichage ulterieur
* @param $max Nombre maximum d'enregistrements a charger
* Load data for box to show them later
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -146,6 +148,13 @@ class box_actions extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -37,7 +37,7 @@ class box_bookmarks extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_bookmarks()
{
@ -48,8 +48,10 @@ class box_bookmarks extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data for box to show them later
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -121,6 +123,13 @@ class box_bookmarks extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -40,7 +40,7 @@ class box_clients extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_clients()
{
@ -51,8 +51,10 @@ class box_clients extends ModeleBoxes {
}
/**
* Load data of box into memory for a future usage
* @param $max Maximum number of records to show
* Load data for box to show them later
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -125,6 +127,13 @@ class box_clients extends ModeleBoxes {
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -40,7 +40,7 @@ class box_commandes extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_commandes()
{
@ -51,8 +51,10 @@ class box_commandes extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data for box to show them later
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -134,6 +136,13 @@ class box_commandes extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -54,7 +54,8 @@ class box_comptes extends ModeleBoxes {
/**
* Load data into info_box_contents array to show array later.
*
* @param $max Maximum number of records to load
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -147,6 +148,13 @@ 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
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -41,7 +41,7 @@ class box_contacts extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_contacts()
{
@ -52,8 +52,10 @@ class box_contacts extends ModeleBoxes {
}
/**
* Load data of box into memory for a future usage
* @param $max Maximum number of records to show
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -123,6 +125,13 @@ class box_contacts extends ModeleBoxes {
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -54,6 +54,7 @@ class box_contracts extends ModeleBoxes {
* Load data for box to show them later
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -144,6 +145,13 @@ class box_contracts extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -42,7 +42,7 @@ class box_external_rss extends ModeleBoxes {
var $info_box_contents = array();
/**
* Constructeur de la classe
* Constructor
*/
function box_external_rss($DB,$param)
{
@ -56,10 +56,11 @@ class box_external_rss extends ModeleBoxes {
}
/**
* Load information for box into memory to show them later with this->showBox method.
*
* @param int $max Max numbe rof records to load
* @param int $cachedelay Delay we accept for cache file
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @param int $cachedelay Delay we accept for cache file
* @return void
*/
function loadBox($max=5, $cachedelay=3600)
{
@ -152,6 +153,13 @@ class box_external_rss extends ModeleBoxes {
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -39,7 +39,7 @@ class box_factures extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_factures()
{
@ -50,8 +50,10 @@ class box_factures extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -149,6 +151,13 @@ class box_factures extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -39,7 +39,7 @@ class box_factures_fourn extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_factures_fourn()
{
@ -50,8 +50,10 @@ class box_factures_fourn extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -143,6 +145,13 @@ class box_factures_fourn extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -39,7 +39,7 @@ class box_factures_fourn_imp extends ModeleBoxes {
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_factures_fourn_imp()
{
@ -50,8 +50,10 @@ class box_factures_fourn_imp extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -143,6 +145,13 @@ class box_factures_fourn_imp extends ModeleBoxes {
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -42,7 +42,7 @@ class box_factures_imp extends ModeleBoxes {
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_factures_imp()
{
@ -53,8 +53,10 @@ class box_factures_imp extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -145,6 +147,13 @@ class box_factures_imp extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -39,7 +39,7 @@ class box_fournisseurs extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_fournisseurs()
{
@ -50,8 +50,10 @@ class box_fournisseurs extends ModeleBoxes {
}
/**
* Load data of box into memory for a future usage
* @param $max Maximum number of records to show
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -119,6 +121,13 @@ class box_fournisseurs extends ModeleBoxes {
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -40,7 +40,7 @@ class box_members extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_members()
{
@ -51,8 +51,10 @@ class box_members extends ModeleBoxes {
}
/**
* Load data of box into memory for a future usage
* @param $max Maximum number of records to show
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -121,6 +123,13 @@ class box_members extends ModeleBoxes {
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -39,7 +39,7 @@ class box_osc_clients extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_osc_clients()
{
@ -50,8 +50,10 @@ class box_osc_clients extends ModeleBoxes {
}
/**
* \brief Charge les donn<EFBFBD>es en m<EFBFBD>moire pour affichage ult<EFBFBD>rieur
* \param $max Nombre maximum d'enregistrements <EFBFBD> charger
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -97,6 +99,13 @@ class box_osc_clients extends ModeleBoxes {
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -42,7 +42,7 @@ class box_produits extends ModeleBoxes {
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_produits()
{
@ -53,8 +53,10 @@ class box_produits extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -154,6 +156,13 @@ class box_produits extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -41,7 +41,7 @@ class box_propales extends ModeleBoxes {
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_propales()
{
@ -52,8 +52,10 @@ class box_propales extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -139,6 +141,13 @@ class box_propales extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -42,7 +42,7 @@ class box_prospect extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_prospect($DB,$param)
{
@ -56,8 +56,10 @@ class box_prospect extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -132,6 +134,13 @@ class box_prospect extends ModeleBoxes {
}
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -54,6 +54,7 @@ class box_services_expired extends ModeleBoxes {
* Load data for box to show them later
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -141,7 +142,14 @@ class box_services_expired extends ModeleBoxes {
}
}
function showBox()
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);
}

View File

@ -40,7 +40,7 @@ class box_services_vendus extends ModeleBoxes {
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
* Constructor
*/
function box_services_vendus()
{
@ -51,8 +51,10 @@ class box_services_vendus extends ModeleBoxes {
}
/**
* \brief Charge les donnees en memoire pour affichage ulterieur
* \param $max Nombre maximum d'enregistrements a charger
* Load data into info_box_contents array to show array later.
*
* @param int $max Maximum number of records to load
* @return void
*/
function loadBox($max=5)
{
@ -159,6 +161,13 @@ class box_services_vendus extends ModeleBoxes {
}
/**
* Method to show box
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head = null, $contents = null)
{
parent::showBox($this->info_box_head, $this->info_box_contents);

View File

@ -88,9 +88,11 @@ class ModeleBoxes // Can't be abtract as it is instanciated to build "empty"
/**
* \brief Standard method to show a box (usage by boxes not mandatory, a box can still use its own function)
* \param $head tableau des caracteristiques du titre
* \param $contents tableau des lignes de contenu
* Standard method to show a box (usage by boxes not mandatory, a box can still use its own function)
*
* @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @return void
*/
function showBox($head, $contents)
{