documentation

This commit is contained in:
sparkyx 2021-02-11 10:50:52 +01:00
parent 9d6cb61886
commit 812b2a8cf8

View file

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