diff --git a/htdocs/core/class/events.class.php b/htdocs/core/class/events.class.php index 436a708d312..d8d71513cd9 100644 --- a/htdocs/core/class/events.class.php +++ b/htdocs/core/class/events.class.php @@ -59,10 +59,10 @@ class Events // extends CommonObject */ public $error=''; - var $tms; - var $type; - var $entity; - var $dateevent; + public $tms; + public $type; + public $entity; + public $dateevent; /** * @var string description @@ -70,7 +70,7 @@ class Events // extends CommonObject public $description; // 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_FAILED', 'test'=>1), array('id'=>'USER_LOGOUT', 'test'=>1),*/ diff --git a/htdocs/holiday/class/holiday.class.php b/htdocs/holiday/class/holiday.class.php index d75c90e2b64..5107ffb09ab 100644 --- a/htdocs/holiday/class/holiday.class.php +++ b/htdocs/holiday/class/holiday.class.php @@ -43,50 +43,50 @@ class Holiday extends CommonObject public $table_element='holiday'; 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'; /** * @deprecated * @see id */ - var $rowid; + public $rowid; /** * @var int User ID */ public $fk_user; - var $date_create=''; + public $date_create=''; /** * @var string description */ public $description; - var $date_debut=''; // Date start in PHP server TZ - var $date_fin=''; // Date end in PHP server TZ - var $date_debut_gmt=''; // Date start in GMT - var $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 - var $statut=''; // 1=draft, 2=validated, 3=approved - var $fk_validator; - var $date_valid=''; - var $fk_user_valid; - var $date_refuse=''; - var $fk_user_refuse; - var $date_cancel=''; - var $fk_user_cancel; - var $detail_refuse=''; - var $fk_type; + public $date_debut=''; // Date start in PHP server TZ + public $date_fin=''; // Date end in PHP server TZ + public $date_debut_gmt=''; // Date start in GMT + public $date_fin_gmt=''; // Date end in GMT + public $halfday=''; // 0:Full days, 2:Start afternoon end morning, -1:Start afternoon end afternoon, 1:Start morning end morning + public $statut=''; // 1=draft, 2=validated, 3=approved + public $fk_validator; + public $date_valid=''; + public $fk_user_valid; + public $date_refuse=''; + public $fk_user_refuse; + public $date_cancel=''; + public $fk_user_cancel; + public $detail_refuse=''; + public $fk_type; - var $holiday = array(); - var $events = array(); - var $logs = array(); + public $holiday = array(); + public $events = array(); + public $logs = array(); - var $optName = ''; - var $optValue = ''; - var $optRowid = ''; + public $optName = ''; + public $optValue = ''; + public $optRowid = ''; /** * Draft status diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php index 9f205580444..59e3f2fb057 100644 --- a/htdocs/product/stock/class/entrepot.class.php +++ b/htdocs/product/stock/class/entrepot.class.php @@ -60,23 +60,23 @@ class Entrepot extends CommonObject */ const STATUS_OPEN_INTERNAL = 2; - var $libelle; + public $libelle; /** * @var string description */ public $description; - var $statut; - var $lieu; - var $address; + public $statut; + public $lieu; + public $address; //! Code Postal - var $zip; - var $town; - var $fk_parent; + public $zip; + public $town; + public $fk_parent; // List of short language codes for status - var $statuts = array(); + public $statuts = array(); /** * Constructor