[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/13: add magic function toString
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 05/13: add magic function toString |
Date: |
Sun, 16 Oct 2022 17:26:14 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit e73db821d0103a8469d2f96f7ba8188da982cc41
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Oct 8 10:55:19 2022 +0200
add magic function toString
---
include/class/fiche.class.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index a391b35ae..4f0ea0cee 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -363,6 +363,11 @@ class Fiche
return $r;
}
+ public function __toString(): string
+ {
+ return print_r($this,true);
+ }
+
/**
*
* @return string with the category
@@ -1865,7 +1870,7 @@ class Fiche
/**
* @brief display card as a table row , the tag TR must be added
*
- * @return HTMLT string starting
+ * @return HTML string starting
*
*/
function display_row()
- [Noalyss-commit] [noalyss] branch master updated (e133e0ca8 -> 75d59f1b5), Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 02/13: Cosmetic, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 11/13: - Override the function __toString to comply with xdebug - function Card_Property::input ; the build of the HtmlInput is done is a separated function Card_Property::build_input to ease the override of the input function, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 09/13: New Icon_Action for hidding or showing a DIV, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 12/13: Development : tools for debugging, add button for the $_REQUEST and correct a bug in dbg.php, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 13/13: merge, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 01/13: Improve DEBUG, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 05/13: add magic function toString,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 06/13: typo, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 08/13: Development : new tools for debugging in the new class \Noalyss\Dbg (dbg.php);, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 10/13: - Override the function __toString to comply with xdebug - Correct bug in input_switch.class.php when there is several input_switch - FicheDef the insertAttribut can have an order, usefull when installing new category + attribute, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 04/13: Cosmetic : warning, Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 07/13: Task #0001755: Dans Administration - dossier - «Sauvegarde» et non «Backup», Dany De Bontridder, 2022/10/16
- [Noalyss-commit] [noalyss] 03/13: Code cleaning pg_fetch_array, Dany De Bontridder, 2022/10/16