Function dossier::connect
This commit is contained in:
parent
5c497d5092
commit
b73d6509ca
1 changed files with 8 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue