Skip to content

Commit

Permalink
Standardize and update code
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Sep 20, 2018
1 parent 7c92157 commit 49fe6d3
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 21 deletions.
26 changes: 16 additions & 10 deletions htdocs/core/modules/action/rapport.pdf.php
Expand Up @@ -45,17 +45,23 @@ class CommActionRapport
*/
public $description;

var $date_edition;
var $year;
var $month;
public $date_edition;

var $title;
var $subject;
public $year;

var $marge_gauche;
var $marge_droite;
var $marge_haute;
var $marge_basse;
public $month;

public $title;

public $subject;

public $marge_gauche;

public $marge_droite;

public $marge_haute;

public $marge_basse;


/**
Expand All @@ -67,7 +73,7 @@ class CommActionRapport
*/
function __construct($db, $month, $year)
{
global $conf,$langs;
global $conf, $langs;

// Load translation files required by the page
$langs->loadLangs(array("commercial","projects"));
Expand Down
24 changes: 15 additions & 9 deletions htdocs/core/modules/barcode/mod_barcode_product_standard.php
Expand Up @@ -33,23 +33,29 @@
*/
class mod_barcode_product_standard extends ModeleNumRefBarCode
{
var $name='Standard'; // Model Name
var $code_modifiable; // Editable code
var $code_modifiable_invalide; // Modified code if it is invalid
var $code_modifiable_null; // Modified code if it is null
var $code_null; // Optional code
public $name='Standard'; // Model Name

public $code_modifiable; // Editable code

public $code_modifiable_invalide; // Modified code if it is invalid

public $code_modifiable_null; // Modified code if it is null

public $code_null; // Optional code

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'

var $code_auto; // Automatic Numbering
public $code_auto; // Automatic Numbering

public $searchcode; // Search string

public $numbitcounter; // Number of digits the counter

var $searchcode; // Search string
var $numbitcounter; // Number of digits the counter
var $prefixIsRequired; // The prefix field of third party must be filled when using {pre}
public $prefixIsRequired; // The prefix field of third party must be filled when using {pre}


/**
Expand Down
10 changes: 10 additions & 0 deletions htdocs/core/modules/commande/mod_commande_marbre.php
Expand Up @@ -42,8 +42,18 @@ class mod_commande_marbre extends ModeleNumRefCommandes
*/
public $error='';

/**
* @var string
* @deprecated
* @see name
*/
public $nom='Marbre';

/**
* @var string name
*/
public $name='Marbre';


/**
* Return description of numbering module
Expand Down
12 changes: 11 additions & 1 deletion htdocs/core/modules/commande/mod_commande_saphir.php
Expand Up @@ -44,7 +44,17 @@ class mod_commande_saphir extends ModeleNumRefCommandes
*/
public $error = '';

public $nom = 'Saphir';
/**
* @var string nom
* @deprecated
* @see name
*/
public $nom='Saphir';

/**
* @var string name
*/
public $name='Saphir';


/**
Expand Down
12 changes: 11 additions & 1 deletion htdocs/core/modules/contract/mod_contract_magre.php
Expand Up @@ -40,7 +40,17 @@ class mod_contract_magre extends ModelNumRefContracts
*/
public $error = '';

public $nom = 'Magre';
/**
* @var string nom
* @deprecated
* @see name
*/
public $nom='Magre';

/**
* @var string name
*/
public $name='Magre';

public $code_auto=1;

Expand Down

0 comments on commit 49fe6d3

Please sign in to comment.