From 95c8672c0f072c0e64489afa5b55a7b007729e8a Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 18 Feb 2023 10:50:02 +0100 Subject: [PATCH] WIP ADAPT PHP8.2 --- include/class/card_attribut_mtable.class.php | 2 +- .../class/noalyss_parameter_folder.class.php | 3 ++- include/class/noalyss_user.class.php | 4 +++- include/class/periode.class.php | 5 ++++- include/class/tag.class.php | 3 ++- include/lib/data_sql.class.php | 1 + include/lib/database_core.class.php | 2 +- include/lib/html_input.class.php | 9 +++++++++ include/lib/iposte.class.php | 2 +- include/lib/manage_table_sql.class.php | 18 +++++++++--------- include/lib/select_box.class.php | 2 ++ include/lib/single_record.class.php | 1 + 12 files changed, 36 insertions(+), 16 deletions(-) diff --git a/include/class/card_attribut_mtable.class.php b/include/class/card_attribut_mtable.class.php index f8a7f16a3..76ef2ffa2 100644 --- a/include/class/card_attribut_mtable.class.php +++ b/include/class/card_attribut_mtable.class.php @@ -32,7 +32,7 @@ */ class Card_Attribut_MTable extends Manage_Table_SQL { - + public $dossier_id; function __construct(\Data_SQL $p_table) { parent::__construct($p_table); diff --git a/include/class/noalyss_parameter_folder.class.php b/include/class/noalyss_parameter_folder.class.php index e346ba829..23df7d79c 100644 --- a/include/class/noalyss_parameter_folder.class.php +++ b/include/class/noalyss_parameter_folder.class.php @@ -49,7 +49,8 @@ class Noalyss_Parameter_Folder var $MY_DEFAULT_ROUND_ERROR_CRED; var $MY_ANC_FILTER; var $MY_CURRENCY; - + var $MY_COUNTRY; + // constructor function __construct($p_cn) diff --git a/include/class/noalyss_user.class.php b/include/class/noalyss_user.class.php index 0394287d0..890f7d886 100644 --- a/include/class/noalyss_user.class.php +++ b/include/class/noalyss_user.class.php @@ -45,7 +45,9 @@ class Noalyss_User var $password; //!< md5 of the password var $email; //!< user's email var $access_mode; //!< MOBILE or PC depending if when connecting $login contains @mobile - + var $lang ; //!< user's language + var $last_name ; //!< user's last_name + var $theme ; //!< user's CSS Theme function __construct($p_cn, $p_id=-1) { $this->db=$p_cn; diff --git a/include/class/periode.class.php b/include/class/periode.class.php index 2b9a288b7..2cbafa44b 100644 --- a/include/class/periode.class.php +++ b/include/class/periode.class.php @@ -39,7 +39,10 @@ class Periode open and CE for centralized */ var $p_start; /*!< start of the periode */ var $p_end; /*!< end of the periode */ - + var $p_exercice ; /*!< exercice */ + var $p_closed ; /*!< if exercice is closed */ + var $p_central ; /*!< NOT USER */ + var $p_exercice_label ; /*!< Label of the exercice */ function __construct($p_cn, $p_id=0) { $this->p_id=$p_id; diff --git a/include/class/tag.class.php b/include/class/tag.class.php index 760a6e031..da35da1fc 100644 --- a/include/class/tag.class.php +++ b/include/class/tag.class.php @@ -30,7 +30,8 @@ require_once NOALYSS_INCLUDE.'/database/tag_sql.class.php'; */ class Tag { - private $data; //cn=$p_cn; diff --git a/include/lib/data_sql.class.php b/include/lib/data_sql.class.php index 55d0353d3..938ee8d12 100644 --- a/include/lib/data_sql.class.php +++ b/include/lib/data_sql.class.php @@ -92,6 +92,7 @@ @endcode * */ +#[AllowDynamicProperties] abstract class Data_SQL { var $cn; //! Database connection diff --git a/include/lib/database_core.class.php b/include/lib/database_core.class.php index 01bfae6b2..c41ea7cbe 100644 --- a/include/lib/database_core.class.php +++ b/include/lib/database_core.class.php @@ -41,7 +41,7 @@ class DatabaseCore /**< return value */ private $is_open; /*!< true is connected */ public $sql; //!< last SQL stmt executed - + var $array; /*** Connect to a database return an connx to db or false if it fails * * @param string $p_user Username diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php index 8ffc726e7..94f2d0ed3 100755 --- a/include/lib/html_input.class.php +++ b/include/lib/html_input.class.php @@ -50,6 +50,7 @@ * - FILE * - SPAN */ +#[AllowDynamicProperties] class HtmlInput { @@ -69,6 +70,14 @@ class HtmlInput var $ctrl; /*!<$ctrl is the control to update (see js_search_card_control) */ var $tabindex; var $require; + +var $width; +var $heigh; +var $attribute; +var $id; +var $style; +var $css_size; + function __construct($p_name="", $p_value="", $p_id="") { $this->name=$p_name; diff --git a/include/lib/iposte.class.php b/include/lib/iposte.class.php index 4c0a8ee0c..fb768e26d 100644 --- a/include/lib/iposte.class.php +++ b/include/lib/iposte.class.php @@ -74,7 +74,7 @@ $text->set_attribute('account','field'); class IPoste extends HtmlInput { var $nb_row; // number of row, default 1 - + var $jrn; //!< concerned ledger function __construct($p_name="",$p_value="",$p_id="") { $this->name=$p_name; diff --git a/include/lib/manage_table_sql.class.php b/include/lib/manage_table_sql.class.php index 8776db174..9fb1f7df3 100644 --- a/include/lib/manage_table_sql.class.php +++ b/include/lib/manage_table_sql.class.php @@ -100,16 +100,16 @@ class Manage_Table_SQL const UPDATABLE=1; const VISIBLE=2; - private $icon_mod; //!< place of right or left the icon update or mod, default right, accepted value=left,right,first,custom column for mod - private $icon_del; //!< place of right or left the icon update or mod, default right, accepted value=left,right - private $dialogbox_style; //!< style of the dialog box - private $button_add_top; //!< place of the button add on the top, by default true + protected $icon_mod; //!< place of right or left the icon update or mod, default right, accepted value=left,right,first,custom column for mod + protected $icon_del; //!< place of right or left the icon update or mod, default right, accepted value=left,right + protected $dialogbox_style; //!< style of the dialog box + protected $button_add_top; //!< place of the button add on the top, by default true protected $title; //! < give the title of the diabox , default is Data - private $cssclass; //! CSS class for the dialog box - private $current_row; //! in display_row and display_custom_row, it is the current row which is used - private $a_col_option; //!< Extra to add to the column : CSS Style , CSS class, javascript ,... - private $a_header_option; //!< Extra to add to the column Header : CSS Style , CSS class, javascript ,... - + protected $cssclass; //! CSS class for the dialog box + protected $current_row; //! in display_row and display_custom_row, it is the current row which is used + protected $a_col_option; //!< Extra to add to the column : CSS Style , CSS class, javascript ,... + protected $a_header_option; //!< Extra to add to the column Header : CSS Style , CSS class, javascript ,... + protected $callback; /** * @brief Constructor : set the label to the column name, * the order of the column , set the properties and the diff --git a/include/lib/select_box.class.php b/include/lib/select_box.class.php index 252773444..86d775a77 100644 --- a/include/lib/select_box.class.php +++ b/include/lib/select_box.class.php @@ -36,6 +36,8 @@ class Select_Box private $filter; //!< allow a dynamic not case sensitive search var $default_value; private $position; //!< change depending if we are in an absolute block or not + protected $style_box; + protected $value; /** * Default constructor diff --git a/include/lib/single_record.class.php b/include/lib/single_record.class.php index 077322494..719b06ab8 100644 --- a/include/lib/single_record.class.php +++ b/include/lib/single_record.class.php @@ -32,6 +32,7 @@ define ('CODE_EXCP_DUPLICATE',901); class Single_Record { + public $name; /** * Constructor $p_name will be set to $this->name, it is also the name * of the tag hidden in a form