Function dossier::connect

This commit is contained in:
Dany De Bontridder 2011-10-28 21:09:14 +00:00
parent 5c497d5092
commit b73d6509ca

View file

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