[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/06: documentation
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 03/06: documentation |
Date: |
Thu, 18 Feb 2021 15:50:08 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 812b2a8cf89da527cd304f0ac1d0eb0b2f477089
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Feb 11 10:50:52 2021 +0100
documentation
---
include/class/fiche_def.class.php | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/include/class/fiche_def.class.php
b/include/class/fiche_def.class.php
index ddae639..a16c02d 100644
--- a/include/class/fiche_def.class.php
+++ b/include/class/fiche_def.class.php
@@ -34,14 +34,14 @@ require_once NOALYSS_INCLUDE.'/lib/iradio.class.php';
*/
class Fiche_Def
{
- var $cn; // database connection
- var $id; // id (fiche_def.fd_id
- var $label; // fiche_def.fd_label
- var $class_base; // fiche_def.fd_class_base
- var $fiche_def; // fiche_def.frd_id = fiche_def_ref.frd_id
- var $create_account; // fd_create_account: flag
+ var $cn; //!< database connection
+ var $id; //!< id (fiche_def.fd_id
+ var $label; //!< fiche_def.fd_label
+ var $class_base; //!< fiche_def.fd_class_base
+ var $fiche_def; //!< fiche_def.frd_id = fiche_def_ref.frd_id
+ var $create_account; //!< fd_create_account: flag
var $all;
- var $attribut; // get from attr_xxx tables
+ var $attribut; //!< get from attr_xxx tables
function __construct($p_cn,$p_id = 0)
{
$this->cn=$p_cn;
@@ -75,10 +75,10 @@ class Fiche_Def
function getAttribut()
{
$sql="select * from jnt_fic_attr ".
- " natural join attr_def where fd_id=".$this->id.
+ " natural join attr_def where fd_id= $1".
" order by jnt_order";
- $Ret=$this->cn->exec_sql($sql);
+ $Ret=$this->cn->exec_sql($sql,[$this->id]);
if ( ($Max=Database::num_row($Ret)) == 0 )
return ;
- [Noalyss-commit] [noalyss] branch master updated (79ecb68 -> faaeb16), Dany De Bontridder, 2021/02/18
- [Noalyss-commit] [noalyss] 02/06: Protect SQL , utilisation de bind variable, Dany De Bontridder, 2021/02/18
- [Noalyss-commit] [noalyss] 03/06: documentation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 04/06: Manage_Table_SQL : flag to display a dynamic filter on the top of the table, default yes, Dany De Bontridder, 2021/02/18
- [Noalyss-commit] [noalyss] 06/06: Cosmetic Document Option, Dany De Bontridder, 2021/02/18
- [Noalyss-commit] [noalyss] 01/06: Cosmetic, Dany De Bontridder, 2021/02/18
- [Noalyss-commit] [noalyss] 05/06: Update doc, Dany De Bontridder, 2021/02/18