[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/12: set require to falser and add function
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 05/12: set require to falser and add function __toString |
Date: |
Wed, 16 Nov 2022 14:39:15 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit c255439a56540efe4e6dd135ee8cfb7ff23281e0
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Nov 6 20:21:08 2022 +0100
set require to falser and add function __toString
---
include/lib/html_input.class.php | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 7fa10b0bb..9e82f2fb9 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -68,7 +68,7 @@ class HtmlInput
var $javascript; /*!< $javascript is the javascript to add
to the widget */
var $ctrl; /*!<$ctrl is the control to update (see
js_search_card_control) */
var $tabindex;
-
+ var $require;
function __construct($p_name="", $p_value="", $p_id="")
{
$this->name=$p_name;
@@ -85,6 +85,7 @@ class HtmlInput
$this->extra2="all";
$this->attribute=array();
$this->id=$p_id;
+ $this->require=false;
}
function setReadOnly($p_read)
@@ -187,13 +188,14 @@ class HtmlInput
//#####################################################################
/* Debug
*/
- function debug()
+ function __toString()
{
- echo "Type ".$this->type."<br>";
- echo "name ".$this->name."<br>";
- echo "value".$this->value."<br>";
- $readonly=($this->readonly==false)?"false":"true";
- echo "read only".$readonly."<br>";
+ $r= "Type ".$this->type."<br>";
+ $r.= "name ".$this->name."<br>";
+ $r.= "value".$this->value."<br>";
+ $readonly=(isset($this->readOnly) &&
$this->readOnly==false)?"false":"true";
+ $r.= "read only".$readonly."<br>";
+ return $r;
}
static function submit($p_name, $p_value, $p_javascript="",
- [Noalyss-commit] [noalyss] branch master updated (7749f97eb -> 1a1bcd567), Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 02/12: code cleaning : rename search_poste to search_accounting, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 03/12: TVA javascript : add callback function, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 08/12: Set current user in PostGresql session (config) so it can be directly used directly by triggers and pgplsql to track user's changes, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 09/12: Fix typo due to code cleaning, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 06/12: Add function __toString, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 04/12: INUM , IText and ITVAPopup add the attribute (for javascript), Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 01/12: WYSIWYG Editor integration and improve of waiting_box, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 05/12: set require to falser and add function __toString,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 10/12: useless file, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 11/12: Clean code : dead code, improve debug, comments, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 12/12: Save the current user in a PostgreSQL session variable noalyss.user_login, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 07/12: Tag : add color when selected, Dany De Bontridder, 2022/11/16