diff --git a/doc/dev/php/html/CMailFile_8class_8php-source.html b/doc/dev/php/html/CMailFile_8class_8php-source.html index 3e9f578453d..918e2496854 100644 --- a/doc/dev/php/html/CMailFile_8class_8php-source.html +++ b/doc/dev/php/html/CMailFile_8class_8php-source.html @@ -4,7 +4,7 @@
- +00001 <?php 00002 /* notes from Dan Potter: 00003 Sure. I changed a few other things in here too though. One is that I let @@ -160,7 +160,7 @@ 00153 00154 // end script 00155 ?> -
1.3.7
diff --git a/doc/dev/php/html/files.html b/doc/dev/php/html/files.html
index 182faf3fecf..8dcb03adef0 100644
--- a/doc/dev/php/html/files.html
+++ b/doc/dev/php/html/files.html
@@ -4,7 +4,7 @@
-
+| htdocs/lib/CMailFile.class.php [code] | |
| htdocs/lib/functions.inc.php [code] | |
| htdocs/lib/thermometer.php [code] | Classe permettant d'afficher un thermometre |
| htdocs/lib/webcal.class.php [code] | Classe permettant d'acceder a la database webcalendar |
1.3.7
diff --git a/doc/dev/php/html/functions_8inc_8php-source.html b/doc/dev/php/html/functions_8inc_8php-source.html
index b6e027aebbb..b7bc4826934 100644
--- a/doc/dev/php/html/functions_8inc_8php-source.html
+++ b/doc/dev/php/html/functions_8inc_8php-source.html
@@ -4,7 +4,7 @@
-
+00001 <?PHP 00002 /* Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 00003 * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org> @@ -1104,7 +1104,7 @@ 01100 } 01101 01102 ?> -
1.3.7
diff --git a/doc/dev/php/html/globals.html b/doc/dev/php/html/globals.html
index a3bd96b239c..3f40c8e0e63 100644
--- a/doc/dev/php/html/globals.html
+++ b/doc/dev/php/html/globals.html
@@ -4,7 +4,7 @@
-
+@@ -18,7 +18,7 @@ Liste de tous les membres de fichier document : ldap.lib.php
1.3.7
diff --git a/doc/dev/php/html/globals_func.html b/doc/dev/php/html/globals_func.html
index aa1d71f0990..bfac8900441 100644
--- a/doc/dev/php/html/globals_func.html
+++ b/doc/dev/php/html/globals_func.html
@@ -4,7 +4,7 @@
-
+@@ -18,7 +18,7 @@ : ldap.lib.php
1.3.7
diff --git a/doc/dev/php/html/graph_legend.html b/doc/dev/php/html/graph_legend.html
index 93860ac7312..600657b1fcc 100644
--- a/doc/dev/php/html/graph_legend.html
+++ b/doc/dev/php/html/graph_legend.html
@@ -4,7 +4,7 @@
-
+Considérez l'exemple suivant:
/*! Classe invisible à cause d'une troncature */ class Invisible { }; @@ -66,7 +66,7 @@ Une flUne flèche verte en pointillés indique une relation entre une classe instanciée et le modèle de classe utilisé. La flèche est étiquetée avec les paramètres de modèle de la classe instanciée. -
Généré le Thu Jul 15 14:51:58 2004 pour dolibarr par +
Généré le Thu Jul 15 20:50:39 2004 pour dolibarr par1.3.7 diff --git a/doc/dev/php/html/index.html b/doc/dev/php/html/index.html index ef9c9aba424..459fed87146 100644 --- a/doc/dev/php/html/index.html +++ b/doc/dev/php/html/index.html @@ -4,10 +4,10 @@ - +
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichierdolibarr Documentation
-
1.2.0
Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par +1.2.0
Généré le Thu Jul 15 20:50:37 2004 pour dolibarr par1.3.7 diff --git a/doc/dev/php/html/ldap_8lib_8php-source.html b/doc/dev/php/html/ldap_8lib_8php-source.html index a84bf31b1ce..56394b8f501 100644 --- a/doc/dev/php/html/ldap_8lib_8php-source.html +++ b/doc/dev/php/html/ldap_8lib_8php-source.html @@ -4,7 +4,7 @@ - +
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichierhtdocs/lib/ldap.lib.php
Aller à la documentation de ce fichier.00001 <?PHP 00002 /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 00003 * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> @@ -83,7 +83,7 @@ 00124 } 00125 00126 ?> -
Généré le Thu Jul 15 14:51:57 2004 pour dolibarr par +
1.3.7
diff --git a/doc/dev/php/html/ldap_8lib_8php.html b/doc/dev/php/html/ldap_8lib_8php.html
index f077053f37d..8ec698c43bf 100644
--- a/doc/dev/php/html/ldap_8lib_8php.html
+++ b/doc/dev/php/html/ldap_8lib_8php.html
@@ -4,7 +4,7 @@
-
+@@ -273,7 +273,7 @@ unbind du serveur ldap. Définition à la ligne 70 du fichier ldap.lib.php. -
1.3.7
diff --git a/doc/dev/php/html/mysql_8lib_8php-source.html b/doc/dev/php/html/mysql_8lib_8php-source.html
index d1800b7f1b9..6295874824a 100644
--- a/doc/dev/php/html/mysql_8lib_8php-source.html
+++ b/doc/dev/php/html/mysql_8lib_8php-source.html
@@ -4,7 +4,7 @@
-
+00001 <?PHP 00002 /* Copyright (C) 2001 Fabien Seisen <seisen@linuxfr.org> 00003 * Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> @@ -291,7 +291,7 @@ 00450 } 00451 00452 ?> -
1.3.7
diff --git a/doc/dev/php/html/mysql_8lib_8php.html b/doc/dev/php/html/mysql_8lib_8php.html
index d2b290fb442..1c5612256be 100644
--- a/doc/dev/php/html/mysql_8lib_8php.html
+++ b/doc/dev/php/html/mysql_8lib_8php.html
@@ -4,7 +4,7 @@
-
+@@ -22,7 +22,7 @@ Laurent Destailleur.
-Définition dans le fichier mysql.lib.php.
1.3.7
diff --git a/doc/dev/php/html/price_8lib_8php-source.html b/doc/dev/php/html/price_8lib_8php-source.html
index 6b2a603873e..a4fe5210060 100644
--- a/doc/dev/php/html/price_8lib_8php-source.html
+++ b/doc/dev/php/html/price_8lib_8php-source.html
@@ -4,7 +4,7 @@
-
+00001 <?PHP 00002 /* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 00003 * @@ -93,7 +93,7 @@ 00101 00102 return $result; 00103 } -
1.3.7
diff --git a/doc/dev/php/html/price_8lib_8php.html b/doc/dev/php/html/price_8lib_8php.html
index 9a8f236074f..46ceee681c0 100644
--- a/doc/dev/php/html/price_8lib_8php.html
+++ b/doc/dev/php/html/price_8lib_8php.html
@@ -4,7 +4,7 @@
-
+@@ -73,7 +73,7 @@ permet de calculer un prix. Définition à la ligne 38 du fichier price.lib.php. -
1.3.7
diff --git a/doc/dev/php/html/thermometer_8php-source.html b/doc/dev/php/html/thermometer_8php-source.html
index 980627d838f..34ae1ddc51f 100644
--- a/doc/dev/php/html/thermometer_8php-source.html
+++ b/doc/dev/php/html/thermometer_8php-source.html
@@ -4,7 +4,7 @@
-
+00001 <?php 00002 /* Copyright (C) 2002 "stichting Blender Foundation, Timothy Kanters" 00003 * Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> @@ -186,7 +186,7 @@ 00197 00198 00199 -
1.3.7
diff --git a/doc/dev/php/html/thermometer_8php.html b/doc/dev/php/html/thermometer_8php.html
index 631fa9606cc..7931db93ec6 100644
--- a/doc/dev/php/html/thermometer_8php.html
+++ b/doc/dev/php/html/thermometer_8php.html
@@ -4,7 +4,7 @@
-
+@@ -81,7 +81,7 @@ permet d'afficher un thermometre monetaire. Définition à la ligne 42 du fichier thermometer.php. -
1.3.7
diff --git a/doc/dev/php/html/webcal_8class_8php-source.html b/doc/dev/php/html/webcal_8class_8php-source.html
index de572aadf2d..34197856cd0 100644
--- a/doc/dev/php/html/webcal_8class_8php-source.html
+++ b/doc/dev/php/html/webcal_8class_8php-source.html
@@ -4,7 +4,7 @@
-
+00001 <?PHP 00002 /* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 00003 * @@ -27,87 +27,87 @@ 00020 * 00021 */ 00022 -00031 class Webcal { -00032 var $localdb; -00033 var $heure = -1; -00034 var $duree = 0; -00035 -00040 function Webcal() -00041 { -00042 global $conf; -00043 -00044 $this->localdb = new Db($conf->webcal->db->type, -00045 $conf->webcal->db->host, -00046 $conf->webcal->db->user, -00047 $conf->webcal->db->pass, -00048 $conf->webcal->db->name); -00049 } -00050 -00059 function add($user, $date, $texte, $desc) -00060 { -00061 -00062 $id = $this->get_next_id(); -00063 -00064 $cal_id = $id; -00065 $cal_create_by = $user->webcal_login; -00066 $cal_date = strftime('%Y%m%d', $date); -00067 $cal_time = $this->heure; -00068 $cal_mod_date = strftime('%Y%m%d', time()); -00069 $cal_mod_time = strftime('%H%M', time()); -00070 $cal_duration = $this->duree; -00071 $cal_priority = 2; -00072 $cal_type = "E"; -00073 $cal_access = "P"; -00074 $cal_name = $texte; -00075 $cal_description = $desc; -00076 -00077 $sql = "INSERT INTO webcal_entry (cal_id, cal_create_by,cal_date,cal_time,cal_mod_date, -00078 cal_mod_time,cal_duration,cal_priority,cal_type, cal_access, cal_name,cal_description)"; -00079 -00080 $sql .= " VALUES ($cal_id, '$cal_create_by', $cal_date, $cal_time,$cal_mod_date, $cal_mod_time, -00081 $cal_duration,$cal_priority,'$cal_type', '$cal_access', '$cal_name','$cal_description')"; +00037 class Webcal { +00038 var $localdb; +00039 var $heure = -1; +00040 var $duree = 0; +00041 +00046 function Webcal() +00047 { +00048 global $conf; +00049 +00050 $this->localdb = new Db($conf->webcal->db->type, +00051 $conf->webcal->db->host, +00052 $conf->webcal->db->user, +00053 $conf->webcal->db->pass, +00054 $conf->webcal->db->name); +00055 } +00056 +00065 function add($user, $date, $texte, $desc) +00066 { +00067 +00068 $id = $this->get_next_id(); +00069 +00070 $cal_id = $id; +00071 $cal_create_by = $user->webcal_login; +00072 $cal_date = strftime('%Y%m%d', $date); +00073 $cal_time = $this->heure; +00074 $cal_mod_date = strftime('%Y%m%d', time()); +00075 $cal_mod_time = strftime('%H%M', time()); +00076 $cal_duration = $this->duree; +00077 $cal_priority = 2; +00078 $cal_type = "E"; +00079 $cal_access = "P"; +00080 $cal_name = $texte; +00081 $cal_description = $desc; 00082 -00083 if ( $this->localdb->query($sql) ) -00084 { +00083 $sql = "INSERT INTO webcal_entry (cal_id, cal_create_by,cal_date,cal_time,cal_mod_date, +00084 cal_mod_time,cal_duration,cal_priority,cal_type, cal_access, cal_name,cal_description)"; 00085 -00086 $sql = "INSERT INTO webcal_entry_user (cal_id, cal_login, cal_status)"; -00087 $sql .= " VALUES ($cal_id, '$cal_create_by', 'A')"; +00086 $sql .= " VALUES ($cal_id, '$cal_create_by', $cal_date, $cal_time,$cal_mod_date, $cal_mod_time, +00087 $cal_duration,$cal_priority,'$cal_type', '$cal_access', '$cal_name','$cal_description')"; 00088 -00089 if ( $this->localdb->query($sql) ) -00090 { +00089 if ( $this->localdb->query($sql) ) +00090 { 00091 -00092 } -00093 else -00094 { -00095 $error = $this->localdb->error() . '<br>' .$sql; -00096 } -00097 } -00098 else -00099 { -00100 $error = $this->localdb->error() . '<br>' .$sql; -00101 } -00102 -00103 $this->localdb->close(); -00104 } -00105 -00112 function get_next_id() -00113 { -00114 -00115 $sql = "SELECT max(cal_id) FROM webcal_entry"; -00116 -00117 if ($this->localdb->query($sql)) -00118 { -00119 $id = $this->localdb->result(0, 0) + 1; -00120 return $id; -00121 } -00122 else -00123 { -00124 print $this->localdb->error(); -00125 } -00126 } -00127 } -00128 ?> -
1.3.7
diff --git a/doc/dev/php/html/webcal_8class_8php.html b/doc/dev/php/html/webcal_8class_8php.html
index 49bcc5e75ed..7054681d236 100644
--- a/doc/dev/php/html/webcal_8class_8php.html
+++ b/doc/dev/php/html/webcal_8class_8php.html
@@ -4,7 +4,7 @@
-
+@@ -12,6 +12,10 @@
Aller au code source de ce fichier.
Classes | |
| class | Webcal |
| Classe permettant d'acceder a la database webcalendar. Plus de détails... | |
-Définition dans le fichier webcal.class.php.
1.3.7
diff --git a/doc/dev/php/latex/doxygen.sty b/doc/dev/php/latex/doxygen.sty
index 86c504250ab..8687611246c 100644
--- a/doc/dev/php/latex/doxygen.sty
+++ b/doc/dev/php/latex/doxygen.sty
@@ -10,8 +10,8 @@
{\fancyplain{}{\bfseries\rightmark}}
\rhead[\fancyplain{}{\bfseries\leftmark}]
{\fancyplain{}{\bfseries\thepage}}
-\rfoot[\fancyplain{}{\bfseries\scriptsize G\'{e}n\'{e}r\'{e} le Thu Jul 15 14:51:58 2004 pour dolibarr par Doxygen }]{}
-\lfoot[]{\fancyplain{}{\bfseries\scriptsize G\'{e}n\'{e}r\'{e} le Thu Jul 15 14:51:58 2004 pour dolibarr par Doxygen }}
+\rfoot[\fancyplain{}{\bfseries\scriptsize G\'{e}n\'{e}r\'{e} le Thu Jul 15 20:50:39 2004 pour dolibarr par Doxygen }]{}
+\lfoot[]{\fancyplain{}{\bfseries\scriptsize G\'{e}n\'{e}r\'{e} le Thu Jul 15 20:50:39 2004 pour dolibarr par Doxygen }}
\cfoot{}
\newenvironment{CompactList}
{\begin{list}{}{
diff --git a/doc/dev/php/latex/refman.tex b/doc/dev/php/latex/refman.tex
index 8e9d895a164..63854ad7ff3 100644
--- a/doc/dev/php/latex/refman.tex
+++ b/doc/dev/php/latex/refman.tex
@@ -35,7 +35,7 @@
\vspace*{1cm}
{\large G\'{e}n\'{e}r\'{e} par Doxygen 1.3.7}\\
\vspace*{0.5cm}
-{\small Thu Jul 15 14:51:57 2004}\\
+{\small Thu Jul 15 20:50:37 2004}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
@@ -43,8 +43,12 @@
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
+\chapter{dolibarr Index des classes}
+\input{annotated}
\chapter{dolibarr Index des fichiers}
\input{files}
+\chapter{dolibarr Documentation des classes}
+\input{classWebcal}
\chapter{dolibarr Documentation des fichiers}
\input{ldap_8lib_8php}
\include{mysql_8lib_8php}
diff --git a/doc/dev/php/latex/webcal_8class_8php.tex b/doc/dev/php/latex/webcal_8class_8php.tex
index d3f93760049..71c1ccd78a6 100644
--- a/doc/dev/php/latex/webcal_8class_8php.tex
+++ b/doc/dev/php/latex/webcal_8class_8php.tex
@@ -5,6 +5,11 @@
Classe permettant d'acceder a la database webcalendar.
+\subsection*{Classes}
+\begin{CompactItemize}
+\item
+class \hyperlink{classWebcal}{Webcal}
+\begin{CompactList}\small\item\em Classe permettant d'acceder a la database webcalendar. \item\end{CompactList}\end{CompactItemize}
\subsection{Description d\'{e}taill\'{e}e}
diff --git a/htdocs/lib/ldap.lib.php b/htdocs/lib/ldap.lib.php
index fca7a7bb846..52cdf66e6b8 100644
--- a/htdocs/lib/ldap.lib.php
+++ b/htdocs/lib/ldap.lib.php
@@ -22,41 +22,36 @@
*
*/
- /**
- * librairie contenant les fonctions pour acceder a un
- * serveur ldap
- *
- * @package ldap.lib
- * @author Rodolphe Quiedeville
- * @author Benoit Mortier
- * @version 1.2
- *
- */
+/*! \file ldap.lib.php
+ \brief Librairie contenant les fonctions pour accèder au serveur ldap.
+ \author Rodolphe Quiedeville.
+ \author Benoit Mortier.
+ \version 1.2.
-/**
- * connection au serveur ldap
- *
- * @access public
- * @return resource
- */
+ Ensemble des fonctions permettant d'accèder à un serveur ldap.
+*/
-Function dolibarr_ldap_connect()
+
+/*!
+ \brief ouverture d'une connection vers le serveur ldap.
+ \return resource
+*/
+
+function dolibarr_ldap_connect()
{
$ldapconnect = ldap_connect(LDAP_SERVER_HOST);
return $ldapconnect;
}
-/**
- * bind au serveur ldap
- *
- * @access public
- * @param resource $ds
- * @return bool
- *
- */
+/*!
+ \brief bind au serveur ldap.
+ \param ds
+ \return bool
+*/
-Function dolibarr_ldap_bind($ds)
+
+function dolibarr_ldap_bind($ds)
{
if (defined("LDAP_SERVER_PASS") && LDAP_SERVER_DN && LDAP_SERVER_PASS)
{
@@ -66,16 +61,13 @@ Function dolibarr_ldap_bind($ds)
return $ldapbind;
}
-/**
- * unbind du serveur ldap
- *
- * @access public
- * @param resource $ds
- * @return bool
- *
- */
+/*!
+ \brief unbind du serveur ldap.
+ \param ds
+ \return bool
+*/
-Function dolibarr_ldap_unbind($ds)
+function dolibarr_ldap_unbind($ds)
{
$ldapunbind = ldap_unbind($ds);
@@ -83,16 +75,13 @@ Function dolibarr_ldap_unbind($ds)
return $ldapunbind;
}
-/**
- * verification de la version du serveur ldap
- *
- * @access public
- * @param resource $ds
- * @return mixed
- *
- */
+/*!
+ \brief verification de la version du serveur ldap.
+ \param ds
+ \return version
+*/
-Function dolibarr_ldap_getversion($ds)
+function dolibarr_ldap_getversion($ds)
{
$version = 0;
@@ -101,34 +90,28 @@ Function dolibarr_ldap_getversion($ds)
return $version;
}
-/**
- * changement de la version du serveur ldap
- *
- * @access public
- * @param resource $ds
- * @param integer $version
- * @return bool
- *
- */
+/*!
+ \brief changement de la version du serveur ldap.
+ \param ds
+ \param version
+ \return version
+*/
-Function dolibarr_ldap_setversion($ds,$version)
+
+function dolibarr_ldap_setversion($ds,$version)
{
$ldapsetversion = ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version);
return $ldapsetversion;
}
-/**
- * permet d'enlever les accents d'une chaine
- * avant de l'envoyer au serveur ldap
- *
- * @access public
- * @param string $str
- * @return string
- *
- */
+/*!
+ \brief permet d'enlever les accents d'une chaine.
+ \param str
+ \return string
+*/
-Function dolibarr_ldap_unacc($str)
+function dolibarr_ldap_unacc($str)
{
$stu = ereg_replace("é","e",$str);
$stu = ereg_replace("è","e",$stu);
diff --git a/htdocs/lib/mysql.lib.php b/htdocs/lib/mysql.lib.php
index dd451a6b405..9e1503e9051 100644
--- a/htdocs/lib/mysql.lib.php
+++ b/htdocs/lib/mysql.lib.php
@@ -23,7 +23,7 @@
*/
/*! \file mysql.lib.php
- \brief contenant les fonctions pour gere la database de dolibarr.
+ \brief Classes permettant de gérér la database de dolibarr.
\author Fabien Seisen
\author Rodolphe Quiedeville.
\author Laurent Destailleur.
diff --git a/htdocs/lib/price.lib.php b/htdocs/lib/price.lib.php
index b9e6f1cdc59..08d87f445e2 100644
--- a/htdocs/lib/price.lib.php
+++ b/htdocs/lib/price.lib.php
@@ -29,13 +29,13 @@
*/
/*!
- \brief permet de calculer un prix
+ \brief permet de calculer un prix.
\param products
\param remise_percent
\return result
*/
-Function calcul_price($products, $remise_percent)
+function calcul_price($products, $remise_percent)
{
$total_ht = 0;
$amount_ht = 0;
diff --git a/htdocs/lib/webcal.class.php b/htdocs/lib/webcal.class.php
index e2b1b142a2b..ca2e9c4321a 100644
--- a/htdocs/lib/webcal.class.php
+++ b/htdocs/lib/webcal.class.php
@@ -28,6 +28,12 @@
Ensemble des fonctions permettant d'acceder a la database webcalendar.
*/
+/*! \class Webcal
+ \brief Classe permettant d'acceder a la database webcalendar
+
+ Ensemble des fonctions permettant d'acceder a la database webcalendar
+*/
+
class Webcal {
var $localdb;
var $heure = -1;
@@ -37,7 +43,7 @@ class Webcal {
\brief Permet de se connecter a la database webcalendar.
*/
- Function Webcal()
+ function Webcal()
{
global $conf;
@@ -50,14 +56,13 @@ class Webcal {
/*!
\brief ajoute une entree dans le calendrier de l'utilsateur
-
- \param[in] $user le login de l'utilisateur
- \param[in] $date la date de l'evenement dans le calendrier
- \param[in] $texte le titre a indiquer dans l'evenement
- \param[in] $desc la description a indiquer dans l'evenement
+ \param[in] user le login de l'utilisateur
+ \param[in] date la date de l'evenement dans le calendrier
+ \param[in] texte le titre a indiquer dans l'evenement
+ \param[in] desc la description a indiquer dans l'evenement
*/
- Function add($user, $date, $texte, $desc)
+ function add($user, $date, $texte, $desc)
{
$id = $this->get_next_id();
@@ -106,12 +111,11 @@ class Webcal {
/*!
\brief obtient l'id suivant dans le webcalendar
-
- \retval $id retourne l'id suivant dans le webcalendar
+ \retval id retourne l'id suivant dans le webcalendar
*/
- Function get_next_id()
+ function get_next_id()
{
$sql = "SELECT max(cal_id) FROM webcal_entry";