113 |
$this->all[$i]->create_account=$row['fd_create_account']; |
$this->all[$i]->create_account=$row['fd_create_account']; |
114 |
} |
} |
115 |
} |
} |
116 |
|
/* function HasAttribute |
117 |
|
************************************************** |
118 |
|
* Purpose : Check in vw_fiche_def if a fiche has |
119 |
|
* a attribut X |
120 |
|
* |
121 |
|
* parm : |
122 |
|
* - attribut to check |
123 |
|
* gen : |
124 |
|
* - none |
125 |
|
* return: true or false |
126 |
|
*/ |
127 |
|
function HasAttribute($p_attr) { |
128 |
|
return (CountSql($this->cn,"select * from vw_fiche_def where ad_id=$p_attr and fd_id=".$this->id)>0)?true:false; |
129 |
|
|
130 |
|
} |
131 |
|
|
132 |
} |
} |
133 |
|
|