WIP ADAPT PHP8.2

This commit is contained in:
sparkyx 2023-02-18 10:50:02 +01:00
parent c7cbbe4ff5
commit 95c8672c0f
12 changed files with 36 additions and 16 deletions

View file

@ -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);

View file

@ -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)

View file

@ -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;

View file

@ -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;

View file

@ -30,7 +30,8 @@ require_once NOALYSS_INCLUDE.'/database/tag_sql.class.php';
*/
class Tag
{
private $data; //<! Tag_SQL
private $data; //<! Tag_SQL
private $cn;
function __construct($p_cn,$id=-1)
{
$this->cn=$p_cn;

View file

@ -92,6 +92,7 @@
@endcode
*
*/
#[AllowDynamicProperties]
abstract class Data_SQL
{
var $cn; //! Database connection

View file

@ -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

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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