Author: danydb
Date: 2011-10-28 23:09:14 +0200 (Fri, 28 Oct 2011)
New Revision: 4252
Modified:
phpcompta/trunk/include/class_dossier.php
Log:
Function dossier::connect
Modified: phpcompta/trunk/include/class_dossier.php
===================================================================
--- phpcompta/trunk/include/class_dossier.php 2011-10-28 20:59:25 UTC (rev
4251)
+++ phpcompta/trunk/include/class_dossier.php 2011-10-28 21:09:14 UTC (rev
4252)
@@ -55,9 +55,9 @@
}
/*!
- * \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 @@
{
return $p_cn->get_value('select val from version');
}
+ static function connect()
+ {
+ $id=Dossier::id();
+ $cn= new Database($id);
+ return $cn;
+ }
}
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev