Standardize and update code

This commit is contained in:
Philippe GRAND 2018-10-04 09:24:57 +02:00
parent c32b96c207
commit d2ec703b51
3 changed files with 37 additions and 37 deletions

View File

@ -59,10 +59,10 @@ class Events // extends CommonObject
*/ */
public $error=''; public $error='';
var $tms; public $tms;
var $type; public $type;
var $entity; public $entity;
var $dateevent; public $dateevent;
/** /**
* @var string description * @var string description
@ -70,7 +70,7 @@ class Events // extends CommonObject
public $description; public $description;
// List of all Audit/Security events supported by triggers // List of all Audit/Security events supported by triggers
var $eventstolog=array( public $eventstolog=array(
/*array('id'=>'USER_LOGIN', 'test'=>1), /*array('id'=>'USER_LOGIN', 'test'=>1),
array('id'=>'USER_LOGIN_FAILED', 'test'=>1), array('id'=>'USER_LOGIN_FAILED', 'test'=>1),
array('id'=>'USER_LOGOUT', 'test'=>1),*/ array('id'=>'USER_LOGOUT', 'test'=>1),*/

View File

@ -43,50 +43,50 @@ class Holiday extends CommonObject
public $table_element='holiday'; public $table_element='holiday';
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
var $fk_element = 'fk_holiday'; public $fk_element = 'fk_holiday';
public $picto = 'holiday'; public $picto = 'holiday';
/** /**
* @deprecated * @deprecated
* @see id * @see id
*/ */
var $rowid; public $rowid;
/** /**
* @var int User ID * @var int User ID
*/ */
public $fk_user; public $fk_user;
var $date_create=''; public $date_create='';
/** /**
* @var string description * @var string description
*/ */
public $description; public $description;
var $date_debut=''; // Date start in PHP server TZ public $date_debut=''; // Date start in PHP server TZ
var $date_fin=''; // Date end in PHP server TZ public $date_fin=''; // Date end in PHP server TZ
var $date_debut_gmt=''; // Date start in GMT public $date_debut_gmt=''; // Date start in GMT
var $date_fin_gmt=''; // Date end in GMT public $date_fin_gmt=''; // Date end in GMT
var $halfday=''; // 0:Full days, 2:Start afternoon end morning, -1:Start afternoon end afternoon, 1:Start morning end morning public $halfday=''; // 0:Full days, 2:Start afternoon end morning, -1:Start afternoon end afternoon, 1:Start morning end morning
var $statut=''; // 1=draft, 2=validated, 3=approved public $statut=''; // 1=draft, 2=validated, 3=approved
var $fk_validator; public $fk_validator;
var $date_valid=''; public $date_valid='';
var $fk_user_valid; public $fk_user_valid;
var $date_refuse=''; public $date_refuse='';
var $fk_user_refuse; public $fk_user_refuse;
var $date_cancel=''; public $date_cancel='';
var $fk_user_cancel; public $fk_user_cancel;
var $detail_refuse=''; public $detail_refuse='';
var $fk_type; public $fk_type;
var $holiday = array(); public $holiday = array();
var $events = array(); public $events = array();
var $logs = array(); public $logs = array();
var $optName = ''; public $optName = '';
var $optValue = ''; public $optValue = '';
var $optRowid = ''; public $optRowid = '';
/** /**
* Draft status * Draft status

View File

@ -60,23 +60,23 @@ class Entrepot extends CommonObject
*/ */
const STATUS_OPEN_INTERNAL = 2; const STATUS_OPEN_INTERNAL = 2;
var $libelle; public $libelle;
/** /**
* @var string description * @var string description
*/ */
public $description; public $description;
var $statut; public $statut;
var $lieu; public $lieu;
var $address; public $address;
//! Code Postal //! Code Postal
var $zip; public $zip;
var $town; public $town;
var $fk_parent; public $fk_parent;
// List of short language codes for status // List of short language codes for status
var $statuts = array(); public $statuts = array();
/** /**
* Constructor * Constructor