diff --git a/include/class_dossier.php b/include/class_dossier.php index a4efa22ec..12dbf9642 100644 --- a/include/class_dossier.php +++ b/include/class_dossier.php @@ -55,9 +55,9 @@ class dossier } /*! - * \param p_type string : all for all dossiers lim for only the + * \param p_type string : all for all dossiers lim for only the * dossier where we've got rights - * + * * Show the folder where user have access. Return : nothing ++*/ function show_dossier($p_type,$p_first=0,$p_max=10,$p_Num=0) @@ -230,4 +230,10 @@ class dossier { return $p_cn->get_value('select val from version'); } + static function connect() + { + $id=Dossier::id(); + $cn= new Database($id); + return $cn; + } }