[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/07: Improve : set and setp return $this
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 05/07: Improve : set and setp return $this |
Date: |
Tue, 8 Mar 2022 17:08:56 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit 081bc8ac4e25d7aa0ca7608256124dee57ff8c25
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue Mar 8 09:21:42 2022 +0100
Improve : set and setp return $this
---
include/lib/data_sql.class.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/lib/data_sql.class.php b/include/lib/data_sql.class.php
index ce6990e0..5bfbaf40 100644
--- a/include/lib/data_sql.class.php
+++ b/include/lib/data_sql.class.php
@@ -134,6 +134,7 @@ abstract class Data_SQL
{
if (array_key_exists($p_string, $this->type)) {
$this->$p_string=$p_value;
+ return $this;
} else
throw new Exception(__FILE__.":".__LINE__.$p_string.'Erreur
attribut inexistant '.$p_string);
}
@@ -161,6 +162,7 @@ abstract class Data_SQL
if (array_key_exists($p_string, $this->name)) {
$idx=$this->name[$p_string];
$this->$idx=$p_value;
+ return $this;
} else
throw new Exception(__FILE__.":".__LINE__.$p_string.'Erreur
attribut inexistant '.$p_string);
}
- [Noalyss-commit] [noalyss] branch devel updated (eba72b4c -> d0eb957a), Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 05/07: Improve : set and setp return $this,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 06/07: Fix : JSON answer didn't work, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 07/07: Improve : card attribute option is a textarea, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 01/07: For plugin , send a NOCONX when the session is expired instead of stopping, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 04/07: Documentation, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 03/07: Fixed : error when column contains only a input element (checkbox), Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 02/07: Documentation, Dany De Bontridder, 2022/03/08