diff --git a/doc/dev/.cvsignore b/doc/dev/.cvsignore deleted file mode 100644 index 06c613cb520..00000000000 --- a/doc/dev/.cvsignore +++ /dev/null @@ -1,5 +0,0 @@ -dolibarr-dev.ps -dolibarr-dev.tpt -dolibarr-dev.pdf -dolibarr-dev.out -dolibarr-dev.html diff --git a/doc/dev/Makefile b/doc/dev/Makefile deleted file mode 100644 index 190aa076abd..00000000000 --- a/doc/dev/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright (C) 2003 Rodolphe Quiedeville -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# $Id$ -# $Source$ - -DOC=dolibarr-dev -DEBIANDOC2PS= debiandoc2ps -DEBIANDOC2PDF= debiandoc2pdf -DEBIANDOC2HTML= debiandoc2html -DEBIANDOC2LATEX= debiandoc2latex -DEBIANDOC2TEXT= debiandoc2text - -OPTIONS=-v -lfr_FR.ISO8859-1 -pa4 -HOPTIONS=-lfr_FR.ISO8859-1 - -RSYNC=/usr/bin/rsync -ROPT=-av -RSSH=-e ssh - -FRPAGES = $(shell find * -regex '.*\.sgml' -print ) - -all: $(DOC).pdf $(DOC).html - - -%.tex: %.sgml $(FRPAGES) - $(DEBIANDOC2LATEX) $(HOPTIONS) $< - -%.ps: %.sgml $(FRPAGES) - $(DEBIANDOC2PS) $(OPTIONS) $< - -$(DOC).pdf: $(FRPAGES) - $(DEBIANDOC2PDF) $(OPTIONS) $(DOC).sgml - #linuxdoc --backend=latex -o pdf dolidev.sgml - -%.html: %.sgml $(FRPAGES) - $(DEBIANDOC2HTML) $(HOPTIONS) $< - -put: - $(RSYNC) $(ROPT) $(RSSH) *pdf dolibarr-dev.html rodolphe.quiedeville.org:/home/www/www.dolibarr.com/htdocs/documentation - -clean: - rm -f *pdf *pslinuxdoc --backend=latex -o pdf dolidev.sgml - diff --git a/doc/dev/config.sgml b/doc/dev/config.sgml deleted file mode 100644 index 94aa157b8f1..00000000000 --- a/doc/dev/config.sgml +++ /dev/null @@ -1,58 +0,0 @@ - - -Configuration - - Fichier de configuration - -

- Le fichier de configuration de Dolibarr est - conf/conf.php il est écrit par /install.php -

-

- Le contenu du fichier standard est : - - -$dolibarr_main_document_root="/spare/home/www/dolibarr/dolibarr/htdocs"; -$dolibarr_main_url_root="http://dolibarr.lafrere.lan"; -$dolibarr_main_db_host="localhost"; -$dolibarr_main_db_name="dolibarr"; -$dolibarr_main_db_user="dolibarr"; -$dolibarr_main_db_pass=""; - - -

- - Paramètres optionnels supplémentaires -

- Vous pouvez ajouter le paramètre supplémentaire optionnel : - -$dolibarr_auto_user="demo"; - - - Si vous souhaitez utiliser Dolibarr en mono-utilisateur, il - faut quand même que cet utilisateur existe dans la base de - données. -

-
- -
- - -
- diff --git a/doc/dev/constantes.sgml b/doc/dev/constantes.sgml deleted file mode 100644 index 3c481c9514f..00000000000 --- a/doc/dev/constantes.sgml +++ /dev/null @@ -1,67 +0,0 @@ - - -Constantes - -

- Définition des constantes utilisées -

- - Configuration -

- Liste des constantes utilisées dans la configuration - - - DB_NAME_OSC -

Nom de la base de données d'oscommerce

- - DONS_FORM - FAC_PDF_ADRESSE -

Adresse imprimée sur les factures

-
- FAC_PDF_FAX -

Numéro de Fax imprimé sur les factures

-
- FAC_PDF_SIREN -

Numéro de SIREN affiché sur les factures

-
- MAIN_DEBUG - MAIN_THEME - MAIN_TITLE - MAIN_SPIP_DB -

Nom de la base de données SPIP

-
- MAIN_SPIP_PASS - OSC_CATALOG_URL -

URL du catalogue Oscommerce

-
- OSC_CATALOG_DIRECTORY - OSC_DIRECTORY - OSC_IMAGE_DEFAULT - PN_DB_NAME -

Nom de la base Postnuke

-
- PN_TABLE_STORIES_NAME - SIZE_LISTE_LIMIT - -

-
- - -
- diff --git a/doc/dev/dolibarr-dev.sgml b/doc/dev/dolibarr-dev.sgml deleted file mode 100644 index 560768e6252..00000000000 --- a/doc/dev/dolibarr-dev.sgml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - -] -> - - - - - - - Manuel de développement Dolibarr - - Rodolphe Quiédeville - - 0.0.1 - - - - - - &ch-main; - &ch-modules; - &ch-config; - &ch-permissions; - &ch-constantes; - &ch-propale; - &ch-produit; - &ch-theme; - - - - diff --git a/doc/dev/dolidev.sgml b/doc/dev/dolidev.sgml deleted file mode 100644 index 541bc9c7385..00000000000 --- a/doc/dev/dolidev.sgml +++ /dev/null @@ -1,90 +0,0 @@ - - -
- - - -Dolibarr documentation développeur - - Rodolphe Quiédeville - -$Id$ - - -Documentation à l'usage des développeurs de Dolibarr. - - - - - - - - -Configuration -

- Définition des constantes utilisées -

- - -Liste des constantes utilisées dans la configuration -

- - DB_NAME_OSC -

Nom de la base de données d'oscommerce

- - DONS_FORM - FAC_PDF_ADRESSE -

Adresse imprimée sur les factures

-
- FAC_PDF_FAX -

Numéro de Fax imprimé sur les factures

-
- FAC_PDF_SIREN -

Numéro de SIREN affiché sur les factures

-
- MAIN_DEBUG - MAIN_THEME - MAIN_TITLE - MAIN_SPIP_DB -

Nom de la base de données SPIP

-
- MAIN_SPIP_PASS - OSC_CATALOG_URL -

URL du catalogue Oscommerce

-
- OSC_CATALOG_DIRECTORY - OSC_DIRECTORY - OSC_IMAGE_DEFAULT - PN_DB_NAME -

Nom de la base Postnuke

-
- PN_TABLE_STORIES_NAME - SIZE_LISTE_LIMIT - -

-
- -
- - - - -Propositions commerciales - -

- Propositions commerciales -

- - - Modèles -

- Deux modèles de proposition sont fournit avec Dolibarr, mais vous pouvez en créer autant que vous le souhaitez. Pour cela il vous suffit de créer une nouvelle classe dans un fichier dont le nom doit être de la forme pdf_propale_MISC.modules.php où MISC est une chaine de caractère de votre choix. Une fois ce fichier créé la classe qu'il définit doit se nommer pdf_propale_MISC. -

-

- Le nom (MISC) ne doit pas dépasser 50 caractères. -

-
- - - -
diff --git a/doc/dev/main.sgml b/doc/dev/main.sgml deleted file mode 100644 index 0e9389af160..00000000000 --- a/doc/dev/main.sgml +++ /dev/null @@ -1,108 +0,0 @@ - - -Règles générales - -

- Quelques grandes règles. -

- - Développeurs - -

- Participer au développement d'un projet libre implique - d'utiliser les outils mis en place par le mainteneur du - projet. Pour développer sur Dolibarr il faut : -

-

- - lire ce document ;-) - - se créer un compte sur - - s'inscrire sur la - - s'inscrire sur la . Cette liste est est lecture seule, elle permet aux - développeurs de suivre l'activité des commits - - Respecter les notices de copyright, cela inclus la mise - à jour de celles-ci lorsqu'un développeur modifie de façon - conséquente un fichier ou ajoute dans un fichier une - fonctionnalité nouvelles. - - Prendre conscience des contraintes qu'implique - l'utilisation de la GPL comme licence pour le projet, lors de - l'utilisation d'une librairie dans Dolibarr si celle-ci n'est - pas sous GPL discutez-en sur la liste des développeurs au péalable - -

- -

- Ces quelques obligations n'ont pour seul but que le - développement se fasse dans les meilleures conditions possibles. -

-
- - Languages -

- Dolibarr est écrit en PHP version 4, les fichiers doivent tous - comporter l'extention .php -

- -

- Les smart tags PHP ne sont pas utilisés les sections de code - doivent commencer par <?PHP -

- -

- Le javascript et l'appel aux scripts java dans les pages php - est à proscrire. -

- - Scripts externes -

- Les scripts externes sont écrits en Perl, l'utilisation d'un - autre language n'est pas interdit mais doit être discuté au - préalable dans la mailing list des développeurs. Le language - devra être maitrisé par au moins 2 développeurs pour en - assurer la maintenance. -

-
- - Popup -

- Les popup windows ne doivent pas être utilisé. -

-
- - Attributs dans les balises HTML -

- Tous les attributs dans les balises HTML doivent être quottés - avec des doubles quote. -

-
- -
- - -
- diff --git a/doc/dev/modules.sgml b/doc/dev/modules.sgml deleted file mode 100644 index 124fe5a5b8f..00000000000 --- a/doc/dev/modules.sgml +++ /dev/null @@ -1,57 +0,0 @@ - - -Modules - -

- Dolibarr à pour objectif d'être modulaire à terme. -

- - Définition -

- La définition d'un module se fait en incluant une classe dans le - répertoire htdocs/includes/modules. -

- -

- Cette classe est une extension de la classe modDolibarrModules, - son nom doit commencer par le préfixe "mod", la quatrième lettre - étant en majuscule (ex : modFacture, modCommercial) -

- - Définition de la classe -

- La classe doit comporter une fonction d'initialisation qui a - le même nom que la class en elle-même (fonctionnalité de php). -

- -

- Elle comporte les proprietes depends, const et boxes qui sont - toutes trois des tableaux à une ou plusieurs dimensions. -

- -

- Inspirez-vous des classes existantes pour écrire votre propre - classe. -

-
-
- - -
- diff --git a/doc/dev/permissions.sgml b/doc/dev/permissions.sgml deleted file mode 100644 index 58323f88f76..00000000000 --- a/doc/dev/permissions.sgml +++ /dev/null @@ -1,104 +0,0 @@ - - -Permissions - -

- Définition des permissions -

- - Définitions des permissions -

- Chaque permission se voit affecter un id unique, cet id se - décompose en 2 partie, la partie mineur qui identifie le droit - dans sa classe et la partie majeure qui identifie la classe. La - partie mineure et codée de 0 à 9, la partie majeure est codée à - partir de 1. -

- -

- Avant de créer de nouvelles permissions les développeurs doivent - compléter ce document c'est lui et lui seul qui fait office de - réservation et d'inventaire des classes retenues -

-
- - Identification des classes. -

- Tableau d'identification des classes - - 1 - facture - 2 - propositions commerciales - 3 - produits - 4 - projets - 5 - utilisateurs - 6 - fiches d'intervention - 7 - adhérents - 8 - commandes - 9 - comptabilité - 10 - expedition - 11 - banque - 12 - non attribué - -

-
- - Table des permissions -

- -+----+---------------------------------------------------+------------+------+-----------+ -| id | libelle | module | type | bydefault | -+----+---------------------------------------------------+------------+------+-----------+ -| 10 | Tous les droits sur les factures | facture | a | 0 | -| 11 | Lire les factures | facture | r | 1 | -| 12 | Créer modifier les factures | facture | w | 0 | -| 14 | Valider les factures | facture | d | 0 | -| 15 | Envoyer les factures aux clients | facture | d | 0 | -| 16 | Emettre des paiements sur les factures | facture | d | 0 | -| 19 | Supprimer les factures | facture | d | 0 | -| 20 | Tous les droits sur les propositions commerciales | propale | a | 0 | -| 21 | Lire les propositions commerciales | propale | r | 1 | -| 22 | Créer modifier les propositions commerciales | propale | w | 0 | -| 24 | Valider les propositions commerciales | propale | d | 0 | -| 25 | Envoyer les propositions commerciales aux clients | propale | d | 0 | -| 26 | Clôturer les propositions commerciales | propale | d | 0 | -| 27 | Supprimer les propositions commerciales | propale | d | 0 | -| 30 | Tous les droits sur les produits | produit | a | 0 | -| 31 | Lire les produits | produit | r | 1 | -| 32 | Créer modifier les produits | produit | w | 0 | -| 34 | Supprimer les produits | produit | d | 0 | -| 40 | Tous les droits sur les projets | projet | a | 0 | -| 41 | Lire les projets | projet | r | 1 | -| 42 | Créer modifier les projets | projet | w | 0 | -| 44 | Supprimer les projets | projet | d | 0 | -| 60 | Tous les droits sur les fiches d'intervention | ficheinter | a | 0 | -| 61 | Lire les fiches d'intervention | ficheinter | r | 1 | -| 62 | Créer modifier les fiches d'intervention | ficheinter | w | 0 | -| 64 | Supprimer les fiches d'intervention | ficheinter | d | 0 | -| 91 | Gestion banquaire | compta | a | 0 | -| 92 | Gestion charges | compta | a | 0 | -| 93 | Gestion resultat | compta | a | 0 | -+----+---------------------------------------------------+------------+------+-----------+ - - -

-
- - -
- diff --git a/doc/dev/php/html/CMailFile_8class_8php-source.html b/doc/dev/php/html/CMailFile_8class_8php-source.html deleted file mode 100644 index 140687e8af8..00000000000 --- a/doc/dev/php/html/CMailFile_8class_8php-source.html +++ /dev/null @@ -1,158 +0,0 @@ - - -dolibarr: htdocs/lib/CMailFile.class.php Source File - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

htdocs/lib/CMailFile.class.php

Aller à la documentation de ce fichier.
00001 <?php -00002 /* notes from Dan Potter: -00003 Sure. I changed a few other things in here too though. One is that I let -00004 you specify what the destination filename is (i.e., what is shows up as in -00005 the attachment). This is useful since in a web submission you often can't -00006 tell what the filename was supposed to be from the submission itself. I -00007 also added my own version of chunk_split because our production version of -00008 PHP doesn't have it. You can change that back or whatever though =). -00009 Finally, I added an extra "\n" before the message text gets added into the -00010 MIME output because otherwise the message text wasn't showing up. -00011 /* -00012 note: someone mentioned a command-line utility called 'mutt' that -00013 can mail attachments. -00014 */ -00015 /* -00016 If chunk_split works on your system, change the call to my_chunk_split -00017 to chunk_split -00018 */ -00019 /* Note: if you don't have base64_encode on your sytem it will not work */ -00020 -00039 // simple class that encapsulates mail() with addition of mime file attachment. -00040 class CMailFile -00041 { -00042 var $subject; -00043 var $addr_to; -00044 var $addr_cc; -00045 var $text_body; -00046 var $text_encoded; -00047 var $mime_headers; -00048 var $mime_boundary = "--==================_846811060==_"; -00049 var $smtp_headers; -00050 -00063 // CMail("sujet","email_to","email_from","email_msg",tableau du path de fichiers,tableau de type mime,tableau de noms fichiers,"chaine cc") -00064 function CMailFile($subject,$to,$from,$msg,$filename_list,$mimetype_list,$mimefilename_list,$addr_cc = "") -00065 { -00066 $this->subject = $subject; -00067 $this->addr_to = $to; -00068 $this->smtp_headers = $this->write_smtpheaders($from,$addr_cc); -00069 $this->text_body = $this->write_body($msg, $filename_list); -00070 if (count($filename_list)) { -00071 $this->mime_headers = $this->write_mimeheaders($filename_list, $mimefilename_list); -00072 $this->text_encoded = $this->attach_file($filename_list,$mimetype_list,$mimefilename_list); -00073 } -00074 } -00075 -00083 function attach_file($filename_list,$mimetype_list,$mimefilename_list) -00084 { -00085 for ($i = 0; $i < count($filename_list); $i++) { -00086 $encoded = $this->encode_file($filename_list[$i]); -00087 if ($mimefilename_list[$i]) $filename_list[$i] = $mimefilename_list[$i]; -00088 $out = $out . "--" . $this->mime_boundary . "\n"; -00089 if (! $mimetype_list[$i]) { $mimetype_list[$i] = "application/octet-stream"; } -00090 $out = $out . "Content-type: " . $mimetype_list[$i] . "; name=\"$filename_list[$i]\";\n"; -00091 $out = $out . "Content-Transfer-Encoding: base64\n"; -00092 $out = $out . "Content-disposition: attachment; filename=\"$filename_list[$i]\"\n\n"; -00093 $out = $out . $encoded . "\n"; -00094 } -00095 $out = $out . "--" . $this->mime_boundary . "--" . "\n"; -00096 return $out; -00097 // added -- to notify email client attachment is done -00098 } -00099 -00105 function encode_file($sourcefile) -00106 { -00107 // print "<pre> on encode $sourcefile </pre>\n"; -00108 if (is_readable($sourcefile)) -00109 { -00110 $fd = fopen($sourcefile, "r"); -00111 $contents = fread($fd, filesize($sourcefile)); -00112 $encoded = my_chunk_split(base64_encode($contents)); -00113 fclose($fd); -00114 } -00115 return $encoded; -00116 } -00117 -00122 function sendfile() -00123 { -00124 $headers .= $this->smtp_headers . $this->mime_headers; -00125 $message = $this->text_body . $this->text_encoded; -00126 return mail($this->addr_to,$this->subject,stripslashes($message),$headers); -00127 } -00128 -00135 function write_body($msgtext, $filename_list) -00136 { -00137 if (count($filename_list)) -00138 { -00139 $out = "--" . $this->mime_boundary . "\n"; -00140 $out = $out . "Content-Type: text/plain; charset=\"iso8859-15\"\n\n"; -00141 // $out = $out . "Content-Type: text/plain; charset=\"us-ascii\"\n\n"; -00142 } -00143 $out = $out . $msgtext . "\n"; -00144 return $out; -00145 } -00146 -00153 function write_mimeheaders($filename_list, $mimefilename_list) { -00154 $out = "MIME-version: 1.0\n"; -00155 $out = $out . "Content-type: multipart/mixed; "; -00156 $out = $out . "boundary=\"$this->mime_boundary\"\n"; -00157 $out = $out . "Content-transfer-encoding: 7BIT\n"; -00158 for($i = 0; $i < count($filename_list); $i++) { -00159 if ($mimefilename_list[$i]) $filename_list[$i] = $mimefilename_list[$i]; -00160 $out = $out . "X-attachments: $filename_list[$i];\n\n"; -00161 } -00162 return $out; -00163 } -00164 -00171 function write_smtpheaders($addr_from,$addr_cc) -00172 { -00173 $out = "From: $addr_from\n"; -00174 if($addr_cc != "") -00175 $out = $out . "Cc: $addr_cc\n"; -00176 $out = $out . "Reply-To: $addr_from\n"; -00177 $out = $out . "X-Mailer: Dolibarr version " . DOL_VERSION ."\n"; -00178 $out = $out . "X-Sender: $addr_from\n"; -00179 return $out; -00180 } -00181 } -00182 -00190 // usage - mimetype example "image/gif" -00191 // $mailfile = new CMailFile($subject,$sendto,$replyto,$message,$filename,$mimetype); -00192 // $mailfile->sendfile(); -00193 -00194 // Splits a string by RFC2045 semantics (76 chars per line, end with \r\n). -00195 // This is not in all PHP versions so I define one here manuall. -00196 -00197 function my_chunk_split($str) -00198 { -00199 $stmp = $str; -00200 $len = strlen($stmp); -00201 $out = ""; -00202 while ($len > 0) { -00203 if ($len >= 76) { -00204 $out = $out . substr($stmp, 0, 76) . "\r\n"; -00205 $stmp = substr($stmp, 76); -00206 $len = $len - 76; -00207 } -00208 else { -00209 $out = $out . $stmp . "\r\n"; -00210 $stmp = ""; $len = 0; -00211 } -00212 } -00213 return $out; -00214 } -00215 -00216 // end script -00217 ?> -

Généré le Fri Jul 16 08:51:51 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/CMailFile_8class_8php.html b/doc/dev/php/html/CMailFile_8class_8php.html deleted file mode 100644 index 9cd2ca3403c..00000000000 --- a/doc/dev/php/html/CMailFile_8class_8php.html +++ /dev/null @@ -1,79 +0,0 @@ - - -dolibarr: CMailFile.class.php File Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence du fichier htdocs/lib/CMailFile.class.php

Classe permettant d'envoyer des attachements par mail. -Plus de détails... -

- -

-Aller au code source de ce fichier. - - - - - - - - - -

Classes

class  CMailFile
 Classe permettant d'envoyer des attachements par mail. Plus de détails...


Fonctions

 my_chunk_split ($str)
 permet de diviser une chaine (RFC2045)

-


Description détaillée

-Classe permettant d'envoyer des attachements par mail. -

-

Auteur:
Dan Potter.

-Eric Seigne

-Laurent Destailleur.

-
Version:
1.2.
- -

-Définition dans le fichier CMailFile.class.php.


Documentation des fonctions

-

- - - - -
- - - - - - - - - -
my_chunk_split str  ) 
-
- - - - - -
-   - - -

-permet de diviser une chaine (RFC2045) -

-

Paramètres:
- - -
str 
-
-
Remarques:
function chunk_split qui remplace celle de php si nécéssaire

-76 caractères par ligne, terminé par "\r\n"

- -

-Définition à la ligne 197 du fichier CMailFile.class.php. -

-Référencé par CMailFile::encode_file().

-


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/annotated.html b/doc/dev/php/html/annotated.html deleted file mode 100644 index 4f075473805..00000000000 --- a/doc/dev/php/html/annotated.html +++ /dev/null @@ -1,18 +0,0 @@ - - -dolibarr: Annotated Index - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

dolibarr Liste des classes

Liste des classes, structures, unions et interfaces avec une brève description: - - - - -
CMailFileClasse permettant d'envoyer des attachements par mail
DoliDbClasse permettant de gérér la database de dolibarr
vCardClasse permettant de créer un fichier vcard
WebcalClasse permettant d'acceder a la database webcalendar
-
Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/classCMailFile-members.html b/doc/dev/php/html/classCMailFile-members.html deleted file mode 100644 index 18cb3f517ac..00000000000 --- a/doc/dev/php/html/classCMailFile-members.html +++ /dev/null @@ -1,20 +0,0 @@ - - -dolibarr: Liste des membres - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

CMailFile Liste des membres

Liste complète des membres de CMailFile, y compris les membres hérités:

- - - - - - - -
attach_file($filename_list, $mimetype_list, $mimefilename_list)CMailFile
CMailFile($subject, $to, $from, $msg, $filename_list, $mimetype_list, $mimefilename_list, $addr_cc="")CMailFile
encode_file($sourcefile)CMailFile
sendfile()CMailFile
write_body($msgtext, $filename_list)CMailFile
write_mimeheaders($filename_list, $mimefilename_list)CMailFile
write_smtpheaders($addr_from, $addr_cc)CMailFile


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/classCMailFile.html b/doc/dev/php/html/classCMailFile.html deleted file mode 100644 index 4ab2dddf6d2..00000000000 --- a/doc/dev/php/html/classCMailFile.html +++ /dev/null @@ -1,400 +0,0 @@ - - -dolibarr: CMailFile class Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence de la classe CMailFile

Classe permettant d'envoyer des attachements par mail. -Plus de détails... -

-Liste de tous les membres - - - - - - - - - - - - - - - - - - - - - - - -

Fonctions membres publiques

 CMailFile ($subject, $to, $from, $msg, $filename_list, $mimetype_list, $mimefilename_list, $addr_cc="")
 CMailFile.

 attach_file ($filename_list, $mimetype_list, $mimefilename_list)
 permet d'attacher un fichier

 encode_file ($sourcefile)
 permet d'encoder un fichier

sendfile ()
 permet d'envoyer un fichier

 write_body ($msgtext, $filename_list)
 permet d'ecrire le body d'un message

 write_mimeheaders ($filename_list, $mimefilename_list)
 création des headers mime

 write_smtpheaders ($addr_from, $addr_cc)
 création des headers smtp

-


Description détaillée

-Classe permettant d'envoyer des attachements par mail. -

-

Remarques:
Eric Seigne <eric.seigne@ryxeo.com> 2004.01.08

-ajout de la gestion des cc:

-ajout de l'expedition de plusieurs fichiers

-Laurent Destailleur 2004.02.10

-correction d'un disfonctionnement à la gestion des attachements multiples

- -

- -

-Définition à la ligne 40 du fichier CMailFile.class.php.


Documentation des contructeurs et destructeur

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CMailFile::CMailFile subject,
to,
from,
msg,
filename_list,
mimetype_list,
mimefilename_list,
addr_cc = ""
-
- - - - - -
-   - - -

-CMailFile. -

-

Paramètres:
- - - - - - - - - -
subject 
to 
from 
msg 
filename_list 
mimetype_list 
mimefilename_list 
addr_cc 
-
- -

-Définition à la ligne 64 du fichier CMailFile.class.php. -

-Références attach_file(), write_body(), write_mimeheaders(), et write_smtpheaders().

-


Documentation des fonctions membres

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
CMailFile::attach_file filename_list,
mimetype_list,
mimefilename_list
-
- - - - - -
-   - - -

-permet d'attacher un fichier -

-

Paramètres:
- - - - -
filename_list 
mimetype_list 
mimefilename_list 
-
- -

-Définition à la ligne 83 du fichier CMailFile.class.php. -

-Références attach_file(), et encode_file(). -

-Référencé par attach_file(), et CMailFile().

-

- - - - -
- - - - - - - - - -
CMailFile::encode_file sourcefile  ) 
-
- - - - - -
-   - - -

-permet d'encoder un fichier -

-

Paramètres:
- - -
sourcefile 
-
- -

-Définition à la ligne 105 du fichier CMailFile.class.php. -

-Références encode_file(), et my_chunk_split(). -

-Référencé par attach_file(), et encode_file().

-

- - - - -
- - - - - - - - - - - - - - - - - - -
CMailFile::write_body msgtext,
filename_list
-
- - - - - -
-   - - -

-permet d'ecrire le body d'un message -

-

Paramètres:
- - - -
msgtext 
filename_list 
-
- -

-Définition à la ligne 135 du fichier CMailFile.class.php. -

-Références write_body(). -

-Référencé par CMailFile(), et write_body().

-

- - - - -
- - - - - - - - - - - - - - - - - - -
CMailFile::write_mimeheaders filename_list,
mimefilename_list
-
- - - - - -
-   - - -

-création des headers mime -

-

Paramètres:
- - - -
filename_list 
mimefilename_list 
-
- -

-Définition à la ligne 153 du fichier CMailFile.class.php. -

-Références write_mimeheaders(). -

-Référencé par CMailFile(), et write_mimeheaders().

-

- - - - -
- - - - - - - - - - - - - - - - - - -
CMailFile::write_smtpheaders addr_from,
addr_cc
-
- - - - - -
-   - - -

-création des headers smtp -

-

Paramètres:
- - - -
addr_from 
addr_cc 
-
- -

-Définition à la ligne 171 du fichier CMailFile.class.php. -

-Références write_smtpheaders(). -

-Référencé par CMailFile(), et write_smtpheaders().

-


La documentation de cette classe a été générée à partir du fichier suivant: -
Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/classDoliDb-members.html b/doc/dev/php/html/classDoliDb-members.html deleted file mode 100644 index 19df604fea8..00000000000 --- a/doc/dev/php/html/classDoliDb-members.html +++ /dev/null @@ -1,39 +0,0 @@ - - -dolibarr: Liste des membres - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

DoliDb Liste des membres

Liste complète des membres de DoliDb, y compris les membres hérités:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
affected_rows()DoliDb
begin($do=1)DoliDb
clone()DoliDb
close()DoliDb
commit($do=1)DoliDb
connect($host, $login, $passwd)DoliDb
create_db($database)DoliDb
DoliDb($type= 'mysql', $host= '', $user= '', $pass= '', $name= '')DoliDb
errno()DoliDb
error()DoliDb
fetch_array()DoliDb
fetch_field()DoliDb
fetch_object()DoliDb
fetch_row()DoliDb
free()DoliDb
idate($fname)DoliDb
last_insert_id()DoliDb
list_tables($database)DoliDb
num_fields()DoliDb
num_rows()DoliDb
pconnect($host, $login, $passwd)DoliDb
plimit($limit=0, $offset=0)DoliDb
query($query, $limit="", $offset="")DoliDb
result($nb, $fieldname)DoliDb
rollback($do=1)DoliDb
select_db($database)DoliDb


Généré le Fri Jul 16 08:51:53 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/classDoliDb.html b/doc/dev/php/html/classDoliDb.html deleted file mode 100644 index 7475043e140..00000000000 --- a/doc/dev/php/html/classDoliDb.html +++ /dev/null @@ -1,1138 +0,0 @@ - - -dolibarr: DoliDb class Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence de la classe DoliDb

Classe permettant de gérér la database de dolibarr. -Plus de détails... -

-Liste de tous les membres - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Fonctions membres publiques

 DoliDb ($type= 'mysql', $host= '', $user= '', $pass= '', $name= '')
 ouverture d'une connection vers le serveur et/ou une database.

 select_db ($database)
 selectionne une database.

 connect ($host, $login, $passwd)
 connection vers une database.

 create_db ($database)
 création d'une database.

 clone ()
 copie d'une database.

 pconnect ($host, $login, $passwd)
 ouverture d'une connection vers une database.

 close ()
 fermeture d'une connection vers une database.

 begin ($do=1)
 debut d'une transaction.

 commit ($do=1)
 écriture d'une transaction.

 rollback ($do=1)
 éffacement d'une transaction et retour au ancienne valeurs.

 query ($query, $limit="", $offset="")
 requete vers une database.

 list_tables ($database)
 liste des tables dans une database.

 result ($nb, $fieldname)
 renvoie les données de la requete.

 free ()
 désalloue la memoire de la requete.

 fetch_object ()
 renvoie les données comme un objet.

 plimit ($limit=0, $offset=0)
 défini les limites de la requète.

 idate ($fname)
 formatage de la date en fonction des locales.

 fetch_array ()
 renvoie les données dans un tableau.

 fetch_row ()
 renvoie les données comme un tableau.

fetch_field ()
 obtient les données d'un colonne et renvoie les données sous forme d'objet.

 num_rows ()
 renvoie le nombre de lignes dans le resultat de la requete.

 num_fields ()
 renvoie le nombre de champs dans le resultat de la requete.

 error ()
 renvoie le texte de l'erreur mysql de l'operation precedente.

 errno ()
 renvoie la valeur numerique de l'erreur mysql de l'operation precedente.

 last_insert_id ()
 obtient l'id genéré par le précedent INSERT.

 affected_rows ()
 obtient le nombre de lignes affectées dans la précédente opération.

-


Description détaillée

-Classe permettant de gérér la database de dolibarr. -

-Ensemble des fonctions permettant de gérer la database de dolibarr -

- -

-Définition à la ligne 41 du fichier mysql.lib.php.


Documentation des contructeurs et destructeur

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DoliDb::DoliDb type = 'mysql',
host = '',
user = '',
pass = '',
name = ''
-
- - - - - -
-   - - -

-ouverture d'une connection vers le serveur et/ou une database. -

-

Paramètres:
- - - - - - -
type type de base de données (mysql ou pgsql)
host addresse de la base de données
user nom de l'utilisateur autorisé
pass mot de passe
name nom de la database
-
- -

-Définition à la ligne 57 du fichier mysql.lib.php. -

-Références connect(), et select_db().

-


Documentation des fonctions membres

-

- - - - -
- - - - - - - - -
DoliDb::affected_rows  ) 
-
- - - - - -
-   - - -

-obtient le nombre de lignes affectées dans la précédente opération. -

-

Renvoie:
rows
- -

-Définition à la ligne 448 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - - -
DoliDb::begin do = 1  ) 
-
- - - - - -
-   - - -

-debut d'une transaction. -

-

Paramètres:
- - -
do 
-
-
Renvoie:
string
- -

-Définition à la ligne 216 du fichier mysql.lib.php. -

-Références begin(), et query(). -

-Référencé par begin().

-

- - - - -
- - - - - - - - -
DoliDb::clone  ) 
-
- - - - - -
-   - - -

-copie d'une database. -

-

Renvoie:
resource
- -

-Définition à la ligne 179 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - -
DoliDb::close  ) 
-
- - - - - -
-   - - -

-fermeture d'une connection vers une database. -

-

Renvoie:
resource
- -

-Définition à la ligne 205 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - - -
DoliDb::commit do = 1  ) 
-
- - - - - -
-   - - -

-écriture d'une transaction. -

-

Paramètres:
- - -
do 
-
-
Renvoie:
string
- -

-Définition à la ligne 234 du fichier mysql.lib.php. -

-Références commit(), et query(). -

-Référencé par commit().

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
DoliDb::connect host,
login,
passwd
-
- - - - - -
-   - - -

-connection vers une database. -

-

Paramètres:
- - - - -
host addresse de la base de données
login nom de l'utilisateur autorisé
passwd mot de passe
-
-
Renvoie:
resource
- -

-Définition à la ligne 149 du fichier mysql.lib.php. -

-Références connect(). -

-Référencé par connect(), et DoliDb().

-

- - - - -
- - - - - - - - - -
DoliDb::create_db database  ) 
-
- - - - - -
-   - - -

-création d'une database. -

-

Paramètres:
- - -
database nom de la database
-
-
Renvoie:
result resultat 1 pour ok, 0 pour non ok
- -

-Définition à la ligne 162 du fichier mysql.lib.php. -

-Références create_db(). -

-Référencé par create_db().

-

- - - - -
- - - - - - - - -
DoliDb::errno  ) 
-
- - - - - -
-   - - -

-renvoie la valeur numerique de l'erreur mysql de l'operation precedente. -

-

Renvoie:
error_num
- -

-Définition à la ligne 425 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - -
DoliDb::error  ) 
-
- - - - - -
-   - - -

-renvoie le texte de l'erreur mysql de l'operation precedente. -

-

Renvoie:
error_text
- -

-Définition à la ligne 415 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - -
DoliDb::fetch_array  ) 
-
- - - - - -
-   - - -

-renvoie les données dans un tableau. -

-

Renvoie:
array
- -

-Définition à la ligne 365 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - -
DoliDb::fetch_object  ) 
-
- - - - - -
-   - - -

-renvoie les données comme un objet. -

-

Renvoie:
resource
- -

-Définition à la ligne 319 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - -
DoliDb::fetch_row  ) 
-
- - - - - -
-   - - -

-renvoie les données comme un tableau. -

-

Renvoie:
array
- -

-Définition à la ligne 375 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - -
DoliDb::free  ) 
-
- - - - - -
-   - - -

-désalloue la memoire de la requete. -

-

Renvoie:
resource
- -

-Définition à la ligne 309 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - - -
DoliDb::idate fname  ) 
-
- - - - - -
-   - - -

-formatage de la date en fonction des locales. -

-

Paramètres:
- - -
fname 
-
-
Renvoie:
date
- -

-Définition à la ligne 355 du fichier mysql.lib.php. -

-Références idate(). -

-Référencé par idate().

-

- - - - -
- - - - - - - - -
DoliDb::last_insert_id  ) 
-
- - - - - -
-   - - -

-obtient l'id genéré par le précedent INSERT. -

-

Renvoie:
id
- -

-Définition à la ligne 438 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - - -
DoliDb::list_tables database  ) 
-
- - - - - -
-   - - -

-liste des tables dans une database. -

-

Paramètres:
- - -
database nom de la database
-
-
Renvoie:
resource
- -

-Définition à la ligne 286 du fichier mysql.lib.php. -

-Références list_tables(). -

-Référencé par list_tables().

-

- - - - -
- - - - - - - - -
DoliDb::num_fields  ) 
-
- - - - - -
-   - - -

-renvoie le nombre de champs dans le resultat de la requete. -

-

Renvoie:
int
- -

-Définition à la ligne 405 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - -
DoliDb::num_rows  ) 
-
- - - - - -
-   - - -

-renvoie le nombre de lignes dans le resultat de la requete. -

-

Renvoie:
int
- -

-Définition à la ligne 395 du fichier mysql.lib.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
DoliDb::pconnect host,
login,
passwd
-
- - - - - -
-   - - -

-ouverture d'une connection vers une database. -

-

Paramètres:
- - - - -
host addresse de la base de données
login nom de l'utilisateur autorisé
passwd mot de passe
-
-
Renvoie:
resource
- -

-Définition à la ligne 194 du fichier mysql.lib.php. -

-Références pconnect(). -

-Référencé par pconnect().

-

- - - - -
- - - - - - - - - - - - - - - - - - -
DoliDb::plimit limit = 0,
offset = 0
-
- - - - - -
-   - - -

-défini les limites de la requète. -

-

Paramètres:
- - - -
limit 
offset 
-
-
Renvoie:
limit
- -

-Définition à la ligne 331 du fichier mysql.lib.php. -

-Références plimit(). -

-Référencé par plimit().

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
DoliDb::query query,
limit = "",
offset = ""
-
- - - - - -
-   - - -

-requete vers une database. -

-

Paramètres:
- - - - -
query contenu de la query
limit 
offset 
-
-
Renvoie:
resource
- -

-Définition à la ligne 272 du fichier mysql.lib.php. -

-Références query(). -

-Référencé par begin(), commit(), query(), et rollback().

-

- - - - -
- - - - - - - - - - - - - - - - - - -
DoliDb::result nb,
fieldname
-
- - - - - -
-   - - -

-renvoie les données de la requete. -

-

Paramètres:
- - - -
nb contenu de la query
fieldname nom du champ
-
-
Renvoie:
resource
- -

-Définition à la ligne 299 du fichier mysql.lib.php. -

-Références result(). -

-Référencé par result().

-

- - - - -
- - - - - - - - - -
DoliDb::rollback do = 1  ) 
-
- - - - - -
-   - - -

-éffacement d'une transaction et retour au ancienne valeurs. -

-

Paramètres:
- - -
do 
-
-
Renvoie:
string
- -

-Définition à la ligne 252 du fichier mysql.lib.php. -

-Références query(), et rollback(). -

-Référencé par rollback().

-

- - - - -
- - - - - - - - - -
DoliDb::select_db database  ) 
-
- - - - - -
-   - - -

-selectionne une database. -

-

Paramètres:
- - -
database nom de la database
-
-
Renvoie:
resource
- -

-Définition à la ligne 136 du fichier mysql.lib.php. -

-Références select_db(). -

-Référencé par DoliDb(), et select_db().

-


La documentation de cette classe a été générée à partir du fichier suivant: -
Généré le Fri Jul 16 08:51:53 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/classWebcal-members.html b/doc/dev/php/html/classWebcal-members.html deleted file mode 100644 index 7d01c1c3fb7..00000000000 --- a/doc/dev/php/html/classWebcal-members.html +++ /dev/null @@ -1,16 +0,0 @@ - - -dolibarr: Liste des membres - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Webcal Liste des membres

Liste complète des membres de Webcal, y compris les membres hérités:

- - - -
add($user, $date, $texte, $desc)Webcal
get_next_id()Webcal
Webcal()Webcal


Généré le Fri Jul 16 08:51:53 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/classWebcal.html b/doc/dev/php/html/classWebcal.html deleted file mode 100644 index 97b8fc592d5..00000000000 --- a/doc/dev/php/html/classWebcal.html +++ /dev/null @@ -1,142 +0,0 @@ - - -dolibarr: Webcal class Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence de la classe Webcal

Classe permettant d'acceder a la database webcalendar. -Plus de détails... -

-Liste de tous les membres - - - - - - - - - - - -

Fonctions membres publiques

Webcal ()
 Permet de se connecter a la database webcalendar.

 add ($user, $date, $texte, $desc)
 ajoute une entree dans le calendrier de l'utilsateur

 get_next_id ()
 obtient l'id suivant dans le webcalendar

-


Description détaillée

-Classe permettant d'acceder a la database webcalendar. -

-Ensemble des fonctions permettant d'acceder a la database webcalendar -

- -

-Définition à la ligne 37 du fichier webcal.class.php.


Documentation des fonctions membres

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Webcal::add user,
date,
texte,
desc
-
- - - - - -
-   - - -

-ajoute une entree dans le calendrier de l'utilsateur -

-

Paramètres:
- - - - - -
[in] user le login de l'utilisateur
[in] date la date de l'evenement dans le calendrier
[in] texte le titre a indiquer dans l'evenement
[in] desc la description a indiquer dans l'evenement
-
- -

-Définition à la ligne 65 du fichier webcal.class.php. -

-Références add(), et get_next_id(). -

-Référencé par add().

-

- - - - -
- - - - - - - - -
Webcal::get_next_id  ) 
-
- - - - - -
-   - - -

-obtient l'id suivant dans le webcalendar -

-

Valeurs retournées:
- - -
id retourne l'id suivant dans le webcalendar
-
- -

-Définition à la ligne 118 du fichier webcal.class.php. -

-Référencé par add().

-


La documentation de cette classe a été générée à partir du fichier suivant: -
Généré le Fri Jul 16 08:51:53 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/class_8jabber_8php-source.html b/doc/dev/php/html/class_8jabber_8php-source.html deleted file mode 100644 index 280ab7af597..00000000000 --- a/doc/dev/php/html/class_8jabber_8php-source.html +++ /dev/null @@ -1,1886 +0,0 @@ - - -dolibarr: htdocs/lib/jabber/class.jabber.php Source File - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

htdocs/lib/jabber/class.jabber.php

Aller à la documentation de ce fichier.
00001 <?php -00002 -00003 /*************************************************************************** -00004 -00005 Class.Jabber.PHP v0.4 -00006 (c) 2002 Carlo "Gossip" Zottmann -00007 http://phpjabber.g-blog.net *** gossip@jabber.g-blog.net -00008 -00009 The FULL documentation and examples for this software can be found at -00010 http://phpjabber.g-blog.net (not many doc comments in here, sorry) -00011 -00012 last modified: 27.04.2003 13:01:53 CET -00013 -00014 ***************************************************************************/ -00015 -00016 /*************************************************************************** -00017 * -00018 -00019 * -00020 ***************************************************************************/ -00021 -00022 /* -00023 Jabber::Connect() -00024 Jabber::Disconnect() -00025 Jabber::SendAuth() -00026 Jabber::AccountRegistration($reg_email {string}, $reg_name {string}) -00027 -00028 Jabber::Listen() -00029 Jabber::SendPacket($xml {string}) -00030 -00031 Jabber::RosterUpdate() -00032 Jabber::RosterAddUser($jid {string}, $id {string}, $name {string}) -00033 Jabber::RosterRemoveUser($jid {string}, $id {string}) -00034 Jabber::RosterExistsJID($jid {string}) -00035 -00036 Jabber::Subscribe($jid {string}) -00037 Jabber::Unsubscribe($jid {string}) -00038 -00039 Jabber::CallHandler($message {array}) -00040 Jabber::CruiseControl([$seconds {number}]) -00041 -00042 Jabber::SubscriptionApproveRequest($to {string}) -00043 Jabber::SubscriptionDenyRequest($to {string}) -00044 -00045 Jabber::GetFirstFromQueue() -00046 Jabber::GetFromQueueById($packet_type {string}, $id {string}) -00047 -00048 Jabber::SendMessage($to {string}, $id {number}, $type {string}, $content {array}[, $payload {array}]) -00049 Jabber::SendIq($to {string}, $type {string}, $id {string}, $xmlns {string}[, $payload {string}]) -00050 Jabber::SendPresence($type {string}[, $to {string}[, $status {string}[, $show {string}[, $priority {number}]]]]) -00051 -00052 Jabber::SendError($to {string}, $id {string}, $error_number {number}[, $error_message {string}]) -00053 -00054 Jabber::TransportRegistrationDetails($transport {string}) -00055 Jabber::TransportRegistration($transport {string}, $details {array}) -00056 -00057 Jabber::GetvCard($jid {string}[, $id {string}]) -- EXPERIMENTAL -- -00058 -00059 Jabber::GetInfoFromMessageFrom($packet {array}) -00060 Jabber::GetInfoFromMessageType($packet {array}) -00061 Jabber::GetInfoFromMessageId($packet {array}) -00062 Jabber::GetInfoFromMessageThread($packet {array}) -00063 Jabber::GetInfoFromMessageSubject($packet {array}) -00064 Jabber::GetInfoFromMessageBody($packet {array}) -00065 Jabber::GetInfoFromMessageError($packet {array}) -00066 -00067 Jabber::GetInfoFromIqFrom($packet {array}) -00068 Jabber::GetInfoFromIqType($packet {array}) -00069 Jabber::GetInfoFromIqId($packet {array}) -00070 Jabber::GetInfoFromIqKey($packet {array}) -00071 Jabber::GetInfoFromIqError($packet {array}) -00072 -00073 Jabber::GetInfoFromPresenceFrom($packet {array}) -00074 Jabber::GetInfoFromPresenceType($packet {array}) -00075 Jabber::GetInfoFromPresenceStatus($packet {array}) -00076 Jabber::GetInfoFromPresenceShow($packet {array}) -00077 Jabber::GetInfoFromPresencePriority($packet {array}) -00078 -00079 Jabber::AddToLog($string {string}) -00080 Jabber::PrintLog() -00081 -00082 MakeXML::AddPacketDetails($string {string}[, $value {string/number}]) -00083 MakeXML::BuildPacket([$array {array}]) -00084 */ -00085 -00095 class Jabber -00096 { -00097 var $server; -00098 var $port; -00099 var $username; -00100 var $password; -00101 var $resource; -00102 var $jid; -00103 -00104 var $connection; -00105 var $delay_disconnect; -00106 -00107 var $stream_id; -00108 var $roster; -00109 -00110 var $enable_logging; -00111 var $log_array; -00112 var $log_filename; -00113 var $log_filehandler; -00114 -00115 var $iq_sleep_timer; -00116 var $last_ping_time; -00117 -00118 var $packet_queue; -00119 var $subscription_queue; -00120 -00121 var $iq_version_name; -00122 var $iq_version_os; -00123 var $iq_version_version; -00124 -00125 var $error_codes; -00126 -00127 var $connected; -00128 var $keep_alive_id; -00129 var $returned_keep_alive; -00130 var $txnid; -00131 -00132 var $CONNECTOR; -00133 -00134 -00135 -00136 function Jabber() -00137 { -00138 $this->server = "localhost"; -00139 $this->port = "5222"; -00140 -00141 $this->username = "larry"; -00142 $this->password = "curly"; -00143 $this->resource = NULL; -00144 -00145 $this->enable_logging = FALSE; -00146 $this->log_array = array(); -00147 $this->log_filename = ''; -00148 $this->log_filehandler = FALSE; -00149 -00150 $this->packet_queue = array(); -00151 $this->subscription_queue = array(); -00152 -00153 $this->iq_sleep_timer = 1; -00154 $this->delay_disconnect = 1; -00155 -00156 $this->returned_keep_alive = TRUE; -00157 $this->txnid = 0; -00158 -00159 $this->iq_version_name = "Class.Jabber.PHP -- http://phpjabber.g-blog.net -- by Carlo 'Gossip' Zottmann, gossip@jabber.g-blog.net"; -00160 $this->iq_version_version = "0.4"; -00161 $this->iq_version_os = $_SERVER['SERVER_SOFTWARE']; -00162 -00163 $this->connection_class = "CJP_StandardConnector"; -00164 -00165 $this->error_codes = array(400 => "Bad Request", -00166 401 => "Unauthorized", -00167 402 => "Payment Required", -00168 403 => "Forbidden", -00169 404 => "Not Found", -00170 405 => "Not Allowed", -00171 406 => "Not Acceptable", -00172 407 => "Registration Required", -00173 408 => "Request Timeout", -00174 409 => "Conflict", -00175 500 => "Internal Server Error", -00176 501 => "Not Implemented", -00177 502 => "Remove Server Error", -00178 503 => "Service Unavailable", -00179 504 => "Remove Server Timeout", -00180 510 => "Disconnected"); -00181 } -00182 -00183 -00184 -00185 function Connect() -00186 { -00187 $this->_create_logfile(); -00188 -00189 $this->CONNECTOR = new $this->connection_class; -00190 -00191 if ($this->CONNECTOR->OpenSocket($this->server, $this->port)) -00192 { -00193 $this->SendPacket("<?xml version='1.0' encoding='UTF-8' ?" . ">\n"); -00194 $this->SendPacket("<stream:stream to='{$this->server}' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>\n"); -00195 -00196 sleep(2); -00197 -00198 if ($this->_check_connected()) -00199 { -00200 $this->connected = TRUE; // Nathan Fritz -00201 return TRUE; -00202 } -00203 else -00204 { -00205 $this->AddToLog("ERROR: Connect() #1"); -00206 return FALSE; -00207 } -00208 } -00209 else -00210 { -00211 $this->AddToLog("ERROR: Connect() #2"); -00212 return FALSE; -00213 } -00214 } -00215 -00216 -00217 -00218 function Disconnect() -00219 { -00220 if (is_int($this->delay_disconnect)) -00221 { -00222 sleep($this->delay_disconnect); -00223 } -00224 -00225 $this->SendPacket("</stream:stream>"); -00226 $this->CONNECTOR->CloseSocket(); -00227 -00228 $this->_close_logfile(); -00229 $this->PrintLog(); -00230 } -00231 -00232 -00233 -00234 function SendAuth() -00235 { -00236 $this->auth_id = "auth_" . md5(time() . $_SERVER['REMOTE_ADDR']); -00237 -00238 $this->resource = ($this->resource != NULL) ? $this->resource : ("Class.Jabber.PHP " . md5($this->auth_id)); -00239 $this->jid = "{$this->username}@{$this->server}/{$this->resource}"; -00240 -00241 // request available authentication methods -00242 $payload = "<username>{$this->username}</username>"; -00243 $packet = $this->SendIq(NULL, 'get', $this->auth_id, "jabber:iq:auth", $payload); -00244 -00245 // was a result returned? -00246 if ($this->GetInfoFromIqType($packet) == 'result' && $this->GetInfoFromIqId($packet) == $this->auth_id) -00247 { -00248 // yes, now check for auth method availability in descending order (best to worst) -00249 -00250 if (!function_exists(mhash)) -00251 { -00252 $this->AddToLog("ATTENTION: SendAuth() - mhash() is not available; screw 0k and digest method, we need to go with plaintext auth"); -00253 } -00254 -00255 // auth_0k -00256 if (function_exists(mhash) && isset($packet['iq']['#']['query'][0]['#']['sequence'][0]["#"]) && isset($packet['iq']['#']['query'][0]['#']['token'][0]["#"])) -00257 { -00258 return $this->_sendauth_0k($packet['iq']['#']['query'][0]['#']['token'][0]["#"], $packet['iq']['#']['query'][0]['#']['sequence'][0]["#"]); -00259 } -00260 // digest -00261 elseif (function_exists(mhash) && isset($packet['iq']['#']['query'][0]['#']['digest'])) -00262 { -00263 return $this->_sendauth_digest(); -00264 } -00265 // plain text -00266 elseif ($packet['iq']['#']['query'][0]['#']['password']) -00267 { -00268 return $this->_sendauth_plaintext(); -00269 } -00270 // dude, you're fucked -00271 { -00272 $this->AddToLog("ERROR: SendAuth() #2 - No auth method available!"); -00273 return FALSE; -00274 } -00275 } -00276 else -00277 { -00278 // no result returned -00279 $this->AddToLog("ERROR: SendAuth() #1"); -00280 return FALSE; -00281 } -00282 } -00283 -00284 -00285 -00286 function AccountRegistration($reg_email = NULL, $reg_name = NULL) -00287 { -00288 $packet = $this->SendIq($this->server, 'get', 'reg_01', 'jabber:iq:register'); -00289 -00290 if ($packet) -00291 { -00292 $key = $this->GetInfoFromIqKey($packet); // just in case a key was passed back from the server -00293 unset($packet); -00294 -00295 $payload = "<username>{$this->username}</username> -00296 <password>{$this->password}</password> -00297 <email>$reg_email</email> -00298 <name>$reg_name</name>\n"; -00299 -00300 $payload .= ($key) ? "<key>$key</key>\n" : ''; -00301 -00302 $packet = $this->SendIq($this->server, 'set', "reg_01", "jabber:iq:register", $payload); -00303 -00304 if ($this->GetInfoFromIqType($packet) == 'result') -00305 { -00306 if (isset($packet['iq']['#']['query'][0]['#']['registered'][0]['#'])) -00307 { -00308 $return_code = 1; -00309 } -00310 else -00311 { -00312 $return_code = 2; -00313 } -00314 -00315 if ($this->resource) -00316 { -00317 $this->jid = "{$this->username}@{$this->server}/{$this->resource}"; -00318 } -00319 else -00320 { -00321 $this->jid = "{$this->username}@{$this->server}"; -00322 } -00323 -00324 } -00325 elseif ($this->GetInfoFromIqType($packet) == 'error' && isset($packet['iq']['#']['error'][0]['#'])) -00326 { -00327 // "conflict" error, i.e. already registered -00328 if ($packet['iq']['#']['error'][0]['@']['code'] == '409') -00329 { -00330 $return_code = 1; -00331 } -00332 else -00333 { -00334 $return_code = "Error " . $packet['iq']['#']['error'][0]['@']['code'] . ": " . $packet['iq']['#']['error'][0]['#']; -00335 } -00336 } -00337 -00338 return $return_code; -00339 -00340 } -00341 else -00342 { -00343 return 3; -00344 } -00345 } -00346 -00347 -00348 -00349 function SendPacket($xml) -00350 { -00351 $xml = trim($xml); -00352 -00353 if ($this->CONNECTOR->WriteToSocket($xml)) -00354 { -00355 $this->AddToLog("SEND: $xml"); -00356 return TRUE; -00357 } -00358 else -00359 { -00360 $this->AddToLog('ERROR: SendPacket() #1'); -00361 return FALSE; -00362 } -00363 } -00364 -00365 -00366 -00367 function Listen() -00368 { -00369 unset($incoming); -00370 -00371 while ($line = $this->CONNECTOR->ReadFromSocket(4096)) -00372 { -00373 $incoming .= $line; -00374 } -00375 -00376 $incoming = trim($incoming); -00377 -00378 if ($incoming != "") -00379 { -00380 $this->AddToLog("RECV: $incoming"); -00381 } -00382 -00383 if ($incoming != "") -00384 { -00385 $temp = $this->_split_incoming($incoming); -00386 -00387 for ($a = 0; $a < count($temp); $a++) -00388 { -00389 $this->packet_queue[] = $this->xmlize($temp[$a]); -00390 } -00391 } -00392 -00393 return TRUE; -00394 } -00395 -00396 -00397 -00398 function StripJID($jid = NULL) -00399 { -00400 preg_match("/(.*)\/(.*)/Ui", $jid, $temp); -00401 return ($temp[1] != "") ? $temp[1] : $jid; -00402 } -00403 -00404 -00405 -00406 function SendMessage($to, $type = "normal", $id = NULL, $content = NULL, $payload = NULL) -00407 { -00408 if ($to && is_array($content)) -00409 { -00410 if (!$id) -00411 { -00412 $id = $type . "_" . time(); -00413 } -00414 -00415 $content = $this->_array_htmlspecialchars($content); -00416 -00417 $xml = "<message to='$to' type='$type' id='$id'>\n"; -00418 -00419 if ($content['subject']) -00420 { -00421 $xml .= "<subject>" . $content['subject'] . "</subject>\n"; -00422 } -00423 -00424 if ($content['thread']) -00425 { -00426 $xml .= "<thread>" . $content['thread'] . "</thread>\n"; -00427 } -00428 -00429 $xml .= "<body>" . $content['body'] . "</body>\n"; -00430 $xml .= $payload; -00431 $xml .= "</message>\n"; -00432 -00433 -00434 if ($this->SendPacket($xml)) -00435 { -00436 return TRUE; -00437 } -00438 else -00439 { -00440 $this->AddToLog("ERROR: SendMessage() #1"); -00441 return FALSE; -00442 } -00443 } -00444 else -00445 { -00446 $this->AddToLog("ERROR: SendMessage() #2"); -00447 return FALSE; -00448 } -00449 } -00450 -00451 -00452 -00453 function SendPresence($type = NULL, $to = NULL, $status = NULL, $show = NULL, $priority = NULL) -00454 { -00455 $xml = "<presence"; -00456 $xml .= ($to) ? " to='$to'" : ''; -00457 $xml .= ($type) ? " type='$type'" : ''; -00458 $xml .= ($status || $show || $priority) ? ">\n" : " />\n"; -00459 -00460 $xml .= ($status) ? " <status>$status</status>\n" : ''; -00461 $xml .= ($show) ? " <show>$show</show>\n" : ''; -00462 $xml .= ($priority) ? " <priority>$priority</priority>\n" : ''; -00463 -00464 $xml .= ($status || $show || $priority) ? "</presence>\n" : ''; -00465 -00466 if ($this->SendPacket($xml)) -00467 { -00468 return TRUE; -00469 } -00470 else -00471 { -00472 $this->AddToLog("ERROR: SendPresence() #1"); -00473 return FALSE; -00474 } -00475 } -00476 -00477 -00478 -00479 function SendError($to, $id = NULL, $error_number, $error_message = NULL) -00480 { -00481 $xml = "<iq type='error' to='$to'"; -00482 $xml .= ($id) ? " id='$id'" : ''; -00483 $xml .= ">\n"; -00484 $xml .= " <error code='$error_number'>"; -00485 $xml .= ($error_message) ? $error_message : $this->error_codes[$error_number]; -00486 $xml .= "</error>\n"; -00487 $xml .= "</iq>"; -00488 -00489 $this->SendPacket($xml); -00490 } -00491 -00492 -00493 -00494 function RosterUpdate() -00495 { -00496 $roster_request_id = "roster_" . time(); -00497 -00498 $incoming_array = $this->SendIq(NULL, 'get', $roster_request_id, "jabber:iq:roster"); -00499 -00500 if (is_array($incoming_array)) -00501 { -00502 if ($incoming_array['iq']['@']['type'] == 'result' -00503 && $incoming_array['iq']['@']['id'] == $roster_request_id -00504 && $incoming_array['iq']['#']['query']['0']['@']['xmlns'] == "jabber:iq:roster") -00505 { -00506 $number_of_contacts = count($incoming_array['iq']['#']['query'][0]['#']['item']); -00507 $this->roster = array(); -00508 -00509 for ($a = 0; $a < $number_of_contacts; $a++) -00510 { -00511 $this->roster[$a] = array( "jid" => strtolower($incoming_array['iq']['#']['query'][0]['#']['item'][$a]['@']['jid']), -00512 "name" => $incoming_array['iq']['#']['query'][0]['#']['item'][$a]['@']['name'], -00513 "subscription" => $incoming_array['iq']['#']['query'][0]['#']['item'][$a]['@']['subscription'], -00514 "group" => $incoming_array['iq']['#']['query'][0]['#']['item'][$a]['#']['group'][0]['#'] -00515 ); -00516 } -00517 -00518 return TRUE; -00519 } -00520 else -00521 { -00522 $this->AddToLog("ERROR: RosterUpdate() #1"); -00523 return FALSE; -00524 } -00525 } -00526 else -00527 { -00528 $this->AddToLog("ERROR: RosterUpdate() #2"); -00529 return FALSE; -00530 } -00531 } -00532 -00533 -00534 -00535 function RosterAddUser($jid = NULL, $id = NULL, $name = NULL) -00536 { -00537 $id = ($id) ? $id : "adduser_" . time(); -00538 -00539 if ($jid) -00540 { -00541 $payload = " <item jid='$jid'"; -00542 $payload .= ($name) ? " name='" . htmlspecialchars($name) . "'" : ''; -00543 $payload .= "/>\n"; -00544 -00545 $packet = $this->SendIq(NULL, 'set', $id, "jabber:iq:roster", $payload); -00546 -00547 if ($this->GetInfoFromIqType($packet) == 'result') -00548 { -00549 $this->RosterUpdate(); -00550 return TRUE; -00551 } -00552 else -00553 { -00554 $this->AddToLog("ERROR: RosterAddUser() #2"); -00555 return FALSE; -00556 } -00557 } -00558 else -00559 { -00560 $this->AddToLog("ERROR: RosterAddUser() #1"); -00561 return FALSE; -00562 } -00563 } -00564 -00565 -00566 -00567 function RosterRemoveUser($jid = NULL, $id = NULL) -00568 { -00569 $id = ($id) ? $id : 'deluser_' . time(); -00570 -00571 if ($jid && $id) -00572 { -00573 $packet = $this->SendIq(NULL, 'set', $id, "jabber:iq:roster", "<item jid='$jid' subscription='remove'/>"); -00574 -00575 if ($this->GetInfoFromIqType($packet) == 'result') -00576 { -00577 $this->RosterUpdate(); -00578 return TRUE; -00579 } -00580 else -00581 { -00582 $this->AddToLog("ERROR: RosterRemoveUser() #2"); -00583 return FALSE; -00584 } -00585 } -00586 else -00587 { -00588 $this->AddToLog("ERROR: RosterRemoveUser() #1"); -00589 return FALSE; -00590 } -00591 } -00592 -00593 -00594 -00595 function RosterExistsJID($jid = NULL) -00596 { -00597 if ($jid) -00598 { -00599 if ($this->roster) -00600 { -00601 for ($a = 0; $a < count($this->roster); $a++) -00602 { -00603 if ($this->roster[$a]['jid'] == strtolower($jid)) -00604 { -00605 return $a; -00606 } -00607 } -00608 } -00609 else -00610 { -00611 $this->AddToLog("ERROR: RosterExistsJID() #2"); -00612 return FALSE; -00613 } -00614 } -00615 else -00616 { -00617 $this->AddToLog("ERROR: RosterExistsJID() #1"); -00618 return FALSE; -00619 } -00620 } -00621 -00622 -00623 -00624 function GetFirstFromQueue() -00625 { -00626 return array_shift($this->packet_queue); -00627 } -00628 -00629 -00630 -00631 function GetFromQueueById($packet_type, $id) -00632 { -00633 $found_message = FALSE; -00634 -00635 foreach ($this->packet_queue as $key => $value) -00636 { -00637 if ($value[$packet_type]['@']['id'] == $id) -00638 { -00639 $found_message = $value; -00640 unset($this->packet_queue[$key]); -00641 -00642 break; -00643 } -00644 } -00645 -00646 return (is_array($found_message)) ? $found_message : FALSE; -00647 } -00648 -00649 -00650 -00651 function CallHandler($packet = NULL) -00652 { -00653 $packet_type = $this->_get_packet_type($packet); -00654 -00655 if ($packet_type == "message") -00656 { -00657 $type = $packet['message']['@']['type']; -00658 $type = ($type != "") ? $type : "normal"; -00659 $funcmeth = "Handler_message_$type"; -00660 } -00661 elseif ($packet_type == "iq") -00662 { -00663 $namespace = $packet['iq']['#']['query'][0]['@']['xmlns']; -00664 $namespace = str_replace(":", "_", $namespace); -00665 $funcmeth = "Handler_iq_$namespace"; -00666 } -00667 elseif ($packet_type == "presence") -00668 { -00669 $type = $packet['presence']['@']['type']; -00670 $type = ($type != "") ? $type : "available"; -00671 $funcmeth = "Handler_presence_$type"; -00672 } -00673 -00674 -00675 if ($funcmeth != '') -00676 { -00677 if (function_exists($funcmeth)) -00678 { -00679 call_user_func($funcmeth, $packet); -00680 } -00681 elseif (method_exists($this, $funcmeth)) -00682 { -00683 call_user_func(array(&$this, $funcmeth), $packet); -00684 } -00685 else -00686 { -00687 $this->Handler_NOT_IMPLEMENTED($packet); -00688 $this->AddToLog("ERROR: CallHandler() #1 - neither method nor function $funcmeth() available"); -00689 } -00690 } -00691 } -00692 -00693 -00694 -00695 function CruiseControl($seconds = -1) -00696 { -00697 $count = 0; -00698 -00699 while ($count != $seconds) -00700 { -00701 $this->Listen(); -00702 -00703 do { -00704 $packet = $this->GetFirstFromQueue(); -00705 -00706 if ($packet) { -00707 $this->CallHandler($packet); -00708 } -00709 -00710 } while (count($this->packet_queue) > 1); -00711 -00712 $count += 0.25; -00713 usleep(250000); -00714 -00715 if ($this->last_ping_time != date('H:i')) -00716 { -00717 // Modified by Nathan Fritz -00718 if ($this->returned_keep_alive == FALSE) -00719 { -00720 $this->connected = FALSE; -00721 $this->AddToLog('EVENT: Disconnected'); -00722 } -00723 -00724 $this->returned_keep_alive = FALSE; -00725 $this->keep_alive_id = 'keep_alive_' . time(); -00726 $this->SendPacket("<iq id='{$this->keep_alive_id}'/>", 'CruiseControl'); -00727 // ** -00728 -00729 $this->last_ping_time = date("H:i"); -00730 } -00731 } -00732 -00733 return TRUE; -00734 } -00735 -00736 -00737 -00738 function SubscriptionAcceptRequest($to = NULL) -00739 { -00740 return ($to) ? $this->SendPresence("subscribed", $to) : FALSE; -00741 } -00742 -00743 -00744 -00745 function SubscriptionDenyRequest($to = NULL) -00746 { -00747 return ($to) ? $this->SendPresence("unsubscribed", $to) : FALSE; -00748 } -00749 -00750 -00751 -00752 function Subscribe($to = NULL) -00753 { -00754 return ($to) ? $this->SendPresence("subscribe", $to) : FALSE; -00755 } -00756 -00757 -00758 -00759 function Unsubscribe($to = NULL) -00760 { -00761 return ($to) ? $this->SendPresence("unsubscribe", $to) : FALSE; -00762 } -00763 -00764 -00765 -00766 function SendIq($to = NULL, $type = 'get', $id = NULL, $xmlns = NULL, $payload = NULL, $from = NULL) -00767 { -00768 if (!preg_match("/^(get|set|result|error)$/", $type)) -00769 { -00770 unset($type); -00771 -00772 $this->AddToLog("ERROR: SendIq() #2 - type must be 'get', 'set', 'result' or 'error'"); -00773 return FALSE; -00774 } -00775 elseif ($id && $xmlns) -00776 { -00777 $xml = "<iq type='$type' id='$id'"; -00778 $xml .= ($to) ? " to='$to'" : ''; -00779 $xml .= ($from) ? " from='$from'" : ''; -00780 $xml .= "> -00781 <query xmlns='$xmlns'> -00782 $payload -00783 </query> -00784 </iq>"; -00785 -00786 $this->SendPacket($xml); -00787 sleep($this->iq_sleep_timer); -00788 $this->Listen(); -00789 -00790 return (preg_match("/^(get|set)$/", $type)) ? $this->GetFromQueueById("iq", $id) : TRUE; -00791 } -00792 else -00793 { -00794 $this->AddToLog("ERROR: SendIq() #1 - to, id and xmlns are mandatory"); -00795 return FALSE; -00796 } -00797 } -00798 -00799 -00800 -00801 // get the transport registration fields -00802 // method written by Steve Blinch, http://www.blitzaffe.com -00803 function TransportRegistrationDetails($transport) -00804 { -00805 $this->txnid++; -00806 $packet = $this->SendIq($transport, 'get', "reg_{$this->txnid}", "jabber:iq:register", NULL, $this->jid); -00807 -00808 if ($packet) -00809 { -00810 $res = array(); -00811 -00812 foreach ($packet['iq']['#']['query'][0]['#'] as $element => $data) -00813 { -00814 if ($element != 'instructions' && $element != 'key') -00815 { -00816 $res[] = $element; -00817 } -00818 } -00819 -00820 return $res; -00821 } -00822 else -00823 { -00824 return 3; -00825 } -00826 } -00827 -00828 -00829 -00830 // register with the transport -00831 // method written by Steve Blinch, http://www.blitzaffe.com -00832 function TransportRegistration($transport, $details) -00833 { -00834 $this->txnid++; -00835 $packet = $this->SendIq($transport, 'get', "reg_{$this->txnid}", "jabber:iq:register", NULL, $this->jid); -00836 -00837 if ($packet) -00838 { -00839 $key = $this->GetInfoFromIqKey($packet); // just in case a key was passed back from the server -00840 unset($packet); -00841 -00842 $payload = ($key) ? "<key>$key</key>\n" : ''; -00843 foreach ($details as $element => $value) -00844 { -00845 $payload .= "<$element>$value</$element>\n"; -00846 } -00847 -00848 $packet = $this->SendIq($transport, 'set', "reg_{$this->txnid}", "jabber:iq:register", $payload); -00849 -00850 if ($this->GetInfoFromIqType($packet) == 'result') -00851 { -00852 if (isset($packet['iq']['#']['query'][0]['#']['registered'][0]['#'])) -00853 { -00854 $return_code = 1; -00855 } -00856 else -00857 { -00858 $return_code = 2; -00859 } -00860 } -00861 elseif ($this->GetInfoFromIqType($packet) == 'error') -00862 { -00863 if (isset($packet['iq']['#']['error'][0]['#'])) -00864 { -00865 $return_code = "Error " . $packet['iq']['#']['error'][0]['@']['code'] . ": " . $packet['iq']['#']['error'][0]['#']; -00866 $this->AddToLog('ERROR: TransportRegistration()'); -00867 } -00868 } -00869 -00870 return $return_code; -00871 } -00872 else -00873 { -00874 return 3; -00875 } -00876 } -00877 -00878 -00879 -00880 function GetvCard($jid = NULL, $id = NULL) -00881 { -00882 if (!$id) -00883 { -00884 $id = "vCard_" . md5(time() . $_SERVER['REMOTE_ADDR']); -00885 } -00886 -00887 if ($jid) -00888 { -00889 $xml = "<iq type='get' to='$jid' id='$id'> -00890 <vCard xmlns='vcard-temp'/> -00891 </iq>"; -00892 -00893 $this->SendPacket($xml); -00894 sleep($this->iq_sleep_timer); -00895 $this->Listen(); -00896 -00897 return $this->GetFromQueueById("iq", $id); -00898 } -00899 else -00900 { -00901 $this->AddToLog("ERROR: GetvCard() #1 - to and id are mandatory"); -00902 return FALSE; -00903 } -00904 } -00905 -00906 -00907 -00908 function PrintLog() -00909 { -00910 if ($this->enable_logging) -00911 { -00912 if ($this->log_filehandler) -00913 { -00914 echo "<h2>Logging enabled, logged events have been written to the file {$this->log_filename}.</h2>\n"; -00915 } -00916 else -00917 { -00918 echo "<h2>Logging enabled, logged events below:</h2>\n"; -00919 echo "<pre>\n"; -00920 echo (count($this->log_array) > 0) ? implode("\n\n\n", $this->log_array) : "No logged events."; -00921 echo "</pre>\n"; -00922 } -00923 } -00924 } -00925 -00926 -00927 -00928 // ====================================================================== -00929 // private methods -00930 // ====================================================================== -00931 -00932 -00933 -00934 function _sendauth_0k($zerok_token, $zerok_sequence) -00935 { -00936 // initial hash of password -00937 $zerok_hash = mhash(MHASH_SHA1, $this->password); -00938 $zerok_hash = bin2hex($zerok_hash); -00939 -00940 // sequence 0: hash of hashed-password and token -00941 $zerok_hash = mhash(MHASH_SHA1, $zerok_hash . $zerok_token); -00942 $zerok_hash = bin2hex($zerok_hash); -00943 -00944 // repeat as often as needed -00945 for ($a = 0; $a < $zerok_sequence; $a++) -00946 { -00947 $zerok_hash = mhash(MHASH_SHA1, $zerok_hash); -00948 $zerok_hash = bin2hex($zerok_hash); -00949 } -00950 -00951 $payload = "<username>{$this->username}</username> -00952 <hash>$zerok_hash</hash> -00953 <resource>{$this->resource}</resource>"; -00954 -00955 $packet = $this->SendIq(NULL, 'set', $this->auth_id, "jabber:iq:auth", $payload); -00956 -00957 // was a result returned? -00958 if ($this->GetInfoFromIqType($packet) == 'result' && $this->GetInfoFromIqId($packet) == $this->auth_id) -00959 { -00960 return TRUE; -00961 } -00962 else -00963 { -00964 $this->AddToLog("ERROR: _sendauth_0k() #1"); -00965 return FALSE; -00966 } -00967 } -00968 -00969 -00970 -00971 function _sendauth_digest() -00972 { -00973 $payload = "<username>{$this->username}</username> -00974 <resource>{$this->resource}</resource> -00975 <digest>" . bin2hex(mhash(MHASH_SHA1, $this->stream_id . $this->password)) . "</digest>"; -00976 -00977 $packet = $this->SendIq(NULL, 'set', $this->auth_id, "jabber:iq:auth", $payload); -00978 -00979 // was a result returned? -00980 if ($this->GetInfoFromIqType($packet) == 'result' && $this->GetInfoFromIqId($packet) == $this->auth_id) -00981 { -00982 return TRUE; -00983 } -00984 else -00985 { -00986 $this->AddToLog("ERROR: _sendauth_digest() #1"); -00987 return FALSE; -00988 } -00989 } -00990 -00991 -00992 -00993 function _sendauth_plaintext() -00994 { -00995 $payload = "<username>{$this->username}</username> -00996 <password>{$this->password}</password> -00997 <resource>{$this->resource}</resource>"; -00998 -00999 $packet = $this->SendIq(NULL, 'set', $this->auth_id, "jabber:iq:auth", $payload); -01000 -01001 // was a result returned? -01002 if ($this->GetInfoFromIqType($packet) == 'result' && $this->GetInfoFromIqId($packet) == $this->auth_id) -01003 { -01004 return TRUE; -01005 } -01006 else -01007 { -01008 $this->AddToLog("ERROR: _sendauth_plaintext() #1"); -01009 return FALSE; -01010 } -01011 } -01012 -01013 -01014 -01015 function _listen_incoming() -01016 { -01017 unset($incoming); -01018 -01019 while ($line = $this->CONNECTOR->ReadFromSocket(4096)) -01020 { -01021 $incoming .= $line; -01022 } -01023 -01024 $incoming = trim($incoming); -01025 -01026 if ($incoming != "") -01027 { -01028 $this->AddToLog("RECV: $incoming"); -01029 } -01030 -01031 return $this->xmlize($incoming); -01032 } -01033 -01034 -01035 -01036 function _check_connected() -01037 { -01038 $incoming_array = $this->_listen_incoming(); -01039 -01040 if (is_array($incoming_array)) -01041 { -01042 if ($incoming_array["stream:stream"]['@']['from'] == $this->server -01043 && $incoming_array["stream:stream"]['@']['xmlns'] == "jabber:client" -01044 && $incoming_array["stream:stream"]['@']["xmlns:stream"] == "http://etherx.jabber.org/streams") -01045 { -01046 $this->stream_id = $incoming_array["stream:stream"]['@']['id']; -01047 -01048 return TRUE; -01049 } -01050 else -01051 { -01052 $this->AddToLog("ERROR: _check_connected() #1"); -01053 return FALSE; -01054 } -01055 } -01056 else -01057 { -01058 $this->AddToLog("ERROR: _check_connected() #2"); -01059 return FALSE; -01060 } -01061 } -01062 -01063 -01064 -01065 function _get_packet_type($packet = NULL) -01066 { -01067 if (is_array($packet)) -01068 { -01069 reset($packet); -01070 $packet_type = key($packet); -01071 } -01072 -01073 return ($packet_type) ? $packet_type : FALSE; -01074 } -01075 -01076 -01077 -01078 function _split_incoming($incoming) -01079 { -01080 $temp = preg_split("/<(message|iq|presence|stream)/", $incoming, -1, PREG_SPLIT_DELIM_CAPTURE); -01081 $array = array(); -01082 -01083 for ($a = 1; $a < count($temp); $a = $a + 2) -01084 { -01085 $array[] = "<" . $temp[$a] . $temp[($a + 1)]; -01086 } -01087 -01088 return $array; -01089 } -01090 -01091 -01092 -01093 function _create_logfile() -01094 { -01095 if ($this->log_filename != '' && $this->enable_logging) -01096 { -01097 $this->log_filehandler = fopen($this->log_filename, 'w'); -01098 } -01099 } -01100 -01101 -01102 -01103 function AddToLog($string) -01104 { -01105 if ($this->enable_logging) -01106 { -01107 if ($this->log_filehandler) -01108 { -01109 fwrite($this->log_filehandler, $string . "\n\n"); -01110 } -01111 else -01112 { -01113 $this->log_array[] = htmlspecialchars($string); -01114 } -01115 } -01116 } -01117 -01118 -01119 -01120 function _close_logfile() -01121 { -01122 if ($this->log_filehandler) -01123 { -01124 fclose($this->log_filehandler); -01125 } -01126 } -01127 -01128 -01129 -01130 // _array_htmlspecialchars() -01131 // applies htmlspecialchars() to all values in an array -01132 -01133 function _array_htmlspecialchars($array) -01134 { -01135 if (is_array($array)) -01136 { -01137 foreach ($array as $k => $v) -01138 { -01139 if (is_array($v)) -01140 { -01141 $v = $this->_array_htmlspecialchars($v); -01142 } -01143 else -01144 { -01145 $v = htmlspecialchars($v); -01146 } -01147 } -01148 } -01149 -01150 return $array; -01151 } -01152 -01153 -01154 -01155 // ====================================================================== -01156 // <message/> parsers -01157 // ====================================================================== -01158 -01159 -01160 -01161 function GetInfoFromMessageFrom($packet = NULL) -01162 { -01163 return (is_array($packet)) ? $packet['message']['@']['from'] : FALSE; -01164 } -01165 -01166 -01167 -01168 function GetInfoFromMessageType($packet = NULL) -01169 { -01170 return (is_array($packet)) ? $packet['message']['@']['type'] : FALSE; -01171 } -01172 -01173 -01174 -01175 function GetInfoFromMessageId($packet = NULL) -01176 { -01177 return (is_array($packet)) ? $packet['message']['@']['id'] : FALSE; -01178 } -01179 -01180 -01181 -01182 function GetInfoFromMessageThread($packet = NULL) -01183 { -01184 return (is_array($packet)) ? $packet['message']['#']['thread'][0]['#'] : FALSE; -01185 } -01186 -01187 -01188 -01189 function GetInfoFromMessageSubject($packet = NULL) -01190 { -01191 return (is_array($packet)) ? $packet['message']['#']['subject'][0]['#'] : FALSE; -01192 } -01193 -01194 -01195 -01196 function GetInfoFromMessageBody($packet = NULL) -01197 { -01198 return (is_array($packet)) ? $packet['message']['#']['body'][0]['#'] : FALSE; -01199 } -01200 -01201 -01202 -01203 function GetInfoFromMessageError($packet = NULL) -01204 { -01205 $error = preg_replace("/^\/$/", "", ($packet['message']['#']['error'][0]['@']['code'] . "/" . $packet['message']['#']['error'][0]['#'])); -01206 return (is_array($packet)) ? $error : FALSE; -01207 } -01208 -01209 -01210 -01211 // ====================================================================== -01212 // <iq/> parsers -01213 // ====================================================================== -01214 -01215 -01216 -01217 function GetInfoFromIqFrom($packet = NULL) -01218 { -01219 return (is_array($packet)) ? $packet['iq']['@']['from'] : FALSE; -01220 } -01221 -01222 -01223 -01224 function GetInfoFromIqType($packet = NULL) -01225 { -01226 return (is_array($packet)) ? $packet['iq']['@']['type'] : FALSE; -01227 } -01228 -01229 -01230 -01231 function GetInfoFromIqId($packet = NULL) -01232 { -01233 return (is_array($packet)) ? $packet['iq']['@']['id'] : FALSE; -01234 } -01235 -01236 -01237 -01238 function GetInfoFromIqKey($packet = NULL) -01239 { -01240 return (is_array($packet)) ? $packet['iq']['#']['query'][0]['#']['key'][0]['#'] : FALSE; -01241 } -01242 -01243 -01244 -01245 function GetInfoFromIqError($packet = NULL) -01246 { -01247 $error = preg_replace("/^\/$/", "", ($packet['iq']['#']['error'][0]['@']['code'] . "/" . $packet['iq']['#']['error'][0]['#'])); -01248 return (is_array($packet)) ? $error : FALSE; -01249 } -01250 -01251 -01252 -01253 // ====================================================================== -01254 // <presence/> parsers -01255 // ====================================================================== -01256 -01257 -01258 -01259 function GetInfoFromPresenceFrom($packet = NULL) -01260 { -01261 return (is_array($packet)) ? $packet['presence']['@']['from'] : FALSE; -01262 } -01263 -01264 -01265 -01266 function GetInfoFromPresenceType($packet = NULL) -01267 { -01268 return (is_array($packet)) ? $packet['presence']['@']['type'] : FALSE; -01269 } -01270 -01271 -01272 -01273 function GetInfoFromPresenceStatus($packet = NULL) -01274 { -01275 return (is_array($packet)) ? $packet['presence']['#']['status'][0]['#'] : FALSE; -01276 } -01277 -01278 -01279 -01280 function GetInfoFromPresenceShow($packet = NULL) -01281 { -01282 return (is_array($packet)) ? $packet['presence']['#']['show'][0]['#'] : FALSE; -01283 } -01284 -01285 -01286 -01287 function GetInfoFromPresencePriority($packet = NULL) -01288 { -01289 return (is_array($packet)) ? $packet['presence']['#']['priority'][0]['#'] : FALSE; -01290 } -01291 -01292 -01293 -01294 // ====================================================================== -01295 // <message/> handlers -01296 // ====================================================================== -01297 -01298 -01299 -01300 function Handler_message_normal($packet) -01301 { -01302 $from = $packet['message']['@']['from']; -01303 $this->AddToLog("EVENT: Message (type normal) from $from"); -01304 } -01305 -01306 -01307 -01308 function Handler_message_chat($packet) -01309 { -01310 $from = $packet['message']['@']['from']; -01311 $this->AddToLog("EVENT: Message (type chat) from $from"); -01312 } -01313 -01314 -01315 -01316 function Handler_message_groupchat($packet) -01317 { -01318 $from = $packet['message']['@']['from']; -01319 $this->AddToLog("EVENT: Message (type groupchat) from $from"); -01320 } -01321 -01322 -01323 -01324 function Handler_message_headline($packet) -01325 { -01326 $from = $packet['message']['@']['from']; -01327 $this->AddToLog("EVENT: Message (type headline) from $from"); -01328 } -01329 -01330 -01331 -01332 function Handler_message_error($packet) -01333 { -01334 $from = $packet['message']['@']['from']; -01335 $this->AddToLog("EVENT: Message (type error) from $from"); -01336 } -01337 -01338 -01339 -01340 // ====================================================================== -01341 // <iq/> handlers -01342 // ====================================================================== -01343 -01344 -01345 -01346 // application version updates -01347 function Handler_iq_jabber_iq_autoupdate($packet) -01348 { -01349 $from = $this->GetInfoFromIqFrom($packet); -01350 $id = $this->GetInfoFromIqId($packet); -01351 -01352 $this->SendError($from, $id, 501); -01353 $this->AddToLog("EVENT: jabber:iq:autoupdate from $from"); -01354 } -01355 -01356 -01357 -01358 // interactive server component properties -01359 function Handler_iq_jabber_iq_agent($packet) -01360 { -01361 $from = $this->GetInfoFromIqFrom($packet); -01362 $id = $this->GetInfoFromIqId($packet); -01363 -01364 $this->SendError($from, $id, 501); -01365 $this->AddToLog("EVENT: jabber:iq:agent from $from"); -01366 } -01367 -01368 -01369 -01370 // method to query interactive server components -01371 function Handler_iq_jabber_iq_agents($packet) -01372 { -01373 $from = $this->GetInfoFromIqFrom($packet); -01374 $id = $this->GetInfoFromIqId($packet); -01375 -01376 $this->SendError($from, $id, 501); -01377 $this->AddToLog("EVENT: jabber:iq:agents from $from"); -01378 } -01379 -01380 -01381 -01382 // simple client authentication -01383 function Handler_iq_jabber_iq_auth($packet) -01384 { -01385 $from = $this->GetInfoFromIqFrom($packet); -01386 $id = $this->GetInfoFromIqId($packet); -01387 -01388 $this->SendError($from, $id, 501); -01389 $this->AddToLog("EVENT: jabber:iq:auth from $from"); -01390 } -01391 -01392 -01393 -01394 // out of band data -01395 function Handler_iq_jabber_iq_oob($packet) -01396 { -01397 $from = $this->GetInfoFromIqFrom($packet); -01398 $id = $this->GetInfoFromIqId($packet); -01399 -01400 $this->SendError($from, $id, 501); -01401 $this->AddToLog("EVENT: jabber:iq:oob from $from"); -01402 } -01403 -01404 -01405 -01406 // method to store private data on the server -01407 function Handler_iq_jabber_iq_private($packet) -01408 { -01409 $from = $this->GetInfoFromIqFrom($packet); -01410 $id = $this->GetInfoFromIqId($packet); -01411 -01412 $this->SendError($from, $id, 501); -01413 $this->AddToLog("EVENT: jabber:iq:private from $from"); -01414 } -01415 -01416 -01417 -01418 // method for interactive registration -01419 function Handler_iq_jabber_iq_register($packet) -01420 { -01421 $from = $this->GetInfoFromIqFrom($packet); -01422 $id = $this->GetInfoFromIqId($packet); -01423 -01424 $this->SendError($from, $id, 501); -01425 $this->AddToLog("EVENT: jabber:iq:register from $from"); -01426 } -01427 -01428 -01429 -01430 // client roster management -01431 function Handler_iq_jabber_iq_roster($packet) -01432 { -01433 $from = $this->GetInfoFromIqFrom($packet); -01434 $id = $this->GetInfoFromIqId($packet); -01435 -01436 $this->SendError($from, $id, 501); -01437 $this->AddToLog("EVENT: jabber:iq:roster from $from"); -01438 } -01439 -01440 -01441 -01442 // method for searching a user database -01443 function Handler_iq_jabber_iq_search($packet) -01444 { -01445 $from = $this->GetInfoFromIqFrom($packet); -01446 $id = $this->GetInfoFromIqId($packet); -01447 -01448 $this->SendError($from, $id, 501); -01449 $this->AddToLog("EVENT: jabber:iq:search from $from"); -01450 } -01451 -01452 -01453 -01454 // method for requesting the current time -01455 function Handler_iq_jabber_iq_time($packet) -01456 { -01457 $type = $this->GetInfoFromIqType($packet); -01458 $from = $this->GetInfoFromIqFrom($packet); -01459 $id = $this->GetInfoFromIqId($packet); -01460 $id = ($id != "") ? $id : "time_" . time(); -01461 -01462 if ($type == 'get') -01463 { -01464 $payload = "<utc>" . gmdate("Ydm\TH:i:s") . "</utc> -01465 <tz>" . date("T") . "</tz> -01466 <display>" . date("Y/d/m h:i:s A") . "</display>"; -01467 -01468 $this->SendIq($from, 'result', $id, "jabber:iq:time", $payload); -01469 } -01470 -01471 $this->AddToLog("EVENT: jabber:iq:time (type $type) from $from"); -01472 } -01473 -01474 -01475 -01476 // method for requesting version -01477 function Handler_iq_jabber_iq_version($packet) -01478 { -01479 $type = $this->GetInfoFromIqType($packet); -01480 $from = $this->GetInfoFromIqFrom($packet); -01481 $id = $this->GetInfoFromIqId($packet); -01482 $id = ($id != "") ? $id : "version_" . time(); -01483 -01484 if ($type == 'get') -01485 { -01486 $payload = "<name>{$this->iq_version_name}</name> -01487 <os>{$this->iq_version_os}</os> -01488 <version>{$this->iq_version_version}</version>"; -01489 -01490 $this->SendIq($from, 'result', $id, "jabber:iq:version", $payload); -01491 } -01492 -01493 $this->AddToLog("EVENT: jabber:iq:version (type $type) from $from"); -01494 } -01495 -01496 -01497 -01498 // keepalive method, added by Nathan Fritz -01499 function Handler_iq_($packet) -01500 { -01501 if ($this->keep_alive_id == $this->GetInfoFromIqId($packet)) -01502 { -01503 $this->returned_keep_alive = TRUE; -01504 $this->AddToLog('EVENT: Keep-Alive returned, connection alive.'); -01505 } -01506 } -01507 -01508 -01509 -01510 // ====================================================================== -01511 // <presence/> handlers -01512 // ====================================================================== -01513 -01514 -01515 -01516 function Handler_presence_available($packet) -01517 { -01518 $from = $this->GetInfoFromPresenceFrom($packet); -01519 -01520 $show_status = $this->GetInfoFromPresenceStatus($packet) . " / " . $this->GetInfoFromPresenceShow($packet); -01521 $show_status = ($show_status != " / ") ? " ($addendum)" : ''; -01522 -01523 $this->AddToLog("EVENT: Presence (type: available) - $from is available $show_status"); -01524 } -01525 -01526 -01527 -01528 function Handler_presence_unavailable($packet) -01529 { -01530 $from = $this->GetInfoFromPresenceFrom($packet); -01531 -01532 $show_status = $this->GetInfoFromPresenceStatus($packet) . " / " . $this->GetInfoFromPresenceShow($packet); -01533 $show_status = ($show_status != " / ") ? " ($addendum)" : ''; -01534 -01535 $this->AddToLog("EVENT: Presence (type: unavailable) - $from is unavailable $show_status"); -01536 } -01537 -01538 -01539 -01540 function Handler_presence_subscribe($packet) -01541 { -01542 $from = $this->GetInfoFromPresenceFrom($packet); -01543 $this->SubscriptionAcceptRequest($from); -01544 $this->RosterUpdate(); -01545 -01546 $this->log_array[] = "<b>Presence:</b> (type: subscribe) - Subscription request from $from, was added to \$this->subscription_queue, roster updated"; -01547 } -01548 -01549 -01550 -01551 function Handler_presence_subscribed($packet) -01552 { -01553 $from = $this->GetInfoFromPresenceFrom($packet); -01554 $this->RosterUpdate(); -01555 -01556 $this->AddToLog("EVENT: Presence (type: subscribed) - Subscription allowed by $from, roster updated"); -01557 } -01558 -01559 -01560 -01561 function Handler_presence_unsubscribe($packet) -01562 { -01563 $from = $this->GetInfoFromPresenceFrom($packet); -01564 $this->SendPresence("unsubscribed", $from); -01565 $this->RosterUpdate(); -01566 -01567 $this->AddToLog("EVENT: Presence (type: unsubscribe) - Request to unsubscribe from $from, was automatically approved, roster updated"); -01568 } -01569 -01570 -01571 -01572 function Handler_presence_unsubscribed($packet) -01573 { -01574 $from = $this->GetInfoFromPresenceFrom($packet); -01575 $this->RosterUpdate(); -01576 -01577 $this->AddToLog("EVENT: Presence (type: unsubscribed) - Unsubscribed from $from's presence"); -01578 } -01579 -01580 -01581 -01582 // Added By Nathan Fritz -01583 function Handler_presence_error($packet) -01584 { -01585 $from = $this->GetInfoFromPresenceFrom($packet); -01586 $this->AddToLog("EVENT: Presence (type: error) - Error in $from's presence"); -01587 } -01588 -01589 -01590 -01591 // ====================================================================== -01592 // Generic handlers -01593 // ====================================================================== -01594 -01595 -01596 -01597 // Generic handler for unsupported requests -01598 function Handler_NOT_IMPLEMENTED($packet) -01599 { -01600 $packet_type = $this->_get_packet_type($packet); -01601 $from = call_user_func(array(&$this, "GetInfoFrom" . ucfirst($packet_type) . "From"), $packet); -01602 $id = call_user_func(array(&$this, "GetInfoFrom" . ucfirst($packet_type) . "Id"), $packet); -01603 -01604 $this->SendError($from, $id, 501); -01605 $this->AddToLog("EVENT: Unrecognized <$packet_type/> from $from"); -01606 } -01607 -01608 -01609 -01610 // ====================================================================== -01611 // Third party code -01612 // m@d pr0ps to the coders ;) -01613 // ====================================================================== -01614 -01615 -01616 -01617 // xmlize() -01618 // (c) Hans Anderson / http://www.hansanderson.com/php/xml/ -01619 -01620 function xmlize($data) -01621 { -01622 $vals = $index = $array = array(); -01623 $parser = xml_parser_create(); -01624 xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); -01625 xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); -01626 xml_parse_into_struct($parser, $data, $vals, $index); -01627 xml_parser_free($parser); -01628 -01629 $i = 0; -01630 -01631 $tagname = $vals[$i]['tag']; -01632 $array[$tagname]['@'] = $vals[$i]['attributes']; -01633 $array[$tagname]['#'] = $this->_xml_depth($vals, $i); -01634 -01635 return $array; -01636 } -01637 -01638 -01639 -01640 // _xml_depth() -01641 // (c) Hans Anderson / http://www.hansanderson.com/php/xml/ -01642 -01643 function _xml_depth($vals, &$i) -01644 { -01645 $children = array(); -01646 -01647 if ($vals[$i]['value']) -01648 { -01649 array_push($children, trim($vals[$i]['value'])); -01650 } -01651 -01652 while (++$i < count($vals)) -01653 { -01654 switch ($vals[$i]['type']) -01655 { -01656 case 'cdata': -01657 array_push($children, trim($vals[$i]['value'])); -01658 break; -01659 -01660 case 'complete': -01661 $tagname = $vals[$i]['tag']; -01662 $size = sizeof($children[$tagname]); -01663 $children[$tagname][$size]['#'] = trim($vals[$i]['value']); -01664 if ($vals[$i]['attributes']) -01665 { -01666 $children[$tagname][$size]['@'] = $vals[$i]['attributes']; -01667 } -01668 break; -01669 -01670 case 'open': -01671 $tagname = $vals[$i]['tag']; -01672 $size = sizeof($children[$tagname]); -01673 if ($vals[$i]['attributes']) -01674 { -01675 $children[$tagname][$size]['@'] = $vals[$i]['attributes']; -01676 $children[$tagname][$size]['#'] = $this->_xml_depth($vals, $i); -01677 } -01678 else -01679 { -01680 $children[$tagname][$size]['#'] = $this->_xml_depth($vals, $i); -01681 } -01682 break; -01683 -01684 case 'close': -01685 return $children; -01686 break; -01687 } -01688 } -01689 -01690 return $children; -01691 } -01692 -01693 -01694 -01695 // TraverseXMLize() -01696 // (c) acebone@f2s.com, a HUGE help! -01697 -01698 function TraverseXMLize($array, $arrName = "array", $level = 0) -01699 { -01700 if ($level == 0) -01701 { -01702 echo "<pre>"; -01703 } -01704 -01705 while (list($key, $val) = @each($array)) -01706 { -01707 if (is_array($val)) -01708 { -01709 $this->TraverseXMLize($val, $arrName . "[" . $key . "]", $level + 1); -01710 } -01711 else -01712 { -01713 echo '$' . $arrName . '[' . $key . '] = "' . $val . "\"\n"; -01714 } -01715 } -01716 -01717 if ($level == 0) -01718 { -01719 echo "</pre>"; -01720 } -01721 } -01722 } -01723 -01724 -01725 -01726 class MakeXML extends Jabber -01727 { -01728 var $nodes; -01729 -01730 -01731 function MakeXML() -01732 { -01733 $nodes = array(); -01734 } -01735 -01736 -01737 -01738 function AddPacketDetails($string, $value = NULL) -01739 { -01740 if (preg_match("/\(([0-9]*)\)$/i", $string)) -01741 { -01742 $string .= "/[\"#\"]"; -01743 } -01744 -01745 $temp = @explode("/", $string); -01746 -01747 for ($a = 0; $a < count($temp); $a++) -01748 { -01749 $temp[$a] = preg_replace("/^[@]{1}([a-z0-9_]*)$/i", "[\"@\"][\"\\1\"]", $temp[$a]); -01750 $temp[$a] = preg_replace("/^([a-z0-9_]*)\(([0-9]*)\)$/i", "[\"\\1\"][\\2]", $temp[$a]); -01751 $temp[$a] = preg_replace("/^([a-z0-9_]*)$/i", "[\"\\1\"]", $temp[$a]); -01752 } -01753 -01754 $node = implode("", $temp); -01755 -01756 // Yeahyeahyeah, I know it's ugly... get over it. ;) -01757 echo "\$this->nodes$node = \"" . htmlspecialchars($value) . "\";<br/>"; -01758 eval("\$this->nodes$node = \"" . htmlspecialchars($value) . "\";"); -01759 } -01760 -01761 -01762 -01763 function BuildPacket($array = NULL) -01764 { -01765 -01766 if (!$array) -01767 { -01768 $array = $this->nodes; -01769 } -01770 -01771 if (is_array($array)) -01772 { -01773 array_multisort($array, SORT_ASC, SORT_STRING); -01774 -01775 foreach ($array as $key => $value) -01776 { -01777 if (is_array($value) && $key == "@") -01778 { -01779 foreach ($value as $subkey => $subvalue) -01780 { -01781 $subvalue = htmlspecialchars($subvalue); -01782 $text .= " $subkey='$subvalue'"; -01783 } -01784 -01785 $text .= ">\n"; -01786 -01787 } -01788 elseif ($key == "#") -01789 { -01790 $text .= htmlspecialchars($value); -01791 } -01792 elseif (is_array($value)) -01793 { -01794 for ($a = 0; $a < count($value); $a++) -01795 { -01796 $text .= "<$key"; -01797 -01798 if (!$this->_preg_grep_keys("/^@/", $value[$a])) -01799 { -01800 $text .= ">"; -01801 } -01802 -01803 $text .= $this->BuildPacket($value[$a]); -01804 -01805 $text .= "</$key>\n"; -01806 } -01807 } -01808 else -01809 { -01810 $value = htmlspecialchars($value); -01811 $text .= "<$key>$value</$key>\n"; -01812 } -01813 } -01814 -01815 return $text; -01816 } -01817 } -01818 -01819 -01820 -01821 function _preg_grep_keys($pattern, $array) -01822 { -01823 while (list($key, $val) = each($array)) -01824 { -01825 if (preg_match($pattern, $key)) -01826 { -01827 $newarray[$key] = $val; -01828 } -01829 } -01830 return (is_array($newarray)) ? $newarray : FALSE; -01831 } -01832 } -01833 -01834 -01835 -01836 class CJP_StandardConnector -01837 { -01838 var $active_socket; -01839 -01840 function OpenSocket($server, $port) -01841 { -01842 if ($this->active_socket = fsockopen($server, $port)) -01843 { -01844 socket_set_blocking($this->active_socket, 0); -01845 socket_set_timeout($this->active_socket, 31536000); -01846 -01847 return TRUE; -01848 } -01849 else -01850 { -01851 return FALSE; -01852 } -01853 } -01854 -01855 -01856 -01857 function CloseSocket() -01858 { -01859 return fclose($this->active_socket); -01860 } -01861 -01862 -01863 -01864 function WriteToSocket($data) -01865 { -01866 return fwrite($this->active_socket, $data); -01867 } -01868 -01869 -01870 -01871 function ReadFromSocket($chunksize) -01872 { -01873 set_magic_quotes_runtime(0); -01874 $buffer = fread($this->active_socket, $chunksize); -01875 set_magic_quotes_runtime(get_magic_quotes_gpc()); -01876 -01877 return $buffer; -01878 } -01879 } -01880 -01881 -01882 -01883 ?> -

Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/class_8jabber_8php.html b/doc/dev/php/html/class_8jabber_8php.html deleted file mode 100644 index aa155fe6878..00000000000 --- a/doc/dev/php/html/class_8jabber_8php.html +++ /dev/null @@ -1,27 +0,0 @@ - - -dolibarr: class.jabber.php File Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence du fichier htdocs/lib/jabber/class.jabber.php

Classe permettant de se connecter à un serveur jabber. -Plus de détails... -

- -

-Aller au code source de ce fichier. - -
-


Description détaillée

-Classe permettant de se connecter à un serveur jabber. -

-

Auteur:
Carlo "Gossip" Zottmann.
-
Version:
0.4.
-Ensemble des fonctions permettant de se connecter à un serveur jabber. -

-Définition dans le fichier class.jabber.php.


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/classes.html b/doc/dev/php/html/classes.html deleted file mode 100644 index b1c458cb0a5..00000000000 --- a/doc/dev/php/html/classes.html +++ /dev/null @@ -1,19 +0,0 @@ - - -dolibarr: Alphabetical index - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

dolibarr Index des classes

C | D | V | W

- -
  C  
-
  D  
-
  V  
-
  W  
-
Webcal   
CMailFile   DoliDb   vCard   

C | D | V | W

-


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/classvCard-members.html b/doc/dev/php/html/classvCard-members.html deleted file mode 100644 index 52e5d6f6de0..00000000000 --- a/doc/dev/php/html/classvCard-members.html +++ /dev/null @@ -1,25 +0,0 @@ - - -dolibarr: Liste des membres - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

vCard Liste des membres

Liste complète des membres de vCard, y compris les membres hérités:

- - - - - - - - - - - - -
getFileName()vCard
getVCard()vCard
setAddress($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="HOME;POSTAL")vCard
setBirthday($date)vCard
setEmail($address)vCard
setFormattedName($name)vCard
setLabel($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="HOME;POSTAL")vCard
setName($family="", $first="", $additional="", $prefix="", $suffix="")vCard
setNote($note)vCard
setPhoneNumber($number, $type="")vCard
setPhoto($type, $photo)vCard
setURL($url, $type="")vCard


Généré le Fri Jul 16 08:51:53 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/classvCard.html b/doc/dev/php/html/classvCard.html deleted file mode 100644 index b38a8f398da..00000000000 --- a/doc/dev/php/html/classvCard.html +++ /dev/null @@ -1,643 +0,0 @@ - - -dolibarr: vCard class Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence de la classe vCard

Classe permettant de créer un fichier vcard. -Plus de détails... -

-Liste de tous les membres - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Fonctions membres publiques

 setPhoneNumber ($number, $type="")
 mise en forme du numéro de télephone

 setPhoto ($type, $photo)
 mise en forme de la photo

 setFormattedName ($name)
 mise en forme du nom formaté

 setName ($family="", $first="", $additional="", $prefix="", $suffix="")
 mise en forme du nom complet

 setBirthday ($date)
 mise en forme de l'anniversaire

 setAddress ($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="HOME;POSTAL")
 mise en forme de l'adresse

 setLabel ($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="HOME;POSTAL")
 mise en forme du label

 setEmail ($address)
 mise en forme de l'email

 setNote ($note)
 mise en forme de la note

 setURL ($url, $type="")
 mise en forme de l'url

getVCard ()
 permet d'obtenir une vcard

getFileName ()
 permet d'obtenir le nom de fichier

-


Description détaillée

-Classe permettant de créer un fichier vcard. -

-Ensemble des fonctions permettant de créer un fichier vcard -

- -

-Définition à la ligne 83 du fichier vcard.class.php.


Documentation des fonctions membres

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vCard::setAddress postoffice = "",
extended = "",
street = "",
city = "",
region = "",
zip = "",
country = "",
type = "HOME;POSTAL"
-
- - - - - -
-   - - -

-mise en forme de l'adresse -

-

Paramètres:
- - - - - - - - - -
postoffice 
extended 
street 
city 
region 
zip 
country 
type 
-
- -

-Définition à la ligne 158 du fichier vcard.class.php. -

-Références setAddress(). -

-Référencé par setAddress().

-

- - - - -
- - - - - - - - - -
vCard::setBirthday date  ) 
-
- - - - - -
-   - - -

-mise en forme de l'anniversaire -

-

Paramètres:
- - -
date 
-
- -

-Définition à la ligne 142 du fichier vcard.class.php. -

-Références setBirthday(). -

-Référencé par setBirthday().

-

- - - - -
- - - - - - - - - -
vCard::setEmail address  ) 
-
- - - - - -
-   - - -

-mise en forme de l'email -

-

Paramètres:
- - -
address 
-
- -

-Définition à la ligne 200 du fichier vcard.class.php. -

-Références setEmail(). -

-Référencé par setEmail().

-

- - - - -
- - - - - - - - - -
vCard::setFormattedName name  ) 
-
- - - - - -
-   - - -

-mise en forme du nom formaté -

-

Paramètres:
- - -
name 
-
- -

-Définition à la ligne 118 du fichier vcard.class.php. -

-Références setFormattedName(). -

-Référencé par setFormattedName().

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vCard::setLabel postoffice = "",
extended = "",
street = "",
city = "",
region = "",
zip = "",
country = "",
type = "HOME;POSTAL"
-
- - - - - -
-   - - -

-mise en forme du label -

-

Paramètres:
- - - - - - - - - -
postoffice 
extended 
street 
city 
region 
zip 
country 
type 
-
- -

-Définition à la ligne 182 du fichier vcard.class.php. -

-Références setLabel(). -

-Référencé par setLabel().

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vCard::setName family = "",
first = "",
additional = "",
prefix = "",
suffix = ""
-
- - - - - -
-   - - -

-mise en forme du nom complet -

-

Paramètres:
- - - - - - -
family 
first 
additional 
prefix 
suffix 
-
- -

-Définition à la ligne 131 du fichier vcard.class.php. -

-Références setName(). -

-Référencé par setName().

-

- - - - -
- - - - - - - - - -
vCard::setNote note  ) 
-
- - - - - -
-   - - -

-mise en forme de la note -

-

Paramètres:
- - -
note 
-
- -

-Définition à la ligne 209 du fichier vcard.class.php. -

-Références setNote(). -

-Référencé par setNote().

-

- - - - -
- - - - - - - - - - - - - - - - - - -
vCard::setPhoneNumber number,
type = ""
-
- - - - - -
-   - - -

-mise en forme du numéro de télephone -

-

Paramètres:
- - - -
number numéro de téléphone
type 
-
- -

-Définition à la ligne 93 du fichier vcard.class.php. -

-Références setPhoneNumber(). -

-Référencé par setPhoneNumber().

-

- - - - -
- - - - - - - - - - - - - - - - - - -
vCard::setPhoto type,
photo
-
- - - - - -
-   - - -

-mise en forme de la photo -

-

Paramètres:
- - - -
type 
photo 
-
-
Avertissement:
NON TESTE !
- -

-Définition à la ligne 109 du fichier vcard.class.php. -

-Références setPhoto(). -

-Référencé par setPhoto().

-

- - - - -
- - - - - - - - - - - - - - - - - - -
vCard::setURL url,
type = ""
-
- - - - - -
-   - - -

-mise en forme de l'url -

-

Paramètres:
- - - -
url 
type 
-
- -

-Définition à la ligne 219 du fichier vcard.class.php. -

-Références setURL(). -

-Référencé par setURL().

-


La documentation de cette classe a été générée à partir du fichier suivant: -
Généré le Fri Jul 16 08:51:53 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/doxygen.css b/doc/dev/php/html/doxygen.css deleted file mode 100644 index dc9da52203c..00000000000 --- a/doc/dev/php/html/doxygen.css +++ /dev/null @@ -1,218 +0,0 @@ -H1 { - text-align: center; - font-family: Geneva, Arial, Helvetica, sans-serif; -} -H2 { - font-family: Geneva, Arial, Helvetica, sans-serif; -} -CAPTION { font-weight: bold } -DIV.qindex { - width: 100%; - background-color: #eeeeff; - border: 1px solid #B0B0B0; - text-align: center; - margin: 2px; - padding: 2px; - line-height: 120%; -} -A.qindex { - text-decoration: none; - font-weight: bold; - color: #1A419D; - padding: 2px; -} -A.qindex:visited { - text-decoration: none; - font-weight: bold; - color: #1A419D - padding: 2px; -} -A.qindex:hover { - text-decoration: none; - background-color: #ddddff; - padding: 2px; -} -A.qindexHL { - text-decoration: none; - font-weight: bold; - background-color: #6666cc; - color: #ffffff; - padding: 2px 6px; - border: 1px double #9295C2; -} -A.qindexHL:hover { - text-decoration: none; - background-color: #6666cc; - color: #ffffff; - padding: 2px 6px; -} -A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff } -A.el { text-decoration: none; font-weight: bold } -A.elRef { font-weight: bold } -A.code { text-decoration: none; font-weight: normal; color: #1A419D} -A.codeRef { font-weight: normal; color: #1A419D} -A:hover { text-decoration: none; background-color: #f2f2ff } -DL.el { margin-left: -1cm } -PRE.fragment { - border: 1px solid #CCCCCC; - background-color: #f5f5f5; - margin-top: 4px; - margin-bottom: 4px; - margin-left: 2px; - margin-right: 8px; - padding-left: 6px; - padding-right: 6px; - padding-top: 4px; - padding-bottom: 4px; -} -DIV.fragment { - border: 1px solid #CCCCCC; - background-color: #f5f5f5; - padding: 6px; -} -DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } -TD.md { background-color: #F4F4FB; font-weight: bold; } -TD.mdname1 { background-color: #F4F4FB; font-weight: bold; color: #602020; } -TD.mdname { background-color: #F4F4FB; font-weight: bold; color: #602020; width: 600px; } -DIV.groupHeader { - margin-left: 16px; - margin-top: 12px; - margin-bottom: 6px; - font-weight: bold; - font-family: Geneva, Arial, Helvetica, sans-serif; -} -DIV.groupText { margin-left: 16px; font-style: italic; font-size: smaller } -BODY { - background: white; - color: black; - margin-right: 20px; - margin-left: 20px; -} -TD.indexkey { - background-color: #eeeeff; - font-weight: bold; - padding-right : 10px; - padding-top : 2px; - padding-left : 10px; - padding-bottom : 2px; - margin-left : 0px; - margin-right : 0px; - margin-top : 2px; - margin-bottom : 2px; - border: 1px solid #CCCCCC; -} -TD.indexvalue { - background-color: #eeeeff; - font-style: italic; - padding-right : 10px; - padding-top : 2px; - padding-left : 10px; - padding-bottom : 2px; - margin-left : 0px; - margin-right : 0px; - margin-top : 2px; - margin-bottom : 2px; - border: 1px solid #CCCCCC; -} -TR.memlist { - background-color: #f0f0f0; -} -P.formulaDsp { text-align: center; } -IMG.formulaDsp { } -IMG.formulaInl { vertical-align: middle; } -SPAN.keyword { color: #008000 } -SPAN.keywordtype { color: #604020 } -SPAN.keywordflow { color: #e08000 } -SPAN.comment { color: #800000 } -SPAN.preprocessor { color: #806020 } -SPAN.stringliteral { color: #002080 } -SPAN.charliteral { color: #008080 } -.mdTable { - border: 1px solid #868686; - background-color: #F4F4FB; -} -.mdRow { - padding: 8px 10px; -} -.mdescLeft { - font-size: smaller; - font-style: italic; - background-color: #FAFAFA; - padding-left: 8px; - border-top: 1px none #E0E0E0; - border-right: 1px none #E0E0E0; - border-bottom: 1px none #E0E0E0; - border-left: 1px none #E0E0E0; - margin: 0px; -} -.mdescRight { - font-size: smaller; - font-style: italic; - background-color: #FAFAFA; - padding-left: 4px; - border-top: 1px none #E0E0E0; - border-right: 1px none #E0E0E0; - border-bottom: 1px none #E0E0E0; - border-left: 1px none #E0E0E0; - margin: 0px; - padding-bottom: 0px; - padding-right: 8px; -} -.memItemLeft { - padding: 1px 0px 0px 8px; - margin: 4px; - border-top-width: 1px; - border-right-width: 1px; - border-bottom-width: 1px; - border-left-width: 1px; - border-top-style: solid; - border-top-color: #E0E0E0; - border-right-color: #E0E0E0; - border-bottom-color: #E0E0E0; - border-left-color: #E0E0E0; - border-right-style: none; - border-bottom-style: none; - border-left-style: none; - background-color: #FAFAFA; - font-family: Geneva, Arial, Helvetica, sans-serif; - font-size: 12px; -} -.memItemRight { - padding: 1px 0px 0px 8px; - margin: 4px; - border-top-width: 1px; - border-right-width: 1px; - border-bottom-width: 1px; - border-left-width: 1px; - border-top-style: solid; - border-top-color: #E0E0E0; - border-right-color: #E0E0E0; - border-bottom-color: #E0E0E0; - border-left-color: #E0E0E0; - border-right-style: none; - border-bottom-style: none; - border-left-style: none; - background-color: #FAFAFA; - font-family: Geneva, Arial, Helvetica, sans-serif; - font-size: 13px; -} -.search { color: #003399; - font-weight: bold; -} -FORM.search { - margin-bottom: 0px; - margin-top: 0px; -} -INPUT.search { font-size: 75%; - color: #000080; - font-weight: normal; - background-color: #eeeeff; -} -TD.tiny { font-size: 75%; -} -a { - color: #252E78; -} -a:visited { - color: #3D2185; -} diff --git a/doc/dev/php/html/doxygen.png b/doc/dev/php/html/doxygen.png deleted file mode 100644 index 9da55f95f5e..00000000000 Binary files a/doc/dev/php/html/doxygen.png and /dev/null differ diff --git a/doc/dev/php/html/files.html b/doc/dev/php/html/files.html deleted file mode 100644 index 50b91bc58c3..00000000000 --- a/doc/dev/php/html/files.html +++ /dev/null @@ -1,23 +0,0 @@ - - -dolibarr: File Index - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

dolibarr Liste des fichiers

Liste de tous les fichiers documentés avec une brève description: - - - - - - - - - -
htdocs/lib/CMailFile.class.php [code]Classe permettant d'envoyer des attachements par mail
htdocs/lib/functions.inc.php [code]Ensemble de fonctions de base de dolibarr sous forme d'include
htdocs/lib/ldap.lib.php [code]Librairie contenant les fonctions pour accèder au serveur ldap
htdocs/lib/mysql.lib.php [code]Classe permettant de gérér la database de dolibarr
htdocs/lib/price.lib.php [code]Librairie contenant les fonctions pour calculer un prix
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
htdocs/lib/jabber/class.jabber.php [code]Classe permettant de se connecter à un serveur jabber
htdocs/lib/vcard/vcard.class.php [code]Classe permettant de créer un fichier vcard
-
Généré le Fri Jul 16 08:51:51 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/functions.html b/doc/dev/php/html/functions.html deleted file mode 100644 index 6354175fada..00000000000 --- a/doc/dev/php/html/functions.html +++ /dev/null @@ -1,96 +0,0 @@ - - -dolibarr: Compound Member Index - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-
Tout | Fonctions
-
a | b | c | d | e | f | g | i | l | n | p | q | r | s | w
- -

- -

-Liste de tous les membres de classe documentés avec liens vers la documentation de classe de chaque membre:

- a -

-

- b -

-

- c -

-

- d -

-

- e -

-

- f -

-

- g -

-

- i -

-

- l -

-

- n -

-

- p -

-

- q -

-

- r -

-

- s -

-

- w -

-
Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 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 deleted file mode 100644 index 9f6159293fe..00000000000 --- a/doc/dev/php/html/functions_8inc_8php-source.html +++ /dev/null @@ -1,1041 +0,0 @@ - - -dolibarr: htdocs/lib/functions.inc.php Source File - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

htdocs/lib/functions.inc.php

Aller à la documentation de ce fichier.
00001 <?PHP -00002 /* Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -00003 * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org> -00004 * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> -00005 * -00006 * This program is free software; you can redistribute it and/or modify -00007 * it under the terms of the GNU General Public License as published by -00008 * the Free Software Foundation; either version 2 of the License, or -00009 * (at your option) any later version. -00010 * -00011 * This program is distributed in the hope that it will be useful, -00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of -00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -00014 * GNU General Public License for more details. -00015 * -00016 * You should have received a copy of the GNU General Public License -00017 * along with this program; if not, write to the Free Software -00018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -00019 * or see http://www.gnu.org/ -00020 * -00021 * $Id$ -00022 * $Source$ -00023 * -00024 */ -00025 -00036 $yn[0] = "non"; -00037 $yn[1] = "oui"; -00038 -00044 function dolibarr_syslog($message) -00045 { -00046 define_syslog_variables(); -00047 -00048 openlog("dolibarr", LOG_PID | LOG_PERROR, LOG_USER); # LOG_USER au lieu de LOG_LOCAL0 car non accepté par tous les PHP -00049 -00050 syslog(LOG_WARNING, $message); -00051 -00052 closelog(); -00053 } -00054 -00063 function dolibarr_fiche_head($links, $active=0) -00064 { -00065 print "<!-- fiche --><div class=\"tabs\">\n"; -00066 -00067 for ($i = 0 ; $i < sizeof($links) ; $i++) -00068 { -00069 if ($links[$i][2] == 'image') -00070 { -00071 print '<a class="tabimage" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n"; -00072 } -00073 else -00074 { -00075 if ($i == $active) -00076 { -00077 print '<a id="active" class="tab" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n"; -00078 } -00079 else -00080 { -00081 print '<a class="tab" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n"; -00082 } -00083 } -00084 } -00085 -00086 print "</div>\n"; -00087 print "<div class=\"tabBar\">\n<br>\n"; -00088 } -00089 -00103 function dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='') -00104 { -00105 $sql = "REPLACE INTO llx_const SET name = '$name', value='$value', visible=$visible, type='$type', note='$note'"; -00106 -00107 if ($db->query($sql)) -00108 { -00109 return 1; -00110 } -00111 else -00112 { -00113 return 0; -00114 } -00115 } -00116 -00124 function dolibarr_del_const($db, $name) -00125 { -00126 $sql = "DELETE FROM llx_const WHERE name='$name'"; -00127 -00128 if ($db->query($sql)) -00129 { -00130 return 1; -00131 } -00132 else -00133 { -00134 return 0; -00135 } -00136 } -00137 -00144 function dolibarr_print_ca($ca) -00145 { -00146 if ($ca > 1000) -00147 { -00148 $cat = round(($ca / 1000),2); -00149 $cat = "$cat Keuros"; -00150 } -00151 else -00152 { -00153 $cat = round($ca,2); -00154 $cat = "$cat euros"; -00155 } -00156 -00157 if ($ca > 1000000) -00158 { -00159 $cat = round(($ca / 1000000),2); -00160 $cat = "$cat Meuros"; -00161 } -00162 -00163 return $cat; -00164 } -00165 -00173 function dolibarr_print_date($time,$format="%d %b %Y") -00174 { -00175 return strftime($format,$time); -00176 } -00177 -00178 -00184 function dolibarr_print_object_info($object) -00185 { -00186 print "Créé par : " . $object->user_creation->fullname . '<br>'; -00187 print "Date de création : " . strftime("%A %d %B %Y %H:%M:%S",$object->date_creation) . '<br>'; -00188 print "Modifié par : " . $object->user_modification->fullname . '<br>'; -00189 print "Date de modification : " . strftime("%A %d %B %Y %H:%M:%S",$object->date_modification) . '<br>'; -00190 } -00191 -00199 function dolibarr_print_phone($phone) -00200 { -00201 if (strlen(trim($phone)) == 10) -00202 { -00203 return substr($phone,0,2)." ".substr($phone,2,2)." ".substr($phone,4,2)." ".substr($phone,6,2)." ".substr($phone,8,2); -00204 } -00205 else -00206 { -00207 return $phone; -00208 } -00209 } -00210 -00211 function img_file($alt = "Voir") -00212 { -00213 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/file.png" border="0" alt="'.$alt.'">'; -00214 } -00215 -00216 function img_file_new($alt = "Voir") -00217 { -00218 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/filenew.png" border="0" alt="'.$alt.'">'; -00219 } -00220 -00221 -00222 function img_pdf($alt = "Voir") -00223 { -00224 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/pdf.png" border="0" alt="'.$alt.'">'; -00225 } -00226 -00227 function img_warning($alt = "Voir") -00228 { -00229 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/warning.png" border="0" alt="'.$alt.'">'; -00230 } -00231 -00232 function img_delete($alt = "Supprimer") -00233 { -00234 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/delete.png" border="0" alt="'.$alt.'" title="Supprimer">'; -00235 } -00236 -00237 function img_info($alt = "Informations") -00238 { -00239 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/info.png" border="0" alt="'.$alt.'" title="Informations">'; -00240 } -00241 -00242 -00243 function img_edit($alt = "Modifier") -00244 { -00245 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/edit.png" border="0" alt="'.$alt.'" title="Modifier">'; -00246 } -00247 -00248 function img_phone_in($alt = "Modifier") -00249 { -00250 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/call.png" border="0" alt="'.$alt.'" title="'.$alt.'">'; -00251 } -00252 -00253 function img_phone_out($alt = "Modifier") -00254 { -00255 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/call_out.png" border="0" alt="'.$alt.'" title="'.$alt.'">'; -00256 } -00257 -00258 -00259 function img_alerte($alt = "Alerte") -00260 { -00261 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/alerte.png" border="0" alt="'.$alt.'" title="'.$alt.'">'; -00262 } -00263 -00264 -00265 function img_next($alt = "Suivant") -00266 { -00267 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/next.png" border="0" alt="'.$alt.'" title="'.$alt.'">'; -00268 } -00269 -00270 function img_previous($alt = "Précédent") -00271 { -00272 return '<img src="'.DOL_URL_ROOT.'/theme/'.MAIN_THEME.'/img/previous.png" border="0" alt="'.$alt.'" title="'.$alt.'">'; -00273 } -00274 -00281 function loginfunction() -00282 { -00283 print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'; -00284 print "\n<html><head><title>Dolibarr Authentification</title>"; -00285 print '<style type="text/css"> -00286 body { -00287 font-size:14px; -00288 font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; -00289 background-color: #cac8c0; -00290 margin-left: 30%; -00291 margin-right: 30%; -00292 margin-top: 10%; -00293 margin-bottom: 1%; -00294 } -00295 div.main { -00296 background-color: white; -00297 text-align: left; -00298 border: solid black 1px; -00299 } -00300 div.main-inside { -00301 background-color: white; -00302 padding-left: 20px; -00303 padding-right: 50px; -00304 text-align: center; -00305 margin-bottom: 50px; -00306 margin-top: 30px; -00307 } -00308 div.footer { -00309 background-color: #dcdff4; -00310 font-size: 10px; -00311 border-top: solid black 1px; -00312 padding-left: 5px; -00313 text-align: center; -00314 } -00315 div.header { -00316 background-color: #dcdff4; -00317 border-bottom: solid black 1px; -00318 padding-left: 5px; -00319 text-align: center; -00320 } -00321 div.footer p { -00322 margin: 0px; -00323 } -00324 a:link,a:visited,a:active { -00325 text-decoration:none; -00326 color:blue; -00327 } -00328 a:hover { -00329 text-decoration:underline; -00330 color:blue; -00331 } -00332 </style> -00333 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"> -00334 <script language="javascript"> -00335 function donnefocus(){ -00336 document.identification.username.focus(); -00337 } -00338 </script> -00339 </head> -00340 <body onload="donnefocus();"> -00341 <div class="main"> -00342 <div class="header">'; -00343 print 'Dolibarr '.DOL_VERSION; -00344 print ' -00345 </div> -00346 <div class="main-inside"> -00347 '; -00348 -00349 echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '" name="identification">'; -00350 print '<table><tr>'; -00351 print '<td>Login : </td><td><input type="text" name="username"></td></tr>';; -00352 print '<tr><td>Password : </td><td><input type="password" name="password"></td></tr>'; -00353 -00354 echo '</table> -00355 <p align="center"><input value="Login" type="submit"> -00356 </form>'; -00357 } -00358 -00363 function accessforbidden() -00364 { -00365 llxHeader(); -00366 print "Accés interdit"; -00367 llxFooter(); -00368 exit(0); -00369 } -00370 -00377 function doliMoveFileUpload($src_file, $dest_file) -00378 { -00379 $file_name = $dest_file; -00380 -00381 if (substr($file_name, strlen($file_name) -3 , 3) == 'php') -00382 { -00383 $file_name = $dest_file . ".txt"; -00384 } -00385 -00386 return move_uploaded_file($src_file, $file_name); -00387 } -00388 -00389 -00390 function dolibarr_user_page_param($db, &$user) -00391 { -00392 foreach ($GLOBALS["_GET"] as $key=>$value) -00393 { -00394 if ($key == "sortfield") -00395 { -00396 $sql = "REPLACE INTO ".MAIN_DB_PREFIX."user_param "; -00397 $sql .= " SET fk_user =".$user->id; -00398 $sql .= " ,page='".$GLOBALS["SCRIPT_URL"] . "'"; -00399 $sql .= " ,param='sortfield'"; -00400 $sql .= " ,value='".urlencode($value)."'"; -00401 -00402 $db->query($sql); -00403 $user->page_param["sortfield"] = $value; -00404 } -00405 -00406 // print $key . "=".$value . "<br>"; -00407 -00408 if ($key == "sortorder") -00409 { -00410 $sql = "REPLACE INTO ".MAIN_DB_PREFIX."user_param "; -00411 $sql .= " SET fk_user =".$user->id; -00412 $sql .= " ,page='".$GLOBALS["SCRIPT_URL"] . "'"; -00413 $sql .= " ,param='sortorder'"; -00414 $sql .= " ,value='".urlencode($value)."'"; -00415 -00416 $db->query($sql); -00417 $user->page_param["sortorder"] = $value; -00418 } -00419 if ($key == "begin") -00420 { -00421 $sql = "REPLACE INTO ".MAIN_DB_PREFIX."user_param "; -00422 $sql .= " SET fk_user =".$user->id; -00423 $sql .= " ,page='".$GLOBALS["SCRIPT_URL"] . "'"; -00424 $sql .= " ,param='begin'"; -00425 $sql .= " ,value='".$value."'"; -00426 -00427 $db->query($sql); -00428 $user->page_param["begin"] = $value; -00429 } -00430 if ($key == "page") -00431 { -00432 $sql = "REPLACE INTO ".MAIN_DB_PREFIX."user_param "; -00433 $sql .= " SET fk_user =".$user->id; -00434 $sql .= " ,page='".$GLOBALS["SCRIPT_URL"] . "'"; -00435 $sql .= " ,param='page'"; -00436 $sql .= " ,value='".$value."'"; -00437 -00438 $db->query($sql); -00439 $user->page_param["page"] = $value; -00440 } -00441 } -00442 } -00443 -00451 function transcoS2L($zonein,$devise) -00452 { -00453 // Open source offert par <A HREF="mailto:alainfloch@free.fr?subject=chif2let">alainfloch@free.fr</A> 28/10/2001, sans garantie. -00454 // début de la fonction de transcodification de somme en toutes lettres -00455 -00456 /* $zonein = "123,56"; -00457 * $devise = "E"; // préciser F si francs , sinon ce sera de l'euro -00458 * $r = transcoS2L($zonein,$devise); // appeler la fonction -00459 * echo "résultat vaut $r<br>"; -00460 * $zonelettresM = strtoupper($r); // si vous voulez la même zone mais tout en majuscules -00461 * echo "résultat en Majuscules vaut $zonelettresM<br>"; -00462 * $zonein = "1,01"; -00463 * $r = transcoS2L($zonein,$devise); -00464 * echo "résultat vaut $r<br>"; -00465 */ -00466 -00467 -00468 if ($devise == "F") -00469 { -00470 $unite_singulier = " franc "; -00471 $unite_pluriel = " francs "; -00472 $cent_singulier = " centime"; -00473 } -00474 else -00475 { -00476 $unite_singulier = " euro "; -00477 $unite_pluriel = " euros "; -00478 $cent_singulier = " centime"; -00479 } -00480 -00481 $arr1_99 = array("zéro","un","deux","trois", -00482 "quatre","cinq","six","sept", -00483 "huit","neuf","dix","onze","douze", -00484 "treize","quatorze","quinze","seize", -00485 "dix-sept","dix-huit","dix-neuf","vingt "); -00486 -00487 $arr1_99[30] = "trente "; -00488 $arr1_99[40] = "quarante "; -00489 $arr1_99[50] = "cinquante "; -00490 $arr1_99[60] = "soixante "; -00491 $arr1_99[70] = "soixante-dix "; -00492 $arr1_99[71] = "soixante et onze"; -00493 $arr1_99[80] = "quatre-vingts "; -00494 $i = 22; -00495 while ($i < 63) {// initialise la table -00496 $arr1_99[$i - 1] = $arr1_99[$i - 2]." et un"; -00497 $j = 0; -00498 while ($j < 8) { -00499 $k = $i + $j; -00500 $arr1_99[$k] = $arr1_99[$i - 2].$arr1_99[$j + 2]; -00501 $j++; -00502 } -00503 $i = $i + 10; -00504 } // fin initialise la table -00505 -00506 $i = 12; -00507 while ($i < 20) {// initialise la table (suite) -00508 $j = 60 + $i; -00509 $arr1_99[$j] = "soixante-".$arr1_99[$i]; -00510 $i++; -00511 } // fin initialise la table (suite) -00512 -00513 $i = 1; -00514 while ($i < 20) {// initialise la table (fin) -00515 $j = 80 + $i; -00516 $arr1_99[$j] = "quatre-vingt-".$arr1_99[$i]; -00517 $i++; -00518 } // fin initialise la table (fin) -00519 // echo "Pour une valeur en entrée = $zonein<br>"; //pour ceux qui ne croient que ce qu'ils voient ! -00520 // quelques petits controles s'imposent !! -00521 $valid = "[a-zA-Z\&\é\"\'\(\-\è\_\ç\à\)\=\;\:\!\*\$\^<>]"; -00522 if (ereg($valid,$zonein)) -00523 { -00524 $r = "<b>la chaîne ".$zonein." n'est pas valide</b>"; -00525 return($r); -00526 } -00527 $zone = explode(" ",$zonein); // supprimer les blancs séparateurs -00528 $zonein = implode("",$zone); // reconcatène la zone input -00529 $zone = explode(".",$zonein); // supprimer les points séparateurs -00530 $zonein = implode("",$zone); // reconcatène la zone input, ça c'est fort ! merci PHP -00531 $virg = strpos($zonein,",",1); // à la poursuite de la virgule -00532 $i = strlen($zonein); // et de la longueur de la zone input -00533 if ($virg == 0) { // ya pas de virgule -00534 if ($i > 7) -00535 { -00536 $r = "<b>la chaîne ".$zonein." est trop longue (maxi = 9 millions)</b>"; -00537 return($r); -00538 } -00539 $deb = 7 - $i; -00540 $zoneanaly = substr($zonechiffres,0,$deb).$zonein.",00"; -00541 } -00542 else -00543 { //ya une virgule -00544 $ti = explode(",",$zonein); // mettre de côté ce qu'il y a devant la virgule -00545 $i = strlen($ti[0]); // en controler la longueur -00546 $zonechiffres = "0000000,00"; -00547 if ($i > 7) -00548 { -00549 $r = "<b>la chaîne ".$zonein." est trop longue (maxi = 9 millions,00)</b>"; -00550 return($r); -00551 } -00552 $deb = 7 - $i; -00553 $zoneanaly = substr($zonechiffres,0,$deb).$zonein; -00554 } -00555 $M= substr($zoneanaly,0,1); -00556 if ($M != 0) -00557 { // qui veut gagner des millions -00558 $r = $arr1_99[$M]." million"; -00559 if ($M ==1) $r = $r." "; -00560 else $r = $r."s "; -00561 if (substr($zoneanaly,1,6)==0) -00562 { -00563 if ($devise == 'F') $r = $r." de "; -00564 else $r = $r."d'"; -00565 } -00566 } -00567 $CM= substr($zoneanaly,1,1); -00568 if ($CM == 1) -00569 { // qui veut gagner des centaines de mille -00570 $r = $r." cent "; -00571 } -00572 else -00573 { // ya des centaines de mille -00574 if ($CM > 1) -00575 { -00576 $r = $r. $arr1_99[$CM]." cent "; -00577 } -00578 } // fin du else ya des centaines de mille -00579 $MM= substr($zoneanaly,2,2); -00580 if (substr($zoneanaly,2,1)==0){ $MM = substr($zoneanaly,3,1);} // enlever le zéro des milliers cause indexation -00581 if ($MM ==0 && $CM > 0) -00582 { -00583 $r = $r."mille "; -00584 } -00585 if ($MM != 0) -00586 { -00587 if ($MM == 80) -00588 { -00589 $r = $r."quatre-vingt mille "; -00590 } -00591 else -00592 { -00593 if ($MM > 1 ) -00594 { -00595 $r = $r.$arr1_99[$MM]." mille "; -00596 } -00597 else -00598 { -00599 if ($CM == 0) $r = $r." mille "; -00600 else -00601 { -00602 $r = $r.$arr1_99[$MM]." mille "; -00603 } -00604 } -00605 } -00606 } -00607 $C2= substr($zoneanaly,5,2); -00608 if (substr($zoneanaly,5,1)==0){ $C2 = substr($zoneanaly,6,1);} // enlever le zéro des centaines cause indexation -00609 $C1= substr($zoneanaly,4,1); -00610 if ($C2 ==0 && $C1 > 1) -00611 { -00612 $r = $r.$arr1_99[$C1]." cents "; -00613 } -00614 else -00615 { -00616 if ($C1 == 1) $r = $r." cent "; -00617 else -00618 { -00619 if ($C1 > 1) $r = $r.$arr1_99[$C1]." cent "; -00620 } -00621 } -00622 if ($C2 != 0) -00623 { -00624 $r = $r.$arr1_99[$C2]; -00625 } -00626 if ($virg !=0) -00627 { -00628 if ($ti[0] > 1) $r = $r. $unite_pluriel; else $r = "un ".$unite_singulier; -00629 } -00630 else -00631 { -00632 if ($zonein > 1) $r = $r.$unite_pluriel; else $r = "un ".$unite_singulier; -00633 } -00634 $UN= substr($zoneanaly,8,2); -00635 if ($UN != "00") -00636 { -00637 $cts = $UN; -00638 if (substr($UN,0,1)==0){ $cts = substr($UN,1,1);} // enlever le zéro des centimes cause indexation -00639 $r = $r." et ". $arr1_99[$cts].$cent_singulier; -00640 if ($UN > 1) $r =$r."s"; // accorde au pluriel -00641 } -00642 $r1 = ltrim($r); // enleve quelques blancs possibles en début de zone -00643 $r = ucfirst($r1); // met le 1er caractère en Majuscule, c'est + zoli -00644 return($r); // retourne le résultat -00645 } // fin fonction transcoS2L -00646 -00658 function print_liste_field_titre($name, $file, $field, $begin="", $options="") -00659 { -00660 global $conf; -00661 -00662 print $name."&nbsp;"; -00663 print '<a href="'.$file.'?sortfield='.$field.'&amp;sortorder=asc&amp;begin='.$begin.$options.'">'; -00664 print '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1downarrow.png" border="0" alt="A-Z"></a>'; -00665 print '<a href="'.$file.'?sortfield='.$field.'&amp;sortorder=desc&amp;begin='.$begin.$options.'">'; -00666 print '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1uparrow.png" border="0" alt="Z-A"></a>'; -00667 } -00668 -00684 function print_liste_field_titre_new($name, $file, $field, $begin="", $options="", $td="", $sortfield="") -00685 { -00686 global $conf; -00687 if ($sortfield == $field) -00688 { -00689 print '<td class="menusel" '. $td.'>'; -00690 } -00691 else -00692 { -00693 print '<td '. $td.'>'; -00694 } -00695 print $name."&nbsp;"; -00696 print '<a href="'.$file.'?sortfield='.$field.'&amp;sortorder=asc&amp;begin='.$begin.$options.'">'; -00697 print '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1downarrow.png" border="0" alt="A-Z"></a>'; -00698 print '<a href="'.$file.'?sortfield='.$field.'&amp;sortorder=desc&amp;begin='.$begin.$options.'">'; -00699 print '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1uparrow.png" border="0" alt="Z-A"></a>'; -00700 print "</td>"; -00701 } -00702 -00708 function print_titre($titre) -00709 { -00710 print '<div class="titre">'.$titre.'</div>'; -00711 } -00712 -00719 function print_fiche_titre($titre, $mesg='') -00720 { -00721 print "\n".'<table width="100%" border="0" cellpadding="3" cellspacing="0">'; -00722 print '<tr><td><div class="titre" valign="middle">'.$titre.'</div></td>'; -00723 if (strlen($mesg)) -00724 { -00725 print '<td align="right" valign="middle"><b>'.$mesg.'</b></td>'; -00726 } -00727 print '</tr></table>'."\n"; -00728 } -00729 -00735 function dol_delete_file($file) -00736 { -00737 return unlink($file); -00738 } -00739 -00744 function block_access() -00745 { -00746 llxHeader(); -00747 print "Accés refusé"; -00748 llxFooter(); -00749 } -00750 -00751 /* -00752 * -00753 * -00754 */ -00755 -00756 function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $form='', $num=-1) -00757 { -00758 global $conf; -00759 -00760 if ($num > $conf->liste_limit or $num == -1) -00761 { -00762 $nextpage = 1; -00763 } -00764 else -00765 { -00766 $nextpage = 0; -00767 } -00768 -00769 print '<table width="100%" border="0" cellpadding="3" cellspacing="0">'; -00770 -00771 if ($page > 0) -00772 { -00773 print '<tr><td><div class="titre">'.$titre.' - page '.($page+1).'</div></td>'; -00774 } -00775 else -00776 { -00777 print '<tr><td><div class="titre">'.$titre.'</div></td>'; -00778 } -00779 -00780 if ($form) -00781 { -00782 print '<td align="left">'.$form.'</td>'; -00783 } -00784 -00785 print '<td align="right">'; -00786 -00787 if (strlen($sortfield)) -00788 { -00789 $options .= "&amp;sortfield=$sortfield"; -00790 } -00791 -00792 if (strlen($sortorder)) -00793 { -00794 $options .= "&amp;sortorder=$sortorder"; -00795 } -00796 -00797 // affichage des fleches de navigation -00798 -00799 print_fleche_navigation($page,$file,$options, $nextpage); -00800 -00801 print '</td></tr></table>'; -00802 } -00803 -00812 function print_fleche_navigation($page,$file,$options='', $nextpage) -00813 { -00814 global $conf; -00815 if ($page > 0) -00816 { -00817 print '<a href="'.$file.'?page='.($page-1).$options.'"><img alt="Page précédente" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1leftarrow.png" border="0"></a>'; -00818 } -00819 -00820 if ($nextpage > 0) -00821 { -00822 print '<a href="'.$file.'?page='.($page+1).$options.'"><img alt="Page suivante" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/1rightarrow.png" border="0"></a>'; -00823 } -00824 } -00825 -00832 function print_oui_non($value) -00833 { -00834 if ($value) -00835 { -00836 print '<option value="0">non'; -00837 print '<option value="1" selected>oui'; -00838 } -00839 else -00840 { -00841 print '<option value="0" selected>non'; -00842 print '<option value="1">oui'; -00843 } -00844 } -00845 -00852 function print_date_select($set_time='') -00853 { -00854 if (! $set_time) -00855 { -00856 $set_time = time(); -00857 } -00858 -00859 $strmonth[1] = "Janvier"; -00860 $strmonth[2] = "F&eacute;vrier"; -00861 $strmonth[3] = "Mars"; -00862 $strmonth[4] = "Avril"; -00863 $strmonth[5] = "Mai"; -00864 $strmonth[6] = "Juin"; -00865 $strmonth[7] = "Juillet"; -00866 $strmonth[8] = "Ao&ucirc;t"; -00867 $strmonth[9] = "Septembre"; -00868 $strmonth[10] = "Octobre"; -00869 $strmonth[11] = "Novembre"; -00870 $strmonth[12] = "D&eacute;cembre"; -00871 -00872 $smonth = 1; $endmonth = 12; -00873 $sday = 1; $endday = 31; -00874 -00875 $cday = date("d", $set_time); -00876 $cmonth = date("n", $set_time); -00877 $syear = date("Y", $set_time); -00878 -00879 print "<select name=\"reday\">"; -00880 -00881 for ($day = 1 ; $day <= $endday ; $day++) -00882 { -00883 if ($day == $cday) -00884 { -00885 print "<option value=\"$day\" selected>$day"; -00886 } -00887 else -00888 { -00889 print "<option value=\"$day\">$day"; -00890 } -00891 } -00892 -00893 print "</select>"; -00894 -00895 -00896 print "<select name=\"remonth\">"; -00897 for ($month = $smonth ; $month <= $endmonth ; $month++) -00898 { -00899 if ($month == $cmonth) -00900 { -00901 print "<option value=\"$month\" selected>" . $strmonth[$month]; -00902 } -00903 else -00904 { -00905 print "<option value=\"$month\">" . $strmonth[$month]; -00906 } -00907 } -00908 print "</select>"; -00909 -00910 print "<select name=\"reyear\">"; -00911 -00912 for ($year = $syear - 2; $year < $syear + 5 ; $year++) -00913 { -00914 if ($year == $syear) -00915 { -00916 print "<option value=\"$year\" SELECTED>$year"; -00917 } -00918 else -00919 { -00920 print "<option value=\"$year\">$year"; -00921 } -00922 } -00923 print "</select>\n"; -00924 -00925 } -00935 function print_heure_select($prefix,$begin=1,$end=23) { -00936 -00937 print '<select name="'.$prefix.'hour">'; -00938 for ($hour = $begin ; $hour <= $end ; $hour++) { -00939 print "<option value=\"$hour\">$hour"; -00940 } -00941 print "</select>&nbsp;H&nbsp;"; -00942 print '<select name="'.$prefix.'min">'; -00943 for ($min = 0 ; $min < 60 ; $min=$min+5) { -00944 if ($min < 10) { -00945 $min = "0" . $min; -00946 } -00947 print "<option value=\"$min\">$min"; -00948 } -00949 print "</select>\n"; -00950 } -00951 -00957 function print_duree_select($prefix) -00958 { -00959 print '<select name="'.$prefix.'hour">'; -00960 print "<option value=\"0\">0"; -00961 print "<option value=\"1\" SELECTED>1"; -00962 -00963 for ($hour = 2 ; $hour < 13 ; $hour++) -00964 { -00965 print "<option value=\"$hour\">$hour"; -00966 } -00967 print "</select>&nbsp;H&nbsp;"; -00968 print '<select name="'.$prefix.'min">'; -00969 for ($min = 0 ; $min < 55 ; $min=$min+5) -00970 { -00971 print "<option value=\"$min\">$min"; -00972 } -00973 print "</select>\n"; -00974 } -00975 -00985 function price($amount, $html=0) -00986 { -00987 if ($html) -00988 { -00989 -00990 $dec='.'; $thousand=' '; -00991 return ereg_replace(' ','&nbsp;',number_format($amount, 2, $dec, $thousand)); -00992 -00993 } -00994 else -00995 { -00996 return number_format($amount, 2, '.', ' '); -00997 } -00998 -00999 } -01000 -01007 function francs($euros) -01008 { -01009 return price($euros * 6.55957); -01010 } -01011 -01018 function tva($euros, $taux=19.6) -01019 { -01020 $taux = $taux / 100 ; -01021 -01022 return sprintf("%01.2f",($euros * $taux)); -01023 } -01024 -01031 function inctva($euros, $taux=1.196) -01032 { -01033 return sprintf("%01.2f",($euros * $taux)); -01034 } -01035 -01046 function stat_print($basename,$bc1,$bc2,$ftc, $jour) { -01047 -01048 $db = pg_Connect("","","","","$basename"); -01049 if (!$db) { -01050 echo "Pas de connexion a la base\n"; -01051 exit ; -01052 } -01053 -01054 $offset = $jour * 9; -01055 -01056 $sql="SELECT s.date, s.nb, l.libelle FROM stat_base as s, stat_cat as l WHERE s.cat = l.id ORDER by s.date DESC, s.cat ASC LIMIT 9 OFFSET $offset"; -01057 -01058 $result = $db->query($sql); -01059 if (!$result) { -01060 print "Erreur SELECT<br><h1>$sql</h1><br>"; -01061 return 1; -01062 } -01063 -01064 print "<table border=1 cellspacing=0 cellpadding=2>"; -01065 print "<tr><td><font color=\"white\">base <b>$basename</b></font></td>"; -01066 print "<td><font color=\"white\">libelle</font></td>"; -01067 print "</tr>"; -01068 -01069 $num = $db->num_rows(); -01070 $i = 0; -01071 -01072 $tag = 1; -01073 while ( $i < $num) { -01074 $obj = $db->fetch_object( $i); -01075 -01076 $tag = !$tag; -01077 -01078 print "<TR><TD>$obj->date</TD><TD>$obj->libelle</TD>\n"; -01079 print "<TD align=\"center\">$obj->nb</TD></TR>\n"; -01080 $i++; -01081 } -01082 print "</TABLE>"; -01083 $db->free(); -01084 -01085 $db->close(); -01086 -01087 } -01088 -01089 function tab_count($basename,$bc1,$bc2,$ftc) { -01090 -01091 $db = pg_Connect("","","","","$basename"); -01092 if (!$db) { -01093 echo "Pas de connexion a la base\n"; -01094 exit ; -01095 } -01096 -01097 $sql="SELECT count(*) AS nbcv from candidat WHERE active=1"; -01098 $result = $db->query($sql); -01099 if (!$result) { -01100 print "Erreur SELECT<br><h1>$sql</h1><br>"; -01101 return 1; -01102 } -01103 print "<table border=0 bgcolor=black cellspacing=0 cellpadding=0><tr><td>"; -01104 -01105 print "<table border=0 cellspacing=1 cellpadding=1>"; -01106 print "<tr><td><font color=\"white\">base <b>$basename</b></font></td>"; -01107 print "<td><font color=\"white\">libelle</font></td>"; -01108 print "</tr>"; -01109 $nbcv = $db->result( $i, "nbcv"); -01110 -01111 print "<tr $bc1><td><b>$ftc Nombre de CV</font></b></td>\n"; -01112 print "<td align=\"center\">$ftc $nbcv</td>\n"; -01113 print "</tr>\n"; -01114 $db->free(); -01115 -01116 $sql="SELECT count(*) AS nbcv from offre WHERE active=1"; -01117 -01118 $result = $db->query($sql); -01119 if (!$result) { -01120 print "Erreur SELECT<br><h1>$sql</h1><br>"; -01121 } -01122 $nbcv = $db->result( $i, "nbcv"); -01123 -01124 print "<tr $bc2><td><b>$ftc Nombre d'offre</font></b></td>"; -01125 print "<td align=\"center\">$ftc $nbcv</td>"; -01126 print "</tr>"; -01127 -01128 $db->free(); -01129 -01130 -01131 $sql="SELECT count(*) AS nbcv from candidat WHERE active=0"; -01132 -01133 $result = $db->query($sql); -01134 if (!$result) { -01135 print "Erreur SELECT<br><h1>$sql</h1><br>"; -01136 } -01137 -01138 $nbcv = $db->result( $i, "nbcv"); -01139 -01140 print "<tr $bc1><td><b>$ftc Nombre de CV inactifs</font></b></td>\n"; -01141 print "<td align=\"center\">$ftc $nbcv</td>"; -01142 print "</tr>"; -01143 -01144 $db->free(); -01145 -01146 -01147 $sql="SELECT count(*) AS nbcv from offre WHERE active=0"; -01148 -01149 $result = $db->query($sql); -01150 if (!$result) { -01151 print "Erreur SELECT<br><h1>$sql</h1><br>"; -01152 } -01153 -01154 $nbcv = $db->result( $i, "nbcv"); -01155 -01156 print "<tr $bc2><td><b>$ftc Nombre d'offres inactives</font></b></td>\n"; -01157 print "<td align=\"center\">$ftc $nbcv</td>\n"; -01158 print "</tr>\n"; -01159 -01160 $db->free(); -01161 -01162 $sql="SELECT count(*) AS nbsoc from logsoc"; -01163 -01164 $result = $db->query($sql); -01165 if (!$result) { -01166 print "Erreur SELECT<br><h1>$sql</h1><br>"; -01167 } -01168 -01169 $nbsoc = $db->result( $i, "nbsoc"); -01170 -01171 print "<tr $bc1><td><b>$ftc Nombre de logins societes</font></b></td>\n"; -01172 print "<td align=\"center\">$ftc $nbsoc</td>"; -01173 print "</tr>"; -01174 -01175 print "</td></tr></table></td></tr></table>"; -01176 -01177 $db->close(); -01178 -01179 } -01180 -01188 function logfile($str,$log="/var/log/dolibarr/dolibarr.log") -01189 { -01190 if (defined("MAIN_DEBUG") && MAIN_DEBUG ==1) -01191 { -01192 if (!file_exists($log)) -01193 { -01194 if (!$file=fopen($log,"w")) -01195 { -01196 return 0; -01197 } -01198 } -01199 else -01200 { -01201 if (!$file=fopen($log,"a+")) -01202 { -01203 return 0; -01204 } -01205 } -01206 $logentry=date("[d/M/Y:H:i:s] ").$str."\n"; -01207 if(!fwrite($file,$logentry)) { -01208 fclose($file); -01209 return 0; -01210 } -01211 fclose($file); -01212 return 1; -01213 } -01214 } -01215 -01224 function creer_pass_aleatoire($longueur = 8, $sel = "") { -01225 $seed = (double) (microtime() + 1) * time(); -01226 srand($seed); -01227 -01228 for ($i = 0; $i < $longueur; $i++) { -01229 if (!$s) { -01230 if (!$s) $s = rand(); -01231 $s = substr(md5(uniqid($s).$sel), 0, 16); -01232 } -01233 $r = unpack("Cr", pack("H2", $s.$s)); -01234 $x = $r['r'] & 63; -01235 if ($x < 10) $x = chr($x + 48); -01236 else if ($x < 36) $x = chr($x + 55); -01237 else if ($x < 62) $x = chr($x + 61); -01238 else if ($x == 63) $x = '/'; -01239 else $x = '.'; -01240 $pass .= $x; -01241 $s = substr($s, 2); -01242 } -01243 return $pass; -01244 } -01245 -01251 function initialiser_sel() { -01252 global $htsalt; -01253 -01254 $htsalt = '$1$'.creer_pass_aleatoire(); -01255 } -01256 -01257 ?> -

Généré le Fri Jul 16 08:51:51 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/functions_8inc_8php.html b/doc/dev/php/html/functions_8inc_8php.html deleted file mode 100644 index e39865459c0..00000000000 --- a/doc/dev/php/html/functions_8inc_8php.html +++ /dev/null @@ -1,1518 +0,0 @@ - - -dolibarr: functions.inc.php File Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence du fichier htdocs/lib/functions.inc.php

Ensemble de fonctions de base de dolibarr sous forme d'include. -Plus de détails... -

- -

-Aller au code source de ce fichier. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Fonctions

 dolibarr_syslog ($message)
 envoi des messages dolibarr dans syslog

 dolibarr_fiche_head ($links, $active=0)
 header d'une fiche

 dolibarr_set_const ($db, $name, $value, $type='chaine', $visible=0, $note='')
 insertion d'une constantes dans la base de données

 dolibarr_del_const ($db, $name)
 effacement d'une constante dans la base de données

 dolibarr_print_ca ($ca)
 formattage des nombres

 dolibarr_print_date ($time, $format="%d %b %Y")
 formattage de la date

 dolibarr_print_object_info ($object)
 affiche les informations d'un objet

 dolibarr_print_phone ($phone)
 formattage du telephone

 loginfunction ()
 fonction de login

accessforbidden ()
 acces interdit

 doliMoveFileUpload ($src_file, $dest_file)
 deplacer les fichiers telechargés

 transcoS2L ($zonein, $devise)
 transcodage de francs en euros

 print_liste_field_titre ($name, $file, $field, $begin="", $options="")
 affichage du titre d'une liste

 print_liste_field_titre_new ($name, $file, $field, $begin="", $options="", $td="", $sortfield="")
 affichage du titre d'une liste avec possibilité de tri et de choix du type de la balise td

 print_titre ($titre)
 affichage d'un titre

 print_fiche_titre ($titre, $mesg='')
 affichage d'un titre d'une fiche aligné a droite

 dol_delete_file ($file)
 effacement d'un fichier

block_access ()
 accès refusé

 print_fleche_navigation ($page, $file, $options='', $nextpage)
 fonction servant a afficher les fleches de navigation dans les pages de listes

 print_oui_non ($value)
 fonction servant a afficher un menu déroulant avec oui ou non

 print_date_select ($set_time='')
 fonction servant a afficher les mois dans un liste déroulante

 print_heure_select ($prefix, $begin=1, $end=23)
 fonction servant a afficher les heures/minutes dans un liste déroulante

 print_duree_select ($prefix)
 fonction servant a afficher une durée dans une liste déroulante

 price ($amount, $html=0)
 fonction qui retourne un montant monétaire formaté

 francs ($euros)
 fonction qui convertit des euros en francs

 tva ($euros, $taux=19.6)
 fonction qui calcule la tva

 inctva ($euros, $taux=1.196)
 fonction qui calcule le montant tva incluse

 stat_print ($basename, $bc1, $bc2, $ftc, $jour)
 fonction qui affiche des statistiques

 logfile ($str, $log="/var/log/dolibarr/dolibarr.log")
 fonction qui permet d'envoyer les infos dans un fichier de log

 creer_pass_aleatoire ($longueur=8, $sel="")
 fonction pour créer un mot de passe aléatoire

 initialiser_sel ()
 fonction pour initialiser sel

-


Description détaillée

-Ensemble de fonctions de base de dolibarr sous forme d'include. -

-

Auteur:
Rodolphe Quiedeville

-Jean-Louis Bergamo

-Laurent Destailleur

-
Version:
1.2.
-Ensemble de fonctions de base de dolibarr sous forme d'include -

-Définition dans le fichier functions.inc.php.


Documentation des fonctions

-

- - - - -
- - - - - - - - - - - - - - - - - - -
creer_pass_aleatoire longueur = 8,
sel = ""
-
- - - - - -
-   - - -

-fonction pour créer un mot de passe aléatoire -

-

Paramètres:
- - - -
longueur longueur du mot de passe
sel donnée aléatoire
-
-
Remarques:
la longueur est fixée a 8 par défaut

-la fonction a été prise sur http://www.uzine.net/spip

- -

-Définition à la ligne 1224 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - -
dol_delete_file file  ) 
-
- - - - - -
-   - - -

-effacement d'un fichier -

-

Paramètres:
- - -
file fichier a effacer
-
- -

-Définition à la ligne 735 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
dolibarr_del_const db,
name
-
- - - - - -
-   - - -

-effacement d'une constante dans la base de données -

-

Paramètres:
- - - -
db base de données
name nom de la constante
-
-
Remarques:
retourne 0 pour raté, 1 pour réussi
- -

-Définition à la ligne 124 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
dolibarr_fiche_head links,
active = 0
-
- - - - - -
-   - - -

-header d'une fiche -

-

Paramètres:
- - - -
links liens
active 
-
-
Remarques:
active = 0 par défaut
- -

-Définition à la ligne 63 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - -
dolibarr_print_ca ca  ) 
-
- - - - - -
-   - - -

-formattage des nombres -

-

Paramètres:
- - -
ca valeur a formater
-
-
Renvoie:
cat valeur formatée
- -

-Définition à la ligne 144 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
dolibarr_print_date time,
format = "%d %b %Y"
-
- - - - - -
-   - - -

-formattage de la date -

-

Paramètres:
- - - -
time date
format format de la date "%d %b %Y"
-
-
Remarques:
retourne la date formatée
- -

-Définition à la ligne 173 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - -
dolibarr_print_object_info object  ) 
-
- - - - - -
-   - - -

-affiche les informations d'un objet -

-

Paramètres:
- - -
object objet a afficher
-
- -

-Définition à la ligne 184 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - -
dolibarr_print_phone phone  ) 
-
- - - - - -
-   - - -

-formattage du telephone -

-

Paramètres:
- - -
phone numéro de telephone à formater
-
-
Renvoie:
phone numéro de téléphone formaté
-
Remarques:
net tient pas en compte le format belge 02/211 34 83
- -

-Définition à la ligne 199 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
dolibarr_set_const db,
name,
value,
type = 'chaine',
visible = 0,
note = ''
-
- - - - - -
-   - - -

-insertion d'une constantes dans la base de données -

-

Paramètres:
- - - - - - - -
db base de données
name nom de la constante
value valeur de la constante
type type de constante
visible la constante est t'elle visible
note explication de la constante
-
-
Remarques:
type = chaine par défaut

-visible = 0 par défaut

-retourne 0 pour raté, 1 pour réussi

- -

-Définition à la ligne 103 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - -
dolibarr_syslog message  ) 
-
- - - - - -
-   - - -

-envoi des messages dolibarr dans syslog -

-

Paramètres:
- - -
message message a envoyer a syslog
-
- -

-Définition à la ligne 44 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
doliMoveFileUpload src_file,
dest_file
-
- - - - - -
-   - - -

-deplacer les fichiers telechargés -

-

Paramètres:
- - - -
src_file fichier source
dest_file fichier de destination
-
- -

-Définition à la ligne 377 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - -
francs euros  ) 
-
- - - - - -
-   - - -

-fonction qui convertit des euros en francs -

-

Paramètres:
- - -
euros somme en euro à convertir
-
-
Renvoie:
price
- -

-Définition à la ligne 1007 du fichier functions.inc.php. -

-Références price().

-

- - - - -
- - - - - - - - - - - - - - - - - - -
inctva euros,
taux = 1.196
-
- - - - - -
-   - - -

-fonction qui calcule le montant tva incluse -

-

Paramètres:
- - - -
euros somme en euro
taux taux de tva
-
- -

-Définition à la ligne 1031 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - -
initialiser_sel  ) 
-
- - - - - -
-   - - -

-fonction pour initialiser sel -

-

Remarques:
la fonction a été prise sur http://www.uzine.net/spip
- -

-Définition à la ligne 1251 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
logfile str,
log = "/var/log/dolibarr/dolibarr.log"
-
- - - - - -
-   - - -

-fonction qui permet d'envoyer les infos dans un fichier de log -

-

Paramètres:
- - - -
str chaine a mettre dans le fichier
log nom du fichier de log
-
-
Remarques:
cette fonction ne marchera qui si la constante MAIN_DEBUG = 1
- -

-Définition à la ligne 1188 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - -
loginfunction  ) 
-
- - - - - -
-   - - -

-fonction de login -

-

Remarques:
if faut changer le code html dans la fonction pour changer le design

-le css devrait etre pris dans le repetoire de dolibarr et ne pas etre en dur !

- -

-Définition à la ligne 281 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
price amount,
html = 0
-
- - - - - -
-   - - -

-fonction qui retourne un montant monétaire formaté -

-

Paramètres:
- - - -
amount montant a formater
html formatage html ou pas
-
-
Remarques:
html = 0 par défaut

-fnction utilisée dans les pdf et les pages html

- -

-Définition à la ligne 985 du fichier functions.inc.php. -

-Référencé par francs().

-

- - - - -
- - - - - - - - - -
print_date_select set_time = ''  ) 
-
- - - - - -
-   - - -

-fonction servant a afficher les mois dans un liste déroulante -

-

Paramètres:
- - -
set_time 
-
-
Remarques:
set_time = '' par défaut
- -

-Définition à la ligne 852 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - -
print_duree_select prefix  ) 
-
- - - - - -
-   - - -

-fonction servant a afficher une durée dans une liste déroulante -

-

Paramètres:
- - -
prefix 
-
- -

-Définition à la ligne 957 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
print_fiche_titre titre,
mesg = ''
-
- - - - - -
-   - - -

-affichage d'un titre d'une fiche aligné a droite -

-

Paramètres:
- - - -
titre le titre a afficher
mesg message afficher
-
- -

-Définition à la ligne 719 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_fleche_navigation page,
file,
options = '',
nextpage
-
- - - - - -
-   - - -

-fonction servant a afficher les fleches de navigation dans les pages de listes -

-

Paramètres:
- - - - - -
page numéro de la page
file lien
options 
nextpage page suivante
-
- -

-Définition à la ligne 812 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
print_heure_select prefix,
begin = 1,
end = 23
-
- - - - - -
-   - - -

-fonction servant a afficher les heures/minutes dans un liste déroulante -

-

Paramètres:
- - - - -
prefix 
begin 
end 
-
-
Remarques:
begin = 1 par défaut

-end = 23 par défaut

- -

-Définition à la ligne 935 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_liste_field_titre name,
file,
field,
begin = "",
options = ""
-
- - - - - -
-   - - -

-affichage du titre d'une liste -

-

Paramètres:
- - - - - - -
name 
file 
field 
begin 
options 
-
-
Remarques:
begin = "" par défaut

-options = "" par défaut

- -

-Définition à la ligne 658 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_liste_field_titre_new name,
file,
field,
begin = "",
options = "",
td = "",
sortfield = ""
-
- - - - - -
-   - - -

-affichage du titre d'une liste avec possibilité de tri et de choix du type de la balise td -

-

Paramètres:
- - - - - - - - -
name 
file 
field 
begin 
options 
td 
sortfield 
-
-
Remarques:
begin = "" par défaut

-options = "" par défaut

-td = "" par défaut

-sortfield = "" par défaut

- -

-Définition à la ligne 684 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - -
print_oui_non value  ) 
-
- - - - - -
-   - - -

-fonction servant a afficher un menu déroulant avec oui ou non -

-

Paramètres:
- - -
value 
-
-
Remarques:
value peut avoir la valeur 0 ou 1
- -

-Définition à la ligne 832 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - -
print_titre titre  ) 
-
- - - - - -
-   - - -

-affichage d'un titre -

-

Paramètres:
- - -
titre le titre a afficher
-
- -

-Définition à la ligne 708 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
stat_print basename,
bc1,
bc2,
ftc,
jour
-
- - - - - -
-   - - -

-fonction qui affiche des statistiques -

-

Paramètres:
- - - - - - -
basename 
bc1 
bc2 
ftc 
jour 
-
- -

-Définition à la ligne 1046 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
transcoS2L zonein,
devise
-
- - - - - -
-   - - -

-transcodage de francs en euros -

-

Paramètres:
- - - -
zonein zone de depart
devise type de devise
-
-
Renvoie:
r
- -

-Définition à la ligne 451 du fichier functions.inc.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
tva euros,
taux = 19.6
-
- - - - - -
-   - - -

-fonction qui calcule la tva -

-

Paramètres:
- - - -
euros somme en euro
taux taux de tva
-
- -

-Définition à la ligne 1018 du fichier functions.inc.php. -

-Référencé par calcul_price().

-


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/functions_func.html b/doc/dev/php/html/functions_func.html deleted file mode 100644 index 0c75e0d1cde..00000000000 --- a/doc/dev/php/html/functions_func.html +++ /dev/null @@ -1,96 +0,0 @@ - - -dolibarr: Compound Member Index - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-
Tout | Fonctions
-
a | b | c | d | e | f | g | i | l | n | p | q | r | s | w
- -

- -

-

- a -

-

- b -

-

- c -

-

- d -

-

- e -

-

- f -

-

- g -

-

- i -

-

- l -

-

- n -

-

- p -

-

- q -

-

- r -

-

- s -

-

- w -

-
Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/globals.html b/doc/dev/php/html/globals.html deleted file mode 100644 index 2e1faf76b16..00000000000 --- a/doc/dev/php/html/globals.html +++ /dev/null @@ -1,80 +0,0 @@ - - -dolibarr: File Member Index - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-
Tout | Fonctions
-
a | b | c | d | f | i | l | m | p | s | t
- -

- -

-Liste de tous les membres de fichier documentés avec liens vers la documentation:

- a -

-

- b -

-

- c -

-

- d -

-

- f -

-

- i -

-

- l -

-

- m -

-

- p -

-

- s -

-

- t -

-
Généré le Fri Jul 16 08:51:53 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/globals_func.html b/doc/dev/php/html/globals_func.html deleted file mode 100644 index b0eb2c407a5..00000000000 --- a/doc/dev/php/html/globals_func.html +++ /dev/null @@ -1,80 +0,0 @@ - - -dolibarr: File Member Index - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-
Tout | Fonctions
-
a | b | c | d | f | i | l | m | p | s | t
- -

- -

-

- a -

-

- b -

-

- c -

-

- d -

-

- f -

-

- i -

-

- l -

-

- m -

-

- p -

-

- s -

-

- t -

-
Généré le Fri Jul 16 08:51:53 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/graph_legend.dot b/doc/dev/php/html/graph_legend.dot deleted file mode 100644 index 5420927dd83..00000000000 --- a/doc/dev/php/html/graph_legend.dot +++ /dev/null @@ -1,22 +0,0 @@ -digraph G -{ - edge [fontname="Helvetica",fontsize=10,labelfontname="Helvetica",labelfontsize=10]; - node [fontname="Helvetica",fontsize=10,shape=record]; - Node9 [shape="box",label="Inherited",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",style="filled" fontcolor="white"]; - Node10 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; - Node10 [shape="box",label="PublicBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classPublicBase.html"]; - Node11 -> Node10 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; - Node11 [shape="box",label="Truncated",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="red",URL="$classTruncated.html"]; - Node13 -> Node9 [dir=back,color="darkgreen",fontsize=10,style="solid",fontname="Helvetica"]; - Node13 [shape="box",label="ProtectedBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classProtectedBase.html"]; - Node14 -> Node9 [dir=back,color="firebrick4",fontsize=10,style="solid",fontname="Helvetica"]; - Node14 [shape="box",label="PrivateBase",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classPrivateBase.html"]; - Node15 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; - Node15 [shape="box",label="Undocumented",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="grey75"]; - Node16 -> Node9 [dir=back,color="midnightblue",fontsize=10,style="solid",fontname="Helvetica"]; - Node16 [shape="box",label="Templ< int >",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classTempl.html"]; - Node17 -> Node16 [dir=back,color="orange",fontsize=10,style="dashed",label="< int >",fontname="Helvetica"]; - Node17 [shape="box",label="Templ< T >",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classTempl.html"]; - Node18 -> Node9 [dir=back,color="darkorchid3",fontsize=10,style="dashed",label="m_usedClass",fontname="Helvetica"]; - Node18 [shape="box",label="Used",fontsize=10,height=0.2,width=0.4,fontname="Helvetica",color="black",URL="$classUsed.html"]; -} diff --git a/doc/dev/php/html/graph_legend.html b/doc/dev/php/html/graph_legend.html deleted file mode 100644 index c7fee0fdaf8..00000000000 --- a/doc/dev/php/html/graph_legend.html +++ /dev/null @@ -1,73 +0,0 @@ - - -dolibarr: Graph Legend - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Légende du graphe

Cette page explique comment interpréter les graphes générés par doxygen.

-Considérez l'exemple suivant:

/*! Classe invisible à cause d'une troncature */ -class Invisible { }; - -/*! Classe tronquée, la relation d'héritage est masquée */ -class Truncated : public Invisible { }; - -/*! Classe non documentée avec des commentaires Doxygen */ -class Undocumented { }; - -/*! Classe dérivée par héritage public */ -class PublicBase : public Truncated { }; - -/*! Un modèle de classe */ -template<class T> class Templ { }; - -/*! Classe dérivée par héritage protégé */ -class ProtectedBase { }; - -/*! Classe dérivée par héritage privé */ -class PrivateBase { }; - -/*! Classe utilisée par la classe dérivée */ -class Used { }; - -/*! Super-classe qui hérite de plusieurs autres classes */ -class Inherited : public PublicBase, - protected ProtectedBase, - private PrivateBase, - public Undocumented - public Templ<int> -{ - private: - Used *m_usedClass; -}; -
Si la valeur 240 est attribuée au tag MAX_DOT_GRAPH_HEIGHT du fichier de configuration, cela génèrera le graphe suivant:<p>
-graph_legend.png -
-

-Les rectangles du graphe ci-dessus ont la signification suivante:

-Les flèches ont la signification suivante: -
Généré le Fri Jul 16 08:51:53 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/graph_legend.png b/doc/dev/php/html/graph_legend.png deleted file mode 100644 index 344ea7feef2..00000000000 Binary files a/doc/dev/php/html/graph_legend.png and /dev/null differ diff --git a/doc/dev/php/html/index.html b/doc/dev/php/html/index.html deleted file mode 100644 index bc38a9530c2..00000000000 --- a/doc/dev/php/html/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - -dolibarr: Page principale - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

dolibarr Documentation

-

-

1.2.0


Généré le Fri Jul 16 08:51:51 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/ldap_8lib_8php-source.html b/doc/dev/php/html/ldap_8lib_8php-source.html deleted file mode 100644 index eb7bd9b61c9..00000000000 --- a/doc/dev/php/html/ldap_8lib_8php-source.html +++ /dev/null @@ -1,90 +0,0 @@ - - -dolibarr: htdocs/lib/ldap.lib.php Source File - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

htdocs/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> -00004 * -00005 * This program is free software; you can redistribute it and/or modify -00006 * it under the terms of the GNU General Public License as published by -00007 * the Free Software Foundation; either version 2 of the License, or -00008 * (at your option) any later version. -00009 * -00010 * This program is distributed in the hope that it will be useful, -00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of -00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -00013 * GNU General Public License for more details. -00014 * -00015 * You should have received a copy of the GNU General Public License -00016 * along with this program; if not, write to the Free Software -00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -00018 * or see http://www.gnu.org/ -00019 * -00020 * $Id$ -00021 * $Source$ -00022 * -00023 */ -00024 -00040 function dolibarr_ldap_connect() -00041 { -00042 $ldapconnect = ldap_connect(LDAP_SERVER_HOST); -00043 -00044 return $ldapconnect; -00045 } -00046 -00054 function dolibarr_ldap_bind($ds) -00055 { -00056 if (defined("LDAP_SERVER_PASS") && LDAP_SERVER_DN && LDAP_SERVER_PASS) -00057 { -00058 $ldapbind = ldap_bind($ds, LDAP_SERVER_DN, LDAP_SERVER_PASS); -00059 } -00060 -00061 return $ldapbind; -00062 } -00063 -00070 function dolibarr_ldap_unbind($ds) -00071 { -00072 -00073 $ldapunbind = ldap_unbind($ds); -00074 -00075 return $ldapunbind; -00076 } -00077 -00084 function dolibarr_ldap_getversion($ds) -00085 { -00086 $version = 0; -00087 -00088 ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version); -00089 -00090 return $version; -00091 } -00092 -00101 function dolibarr_ldap_setversion($ds,$version) -00102 { -00103 $ldapsetversion = ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version); -00104 -00105 return $ldapsetversion; -00106 } -00107 -00114 function dolibarr_ldap_unacc($str) -00115 { -00116 $stu = ereg_replace("é","e",$str); -00117 $stu = ereg_replace("è","e",$stu); -00118 $stu = ereg_replace("ê","e",$stu); -00119 $stu = ereg_replace("à","a",$stu); -00120 $stu = ereg_replace("ç","c",$stu); -00121 $stu = ereg_replace("ï","i",$stu); -00122 $stu = ereg_replace("ä","a",$stu); -00123 return $stu; -00124 } -00125 -00126 ?> -

Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/ldap_8lib_8php.html b/doc/dev/php/html/ldap_8lib_8php.html deleted file mode 100644 index ff38aad8186..00000000000 --- a/doc/dev/php/html/ldap_8lib_8php.html +++ /dev/null @@ -1,280 +0,0 @@ - - -dolibarr: ldap.lib.php File Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence du fichier htdocs/lib/ldap.lib.php

Librairie contenant les fonctions pour accèder au serveur ldap. -Plus de détails... -

- -

-Aller au code source de ce fichier. - - - - - - - - - - - - - - - - - - - - -

Fonctions

 dolibarr_ldap_connect ()
 ouverture d'une connection vers le serveur ldap.

 dolibarr_ldap_bind ($ds)
 bind au serveur ldap.

 dolibarr_ldap_unbind ($ds)
 unbind du serveur ldap.

 dolibarr_ldap_getversion ($ds)
 verification de la version du serveur ldap.

 dolibarr_ldap_setversion ($ds, $version)
 changement de la version du serveur ldap.

 dolibarr_ldap_unacc ($str)
 permet d'enlever les accents d'une chaine.

-


Description détaillée

-Librairie contenant les fonctions pour accèder au serveur ldap. -

-

Auteur:
Rodolphe Quiedeville.

-Benoit Mortier.

-
Version:
1.2.
-Ensemble des fonctions permettant d'accèder à un serveur ldap. -

-Définition dans le fichier ldap.lib.php.


Documentation des fonctions

-

- - - - -
- - - - - - - - - -
dolibarr_ldap_bind ds  ) 
-
- - - - - -
-   - - -

-bind au serveur ldap. -

-

Paramètres:
- - -
ds 
-
-
Renvoie:
bool
- -

-Définition à la ligne 54 du fichier ldap.lib.php.

-

- - - - -
- - - - - - - - -
dolibarr_ldap_connect  ) 
-
- - - - - -
-   - - -

-ouverture d'une connection vers le serveur ldap. -

-

Renvoie:
resource
- -

-Définition à la ligne 40 du fichier ldap.lib.php.

-

- - - - -
- - - - - - - - - -
dolibarr_ldap_getversion ds  ) 
-
- - - - - -
-   - - -

-verification de la version du serveur ldap. -

-

Paramètres:
- - -
ds 
-
-
Renvoie:
version
- -

-Définition à la ligne 84 du fichier ldap.lib.php.

-

- - - - -
- - - - - - - - - - - - - - - - - - -
dolibarr_ldap_setversion ds,
version
-
- - - - - -
-   - - -

-changement de la version du serveur ldap. -

-

Paramètres:
- - - -
ds 
version 
-
-
Renvoie:
version
- -

-Définition à la ligne 101 du fichier ldap.lib.php.

-

- - - - -
- - - - - - - - - -
dolibarr_ldap_unacc str  ) 
-
- - - - - -
-   - - -

-permet d'enlever les accents d'une chaine. -

-

Paramètres:
- - -
str 
-
-
Renvoie:
string
- -

-Définition à la ligne 114 du fichier ldap.lib.php.

-

- - - - -
- - - - - - - - - -
dolibarr_ldap_unbind ds  ) 
-
- - - - - -
-   - - -

-unbind du serveur ldap. -

-

Paramètres:
- - -
ds 
-
-
Renvoie:
bool
- -

-Définition à la ligne 70 du fichier ldap.lib.php.

-


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 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 deleted file mode 100644 index 115b45902f0..00000000000 --- a/doc/dev/php/html/mysql_8lib_8php-source.html +++ /dev/null @@ -1,298 +0,0 @@ - - -dolibarr: htdocs/lib/mysql.lib.php Source File - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

htdocs/lib/mysql.lib.php

Aller à la documentation de ce fichier.
00001 <?PHP -00002 /* Copyright (C) 2001 Fabien Seisen <seisen@linuxfr.org> -00003 * Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -00004 * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> -00005 * -00006 * $Id$ -00007 * $Source$ -00008 * -00009 * This program is free software; you can redistribute it and/or modify -00010 * it under the terms of the GNU General Public License as published by -00011 * the Free Software Foundation; either version 2 of the License, or -00012 * (at your option) any later version. -00013 * -00014 * This program is distributed in the hope that it will be useful, -00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of -00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -00017 * GNU General Public License for more details. -00018 * -00019 * You should have received a copy of the GNU General Public License -00020 * along with this program; if not, write to the Free Software -00021 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -00022 * -00023 */ -00024 -00041 class DoliDb { -00042 var $db, $results, $ok, $connected, $database_selected; -00043 -00044 // Constantes pour code erreurs -00045 var $ERROR_DUPLICATE=1062; -00046 var $ERROR_TABLEEXISTS=1050; -00047 -00057 function DoliDb($type = 'mysql', $host = '', $user = '', $pass = '', $name = '') -00058 -00059 // Se connecte au serveur et éventuellement à une base (si spécifié) -00060 // Renvoie 1 en cas de succès, 0 sinon -00061 -00062 { -00063 global $conf; -00064 -00065 if ($host == '') -00066 { -00067 $host = $conf->db->host; -00068 } -00069 -00070 if ($user == '') -00071 { -00072 $user = $conf->db->user; -00073 } -00074 -00075 if ($pass == '') -00076 { -00077 $pass = $conf->db->pass; -00078 } -00079 -00080 if ($name == '') -00081 { -00082 $name = $conf->db->name; -00083 } -00084 -00085 //print "Name DB: $host,$user,$pass,$name<br>"; -00086 -00087 // Essai connexion serveur -00088 -00089 $this->db = $this->connect($host, $user, $pass); -00090 -00091 if ($this->db) -00092 { -00093 $this->connected = 1; -00094 $this->ok = 1; -00095 } -00096 else -00097 { -00098 $this->connected = 0; -00099 $this->ok = 0; -00100 } -00101 -00102 // Si connexion serveur ok et si connexion base demandée, on essaie connexion base -00103 -00104 if ($this->connected && $name) -00105 { -00106 -00107 if ($this->select_db($name) == 1) -00108 { -00109 $this->database_selected = 1; -00110 $this->ok = 1; -00111 } -00112 else -00113 { -00114 $this->database_selected = 0; -00115 $this->ok = 0; -00116 } -00117 -00118 } -00119 else -00120 { -00121 // Pas de selection de base demandée, mais tout est ok -00122 -00123 $this->database_selected = 0; -00124 $this->ok = 1; -00125 } -00126 -00127 return $this->ok; -00128 } -00129 -00136 function select_db($database) -00137 { -00138 return mysql_select_db($database, $this->db); -00139 } -00140 -00149 function connect($host, $login, $passwd) -00150 { -00151 $this->db = @mysql_connect($host, $login, $passwd); -00152 //print "Resultat fonction connect: ".$this->db; -00153 return $this->db; -00154 } -00155 -00162 function create_db($database) -00163 { -00164 if (mysql_create_db ($database, $this->db)) -00165 { -00166 return 1; -00167 } -00168 else -00169 { -00170 return 0; -00171 } -00172 } -00173 -00179 function clone() -00180 { -00181 $db2 = new DoliDb("", "", "", "", ""); -00182 $db2->db = $this->db; -00183 return $db2; -00184 } -00185 -00194 function pconnect($host, $login, $passwd) -00195 { -00196 $this->db = mysql_pconnect($host, $login, $passwd); -00197 return $this->db; -00198 } -00199 -00205 function close() -00206 { -00207 return mysql_close($this->db); -00208 } -00209 -00216 function begin($do=1) -00217 { -00218 if ($do) -00219 { -00220 return $this->query("BEGIN"); -00221 } -00222 else -00223 { -00224 return 1; -00225 } -00226 } -00227 -00234 function commit($do=1) -00235 { -00236 if ($do) -00237 { -00238 return $this->query("COMMIT"); -00239 } -00240 else -00241 { -00242 return 1; -00243 } -00244 } -00245 -00252 function rollback($do=1) -00253 { -00254 if ($do) -00255 { -00256 return $this->query("ROLLBACK"); -00257 } -00258 else -00259 { -00260 return 1; -00261 } -00262 } -00263 -00272 function query($query, $limit="", $offset="") -00273 { -00274 $query = trim($query); -00275 //print "<p>$query</p>\n"; -00276 $this->results = mysql_query($query, $this->db); -00277 return $this->results; -00278 } -00279 -00286 function list_tables($database) -00287 { -00288 $this->results = mysql_list_tables($database, $this->db); -00289 return $this->results; -00290 } -00291 -00299 function result($nb, $fieldname) -00300 { -00301 return mysql_result($this->results, $nb, $fieldname); -00302 } -00303 -00309 function free() -00310 { -00311 return mysql_free_result($this->results); -00312 } -00313 -00319 function fetch_object() -00320 { -00321 return mysql_fetch_object($this->results); -00322 } -00323 -00331 function plimit($limit=0,$offset=0) -00332 { -00333 if ($offset > 0) -00334 { -00335 return " LIMIT $offset,$limit "; -00336 } -00337 else -00338 { -00339 return " LIMIT $limit "; -00340 } -00341 } -00342 -00343 -00344 function pdate($fname) -00345 { -00346 return "unix_timestamp($fname)"; -00347 } -00348 -00355 function idate($fname) -00356 { -00357 return strftime("%Y%m%d%H%M%S",$fname); -00358 } -00359 -00365 function fetch_array() -00366 { -00367 return mysql_fetch_array($this->results); -00368 } -00369 -00375 function fetch_row() -00376 { -00377 return mysql_fetch_row($this->results); -00378 } -00379 -00384 function fetch_field() -00385 { -00386 return mysql_fetch_field($this->results); -00387 } -00388 -00389 -00395 function num_rows() -00396 { -00397 return mysql_num_rows($this->results); -00398 } -00399 -00405 function num_fields() -00406 { -00407 return mysql_num_fields($this->results); -00408 } -00409 -00415 function error() -00416 { -00417 return mysql_error($this->db); -00418 } -00419 -00425 function errno() -00426 { -00427 // $ERROR_DUPLICATE=1062; -00428 // $ERROR_TABLEEXISTS=1050; -00429 -00430 return mysql_errno($this->db); -00431 } -00432 -00438 function last_insert_id() -00439 { -00440 return mysql_insert_id(); -00441 } -00442 -00448 function affected_rows() -00449 { -00450 return mysql_affected_rows(); -00451 } -00452 -00453 } -00454 -00455 ?> -

Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/mysql_8lib_8php.html b/doc/dev/php/html/mysql_8lib_8php.html deleted file mode 100644 index 9e92e0c22de..00000000000 --- a/doc/dev/php/html/mysql_8lib_8php.html +++ /dev/null @@ -1,33 +0,0 @@ - - -dolibarr: mysql.lib.php File Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence du fichier htdocs/lib/mysql.lib.php

Classe permettant de gérér la database de dolibarr. -Plus de détails... -

- -

-Aller au code source de ce fichier. - - - - - -

Classes

class  DoliDb
 Classe permettant de gérér la database de dolibarr. Plus de détails...

-


Description détaillée

-Classe permettant de gérér la database de dolibarr. -

-

Auteur:
Fabien Seisen

-Rodolphe Quiedeville.

-Laurent Destailleur.

-
Version:
1.2.
-Ensemble des fonctions permettant de gérer la database de dolibarr. -

-Définition dans le fichier mysql.lib.php.


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 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 deleted file mode 100644 index f75211bb703..00000000000 --- a/doc/dev/php/html/price_8lib_8php-source.html +++ /dev/null @@ -1,100 +0,0 @@ - - -dolibarr: htdocs/lib/price.lib.php Source File - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

htdocs/lib/price.lib.php

Aller à la documentation de ce fichier.
00001 <?PHP -00002 /* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -00003 * -00004 * This program is free software; you can redistribute it and/or modify -00005 * it under the terms of the GNU General Public License as published by -00006 * the Free Software Foundation; either version 2 of the License, or -00007 * (at your option) any later version. -00008 * -00009 * This program is distributed in the hope that it will be useful, -00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of -00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -00012 * GNU General Public License for more details. -00013 * -00014 * You should have received a copy of the GNU General Public License -00015 * along with this program; if not, write to the Free Software -00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -00017 * -00018 * $Id$ -00019 * $Source$ -00020 * -00021 */ -00022 -00038 function calcul_price($products, $remise_percent) -00039 { -00040 $total_ht = 0; -00041 $amount_ht = 0; -00042 $tva = array(); -00043 $total_tva = 0; -00044 $total_remise = 0; -00045 -00046 $num = sizeof($products); -00047 $i = 0; -00048 -00049 while ($i < $num) -00050 { -00051 $prod_price = $products[$i][0]; -00052 $prod_qty = $products[$i][1]; -00053 $prod_txtva = $products[$i][2]; -00054 -00055 $lprice = $prod_qty * $prod_price; -00056 -00057 $amount_ht = $amount_ht + $lprice; -00058 -00059 if ($remise_percent > 0) -00060 { -00061 $lremise = ($lprice * $remise_percent / 100); -00062 $lprice = $lprice - $lremise; -00063 $total_remise = $total_remise + $lremise; -00064 } -00065 -00066 $total_ht = $total_ht + $lprice; -00067 -00068 $ligne_tva = ($lprice * ($prod_txtva / 100)); -00069 -00070 $tva[$prod_txtva] = $tva[$prod_txtva] + $ligne_tva; -00071 $i++; -00072 } -00073 -00074 /* -00075 * Sommes et arrondis -00076 */ -00077 $j=0; -00078 $result[5] = array(); -00079 -00080 foreach ($tva as $key => $value) -00081 { -00082 $tva[$key] = round($tva[$key], 2); -00083 $total_tva = $total_tva + $tva[$key]; -00084 $result[5][$key] = $tva[$key]; -00085 $j++; -00086 } -00087 -00088 $total_ht = round($total_ht, 2); -00089 $total_tva = round($total_tva, 2); -00090 -00091 $total_ttc = $total_ht + $total_tva; -00092 -00093 /* -00094 * -00095 */ -00096 $result[0] = $total_ht; -00097 $result[1] = $total_tva; -00098 $result[2] = $total_ttc; -00099 $result[3] = $total_remise; -00100 $result[4] = $amount_ht; -00101 -00102 return $result; -00103 } -

Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/price_8lib_8php.html b/doc/dev/php/html/price_8lib_8php.html deleted file mode 100644 index f90bdbcfb06..00000000000 --- a/doc/dev/php/html/price_8lib_8php.html +++ /dev/null @@ -1,82 +0,0 @@ - - -dolibarr: price.lib.php File Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence du fichier htdocs/lib/price.lib.php

librairie contenant les fonctions pour calculer un prix. -Plus de détails... -

- -

-Aller au code source de ce fichier. - - - - - -

Fonctions

 calcul_price ($products, $remise_percent)
 permet de calculer un prix.

-


Description détaillée

-librairie contenant les fonctions pour calculer un prix. -

-

Auteur:
Rodolphe Quiedeville.
-
Version:
1.2.
-Ensemble des fonctions permettant de calculer un prix. -

-Définition dans le fichier price.lib.php.


Documentation des fonctions

-

- - - - -
- - - - - - - - - - - - - - - - - - -
calcul_price products,
remise_percent
-
- - - - - -
-   - - -

-permet de calculer un prix. -

-

Paramètres:
- - - -
products 
remise_percent 
-
-
Renvoie:
result
- -

-Définition à la ligne 38 du fichier price.lib.php. -

-Références tva().

-


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/thermometer_8php-source.html b/doc/dev/php/html/thermometer_8php-source.html deleted file mode 100644 index 4caf9ba99dd..00000000000 --- a/doc/dev/php/html/thermometer_8php-source.html +++ /dev/null @@ -1,193 +0,0 @@ - - -dolibarr: htdocs/lib/thermometer.php Source File - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

htdocs/lib/thermometer.php

Aller à la documentation de ce fichier.
00001 <?php -00002 /* Copyright (C) 2002 "stichting Blender Foundation, Timothy Kanters" -00003 * Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -00004 * -00005 * This program is free software; you can redistribute it and/or modify -00006 * it under the terms of the GNU General Public License as published by -00007 * the Free Software Foundation; either version 2 of the License, or -00008 * (at your option) any later version. -00009 * -00010 * This program is distributed in the hope that it will be useful, -00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of -00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -00013 * GNU General Public License for more details. -00014 * -00015 * You should have received a copy of the GNU General Public License -00016 * along with this program; if not, write to the Free Software -00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -00018 * -00019 * $Id$ -00020 * $Source$ -00021 * -00022 */ -00023 -00042 function moneyMeter($actualValue=0, $pendingValue=0, $intentValue=0) -00043 -00044 /* -00045 This function returns the html for the moneymeter. -00046 cachedValue: amount of actual money -00047 pendingValue: amount of money of pending memberships -00048 intentValue: amount of intended money (that's without the amount of actual money) -00049 */ -00050 { -00051 -00052 // variables -00053 $height="200"; -00054 $maximumValue=125000; -00055 -00056 $imageDir = "http://eucd.info/images/"; -00057 -00058 $imageTop = $imageDir . "therm_top.png"; -00059 $imageMiddleActual = $imageDir . "therm_actual.png"; -00060 $imageMiddlePending = $imageDir . "therm_pending.png"; -00061 $imageMiddleIntent = $imageDir . "therm_intent.png"; -00062 $imageMiddleGoal = $imageDir . "therm_goal.png"; -00063 $imageIndex = $imageDir . "therm_index.png"; -00064 $imageBottom = $imageDir . "therm_bottom.png"; -00065 $imageColorActual = $imageDir . "therm_color_actual.png"; -00066 $imageColorPending = $imageDir . "therm_color_pending.png"; -00067 $imageColorIntent = $imageDir . "therm_color_intent.png"; -00068 -00069 $htmlThermTop = ' -00070 <!-- Thermometer Begin --> -00071 <table cellpadding="0" cellspacing="4" border="0"> -00072 <tr><td> -00073 <table cellpadding="0" cellspacing="0" border="0"> -00074 <tr> -00075 <td colspan="2"><img src="' . $imageTop . '" width="58" height="6" border="0"></td> -00076 </tr> -00077 <tr> -00078 <td> -00079 <table cellpadding="0" cellspacing="0" border="0">'; -00080 -00081 $htmlSection = ' -00082 <tr><td><img src="{image}" width="26" height="{height}" border="0"></td></tr>'; -00083 -00084 $htmlThermbottom = ' -00085 </table> -00086 </td> -00087 <td><img src="' . $imageIndex . '" width="32" height="200" border="0"></td> -00088 </tr> -00089 <tr> -00090 <td colspan="2"><img src="' . $imageBottom . '" width="58" height="32" border="0"></td> -00091 </tr> -00092 </table> -00093 </td> -00094 </tr></table>'; -00095 -00096 // legenda -00097 -00098 $legendaActual = "&euro; " . round($actualValue); -00099 $legendaPending = "&euro; " . round($pendingValue); -00100 $legendaIntent = "&euro; " . round($intentValue); -00101 $legendaTotal = "&euro; " . round($actualValue + $pendingValue + $intentValue); -00102 $htmlLegenda = ' -00103 -00104 <table cellpadding="0" cellspacing="0" border="0"> -00105 <tr><td><img src="' . $imageColorActual . '" width="9" height="9">&nbsp;</td><td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Payé:<br />' . $legendaActual . '</b></font></td></tr> -00106 <tr><td><img src="' . $imageColorPending . '" width="9" height="9">&nbsp;</td><td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">En attente:<br />' . $legendaPending . '</font></td></tr> -00107 <tr><td><img src="' . $imageColorIntent . '" width="9" height="9">&nbsp;</td><td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Promesses:<br />' . $legendaIntent . '</font></td></tr> -00108 <tr><td>&nbsp;</td><td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Total:<br />' . $legendaTotal . '</font></td></tr> -00109 </table> -00110 -00111 <!-- Thermometer End -->'; -00112 -00113 // check and edit some values -00114 -00115 $error = 0; -00116 if ( $maximumValue <= 0 || $height <= 0 || $actualValue < 0 || $pendingValue < 0 || $intentValue < 0) -00117 { -00118 return "The money meter could not be processed<br>\n"; -00119 } -00120 if ( $actualValue > $maximumValue ) -00121 { -00122 $actualValue = $maximumValue; -00123 $pendingValue = 0; -00124 $intentValue = 0; -00125 } -00126 else -00127 { -00128 if ( ($actualValue + $pendingValue) > $maximumValue ) -00129 { -00130 $pendingValue = $maximumValue - $actualValue; -00131 $intentValue = 0; -00132 } -00133 else -00134 { -00135 if ( ($actualValue + $pendingValue + $intentValue) > $maximumValue ) -00136 { -00137 $intentValue = $maximumValue - $actualValue - $pendingValue; -00138 } -00139 } -00140 } -00141 -00142 // start writing the html (from bottom to top) -00143 -00144 // bottom -00145 $thermometer = $htmlThermbottom; -00146 -00147 // actual -00148 $sectionHeight = round(($actualValue / $maximumValue) * $height); -00149 $totalHeight = $totalHeight + $sectionHeight; -00150 if ( $sectionHeight > 0 ) -00151 { -00152 $section = $htmlSection; -00153 $section = str_replace("{image}", $imageMiddleActual, $section); -00154 $section = str_replace("{height}", $sectionHeight, $section); -00155 $thermometer = $section . $thermometer; -00156 } -00157 -00158 // pending -00159 $sectionHeight = round(($pendingValue / $maximumValue) * $height); -00160 $totalHeight = $totalHeight + $sectionHeight; -00161 if ( $sectionHeight > 0 ) -00162 { -00163 $section = $htmlSection; -00164 $section = str_replace("{image}", $imageMiddlePending, $section); -00165 $section = str_replace("{height}", $sectionHeight, $section); -00166 $thermometer = $section . $thermometer; -00167 } -00168 -00169 // intent -00170 $sectionHeight = round(($intentValue / $maximumValue) * $height); -00171 $totalHeight = $totalHeight + $sectionHeight; -00172 if ( $sectionHeight > 0 ) -00173 { -00174 $section = $htmlSection; -00175 $section = str_replace("{image}", $imageMiddleIntent, $section); -00176 $section = str_replace("{height}", $sectionHeight, $section); -00177 $thermometer = $section . $thermometer; -00178 } -00179 -00180 // goal -00181 $sectionHeight = $height- $totalHeight; -00182 if ( $sectionHeight > 0 ) -00183 { -00184 $section = $htmlSection; -00185 $section = str_replace("{image}", $imageMiddleGoal, $section); -00186 $section = str_replace("{height}", $sectionHeight, $section); -00187 $thermometer = $section . $thermometer; -00188 } -00189 -00190 // top -00191 $thermometer = $htmlThermTop . $thermometer; -00192 -00193 return $thermometer . $htmlLegenda; -00194 } -00195 -00196 ?> -00197 -00198 -00199 -

Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/thermometer_8php.html b/doc/dev/php/html/thermometer_8php.html deleted file mode 100644 index df4f2c29a69..00000000000 --- a/doc/dev/php/html/thermometer_8php.html +++ /dev/null @@ -1,88 +0,0 @@ - - -dolibarr: thermometer.php File Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence du fichier htdocs/lib/thermometer.php

Classe permettant d'afficher un thermometre. -Plus de détails... -

- -

-Aller au code source de ce fichier. - - - - - -

Fonctions

 moneyMeter ($actualValue=0, $pendingValue=0, $intentValue=0)
 permet d'afficher un thermometre monetaire.

-


Description détaillée

-Classe permettant d'afficher un thermometre. -

-

Auteur:
Rodolphe Quiedeville.

-Timothy Kanters.

-
Version:
1.2.
-Ensemble des fonctions permettant d'afficher un thermometre monetaire. -

-Définition dans le fichier thermometer.php.


Documentation des fonctions

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
moneyMeter actualValue = 0,
pendingValue = 0,
intentValue = 0
-
- - - - - -
-   - - -

-permet d'afficher un thermometre monetaire. -

-

Paramètres:
- - - - -
actualValue 
pendingValue 
intentValue 
-
-
Renvoie:
thermometer htmlLegenda
- -

-Définition à la ligne 42 du fichier thermometer.php.

-


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/vcard_8class_8php-source.html b/doc/dev/php/html/vcard_8class_8php-source.html deleted file mode 100644 index c668451a4ba..00000000000 --- a/doc/dev/php/html/vcard_8class_8php-source.html +++ /dev/null @@ -1,167 +0,0 @@ - - -dolibarr: htdocs/lib/vcard/vcard.class.php Source File - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

htdocs/lib/vcard/vcard.class.php

Aller à la documentation de ce fichier.
00001 <?PHP -00002 /*************************************************************************** -00003 -00004 PHP vCard class v2.0 -00005 (c) Kai Blankenhorn -00006 www.bitfolge.de/en -00007 kaib@bitfolge.de -00008 -00009 -00010 This program is free software; you can redistribute it and/or -00011 modify it under the terms of the GNU General Public License -00012 as published by the Free Software Foundation; either version 2 -00013 of the License, or (at your option) any later version. -00014 -00015 This program is distributed in the hope that it will be useful, -00016 but WITHOUT ANY WARRANTY; without even the implied warranty of -00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -00018 GNU General Public License for more details. -00019 -00020 You should have received a copy of the GNU General Public License -00021 along with this program; if not, write to the Free Software -00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -00023 -00024 ***************************************************************************/ -00025 -00035 function encode($string) { -00036 return escape(quoted_printable_encode($string)); -00037 } -00038 -00039 function escape($string) { -00040 return str_replace(";","\;",$string); -00041 } -00042 -00043 // taken from PHP documentation comments -00044 function quoted_printable_encode($input, $line_max = 76) { -00045 $hex = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'); -00046 $lines = preg_split("/(?:\r\n|\r|\n)/", $input); -00047 $eol = "\r\n"; -00048 $linebreak = "=0D=0A"; -00049 $escape = "="; -00050 $output = ""; -00051 -00052 for ($j=0;$j<count($lines);$j++) { -00053 $line = $lines[$j]; -00054 $linlen = strlen($line); -00055 $newline = ""; -00056 for($i = 0; $i < $linlen; $i++) { -00057 $c = substr($line, $i, 1); -00058 $dec = ord($c); -00059 if ( ($dec == 32) && ($i == ($linlen - 1)) ) { // convert space at eol only -00060 $c = "=20"; -00061 } elseif ( ($dec == 61) || ($dec < 32 ) || ($dec > 126) ) { // always encode "\t", which is *not* required -00062 $h2 = floor($dec/16); $h1 = floor($dec%16); -00063 $c = $escape.$hex["$h2"].$hex["$h1"]; -00064 } -00065 if ( (strlen($newline) + strlen($c)) >= $line_max ) { // CRLF is not counted -00066 $output .= $newline.$escape.$eol; // soft line break; " =\r\n" is okay -00067 $newline = " "; -00068 } -00069 $newline .= $c; -00070 } // end of for -00071 $output .= $newline; -00072 if ($j<count($lines)-1) $output .= $linebreak; -00073 } -00074 return trim($output); -00075 } -00076 -00083 class vCard { -00084 var $properties; -00085 var $filename; -00086 -00093 function setPhoneNumber($number, $type="") { -00094 // type may be PREF | WORK | HOME | VOICE | FAX | MSG | CELL | PAGER | BBS | CAR | MODEM | ISDN | VIDEO or any senseful combination, e.g. "PREF;WORK;VOICE" -00095 $key = "TEL"; -00096 if ($type!="") $key .= ";".$type; -00097 $key.= ";ENCODING=QUOTED-PRINTABLE"; -00098 $this->properties[$key] = quoted_printable_encode($number); -00099 } -00100 -00108 // UNTESTED !!! -00109 function setPhoto($type, $photo) { // $type = "GIF" | "JPEG" -00110 $this->properties["PHOTO;TYPE=$type;ENCODING=BASE64"] = base64_encode($photo); -00111 } -00112 -00118 function setFormattedName($name) { -00119 $this->properties["FN"] = quoted_printable_encode($name); -00120 } -00121 -00131 function setName($family="", $first="", $additional="", $prefix="", $suffix="") { -00132 $this->properties["N"] = "$family;$first;$additional;$prefix;$suffix"; -00133 $this->filename = "$first%20$family.vcf"; -00134 if ($this->properties["FN"]=="") $this->setFormattedName(trim("$prefix $first $additional $family $suffix")); -00135 } -00136 -00142 function setBirthday($date) { // $date format is YYYY-MM-DD -00143 $this->properties["BDAY"] = $date; -00144 } -00145 -00158 function setAddress($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="HOME;POSTAL") { -00159 // $type may be DOM | INTL | POSTAL | PARCEL | HOME | WORK or any combination of these: e.g. "WORK;PARCEL;POSTAL" -00160 $key = "ADR"; -00161 if ($type!="") $key.= ";$type"; -00162 $key.= ";ENCODING=QUOTED-PRINTABLE"; -00163 $this->properties[$key] = encode($name).";".encode($extended).";".encode($street).";".encode($city).";".encode($region).";".encode($zip).";".encode($country); -00164 -00165 if ($this->properties["LABEL;$type;ENCODING=QUOTED-PRINTABLE"] == "") { -00166 //$this->setLabel($postoffice, $extended, $street, $city, $region, $zip, $country, $type); -00167 } -00168 } -00169 -00182 function setLabel($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="HOME;POSTAL") { -00183 $label = ""; -00184 if ($postoffice!="") $label.= "$postoffice\r\n"; -00185 if ($extended!="") $label.= "$extended\r\n"; -00186 if ($street!="") $label.= "$street\r\n"; -00187 if ($zip!="") $label.= "$zip "; -00188 if ($city!="") $label.= "$city\r\n"; -00189 if ($region!="") $label.= "$region\r\n"; -00190 if ($country!="") $country.= "$country\r\n"; -00191 -00192 $this->properties["LABEL;$type;ENCODING=QUOTED-PRINTABLE"] = quoted_printable_encode($label); -00193 } -00194 -00200 function setEmail($address) { -00201 $this->properties["EMAIL;INTERNET"] = $address; -00202 } -00203 -00209 function setNote($note) { -00210 $this->properties["NOTE;ENCODING=QUOTED-PRINTABLE"] = quoted_printable_encode($note); -00211 } -00212 -00219 function setURL($url, $type="") { -00220 // $type may be WORK | HOME -00221 $key = "URL"; -00222 if ($type!="") $key.= ";$type"; -00223 $this->properties[$key] = $url; -00224 } -00225 -00230 function getVCard() { -00231 $text = "BEGIN:VCARD\r\n"; -00232 $text.= "VERSION:2.1\r\n"; -00233 foreach($this->properties as $key => $value) { -00234 $text.= "$key:$value\r\n"; -00235 } -00236 $text.= "REV:".date("Y-m-d")."T".date("H:i:s")."Z\r\n"; -00237 $text.= "MAILER:PHP vCard class by Kai Blankenhorn\r\n"; -00238 $text.= "END:VCARD\r\n"; -00239 return $text; -00240 } -00241 -00246 function getFileName() { -00247 return $this->filename; -00248 } -00249 } -00250 ?> -

Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/vcard_8class_8php.html b/doc/dev/php/html/vcard_8class_8php.html deleted file mode 100644 index 9d5a95a5f0f..00000000000 --- a/doc/dev/php/html/vcard_8class_8php.html +++ /dev/null @@ -1,31 +0,0 @@ - - -dolibarr: vcard.class.php File Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence du fichier htdocs/lib/vcard/vcard.class.php

Classe permettant de créer un fichier vcard. -Plus de détails... -

- -

-Aller au code source de ce fichier. - - - - - -

Classes

class  vCard
 Classe permettant de créer un fichier vcard. Plus de détails...

-


Description détaillée

-Classe permettant de créer un fichier vcard. -

-

Auteur:
Kai Blankenhorn.
-
Version:
2.0
-Ensemble des fonctions permettant de créer un fichier vcard. -

-Définition dans le fichier vcard.class.php.


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 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 deleted file mode 100644 index 8373c47b127..00000000000 --- a/doc/dev/php/html/webcal_8class_8php-source.html +++ /dev/null @@ -1,114 +0,0 @@ - - -dolibarr: htdocs/lib/webcal.class.php Source File - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

htdocs/lib/webcal.class.php

Aller à la documentation de ce fichier.
00001 <?PHP -00002 /* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -00003 * -00004 * This program is free software; you can redistribute it and/or modify -00005 * it under the terms of the GNU General Public License as published by -00006 * the Free Software Foundation; either version 2 of the License, or -00007 * (at your option) any later version. -00008 * -00009 * This program is distributed in the hope that it will be useful, -00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of -00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -00012 * GNU General Public License for more details. -00013 * -00014 * You should have received a copy of the GNU General Public License -00015 * along with this program; if not, write to the Free Software -00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -00017 * -00018 * $Id$ -00019 * $Source$ -00020 * -00021 */ -00022 -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 $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 .= " 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 { -00091 -00092 $sql = "INSERT INTO webcal_entry_user (cal_id, cal_login, cal_status)"; -00093 $sql .= " VALUES ($cal_id, '$cal_create_by', 'A')"; -00094 -00095 if ( $this->localdb->query($sql) ) -00096 { -00097 -00098 } -00099 else -00100 { -00101 $error = $this->localdb->error() . '<br>' .$sql; -00102 } -00103 } -00104 else -00105 { -00106 $error = $this->localdb->error() . '<br>' .$sql; -00107 } -00108 -00109 $this->localdb->close(); -00110 } -00111 -00118 function get_next_id() -00119 { -00120 -00121 $sql = "SELECT max(cal_id) FROM webcal_entry"; -00122 -00123 if ($this->localdb->query($sql)) -00124 { -00125 $id = $this->localdb->result(0, 0) + 1; -00126 return $id; -00127 } -00128 else -00129 { -00130 print $this->localdb->error(); -00131 } -00132 } -00133 } -00134 ?> -

Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/html/webcal_8class_8php.html b/doc/dev/php/html/webcal_8class_8php.html deleted file mode 100644 index f77d8ee6e1b..00000000000 --- a/doc/dev/php/html/webcal_8class_8php.html +++ /dev/null @@ -1,31 +0,0 @@ - - -dolibarr: webcal.class.php File Reference - - - -
Page principale | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe | Membres de fichier
-

Référence du fichier htdocs/lib/webcal.class.php

Classe permettant d'acceder a la database webcalendar. -Plus de détails... -

- -

-Aller au code source de ce fichier. - - - - - -

Classes

class  Webcal
 Classe permettant d'acceder a la database webcalendar. Plus de détails...

-


Description détaillée

-Classe permettant d'acceder a la database webcalendar. -

-

Auteur:
Rodolphe Quiedeville.
-
Version:
1.2.
-Ensemble des fonctions permettant d'acceder a la database webcalendar. -

-Définition dans le fichier webcal.class.php.


Généré le Fri Jul 16 08:51:52 2004 pour dolibarr par - -doxygen 1.3.7
- - diff --git a/doc/dev/php/latex/CMailFile_8class_8php.tex b/doc/dev/php/latex/CMailFile_8class_8php.tex deleted file mode 100644 index 41980d18a89..00000000000 --- a/doc/dev/php/latex/CMailFile_8class_8php.tex +++ /dev/null @@ -1,58 +0,0 @@ -\hypertarget{CMailFile_8class_8php}{ -\section{R\'{e}f\'{e}rence du fichier htdocs/lib/CMail\-File.class.php} -\label{CMailFile_8class_8php}\index{htdocs/lib/CMailFile.class.php@{htdocs/lib/CMailFile.class.php}} -} -Classe permettant d'envoyer des attachements par mail. - - -\subsection*{Classes} -\begin{CompactItemize} -\item -class \hyperlink{classCMailFile}{CMail\-File} -\begin{CompactList}\small\item\em Classe permettant d'envoyer des attachements par mail. \item\end{CompactList}\end{CompactItemize} -\subsection*{Fonctions} -\begin{CompactItemize} -\item -\hyperlink{CMailFile_8class_8php_a0}{my\_\-chunk\_\-split} (\$str) -\begin{CompactList}\small\item\em permet de diviser une chaine (RFC2045) \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant d'envoyer des attachements par mail. - -\begin{Desc} -\item[Auteur:]Dan Potter. - -Eric Seigne - -Laurent Destailleur. \end{Desc} -\begin{Desc} -\item[Version:]1.2.\end{Desc} - - -D\'{e}finition dans le fichier \hyperlink{CMailFile_8class_8php-source}{CMail\-File.class.php}. - -\subsection{Documentation des fonctions} -\hypertarget{CMailFile_8class_8php_a0}{ -\index{CMailFile.class.php@{CMail\-File.class.php}!my_chunk_split@{my\_\-chunk\_\-split}} -\index{my_chunk_split@{my\_\-chunk\_\-split}!CMailFile.class.php@{CMail\-File.class.php}} -\subsubsection[my\_\-chunk\_\-split]{\setlength{\rightskip}{0pt plus 5cm}my\_\-chunk\_\-split (\$ {\em str})}} -\label{CMailFile_8class_8php_a0} - - -permet de diviser une chaine (RFC2045) - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em str}]\end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]function chunk\_\-split qui remplace celle de php si n\'{e}c\'{e}ssaire - -76 caract\`{e}res par ligne, termin\'{e} par \char`\"{}$\backslash$r$\backslash$n\char`\"{} \end{Desc} - - -D\'{e}finition \`{a} la ligne 197 du fichier CMail\-File.class.php. - -R\'{e}f\'{e}renc\'{e} par CMail\-File::encode\_\-file(). \ No newline at end of file diff --git a/doc/dev/php/latex/Makefile b/doc/dev/php/latex/Makefile deleted file mode 100644 index e464a002a1d..00000000000 --- a/doc/dev/php/latex/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -all: refman.pdf - -refman.pdf: refman.tex - pdflatex refman.tex - makeindex refman.idx - pdflatex refman.tex - - latex_count=5 ; \ - while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\ - do \ - echo "Rerunning latex...." ;\ - pdflatex refman.tex ;\ - latex_count=`expr $$latex_count - 1` ;\ - done - - -clean: - rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out refman.pdf diff --git a/doc/dev/php/latex/annotated.tex b/doc/dev/php/latex/annotated.tex deleted file mode 100644 index c9fe5502f2a..00000000000 --- a/doc/dev/php/latex/annotated.tex +++ /dev/null @@ -1,7 +0,0 @@ -\section{dolibarr Liste des classes} -Liste des classes, structures, unions et interfaces avec une br\`{e}ve description:\begin{CompactList} -\item\contentsline{section}{\hyperlink{classCMailFile}{CMail\-File} (Classe permettant d'envoyer des attachements par mail )}{\pageref{classCMailFile}}{} -\item\contentsline{section}{\hyperlink{classDoliDb}{Doli\-Db} (Classe permettant de g\'{e}r\'{e}r la database de dolibarr )}{\pageref{classDoliDb}}{} -\item\contentsline{section}{\hyperlink{classvCard}{v\-Card} (Classe permettant de cr\'{e}er un fichier vcard )}{\pageref{classvCard}}{} -\item\contentsline{section}{\hyperlink{classWebcal}{Webcal} (Classe permettant d'acceder a la database webcalendar )}{\pageref{classWebcal}}{} -\end{CompactList} diff --git a/doc/dev/php/latex/classCMailFile.tex b/doc/dev/php/latex/classCMailFile.tex deleted file mode 100644 index 2b47abb28a6..00000000000 --- a/doc/dev/php/latex/classCMailFile.tex +++ /dev/null @@ -1,175 +0,0 @@ -\hypertarget{classCMailFile}{ -\section{R\'{e}f\'{e}rence de la classe CMail\-File} -\label{classCMailFile}\index{CMailFile@{CMailFile}} -} -Classe permettant d'envoyer des attachements par mail. - - -\subsection*{Fonctions membres publiques} -\begin{CompactItemize} -\item -\hyperlink{classCMailFile_a0}{CMail\-File} (\$subject, \$to, \$from, \$msg, \$filename\_\-list, \$mimetype\_\-list, \$mimefilename\_\-list, \$addr\_\-cc=\char`\"{}\char`\"{}) -\begin{CompactList}\small\item\em CMail\-File. \item\end{CompactList}\item -\hyperlink{classCMailFile_a1}{attach\_\-file} (\$filename\_\-list, \$mimetype\_\-list, \$mimefilename\_\-list) -\begin{CompactList}\small\item\em permet d'attacher un fichier \item\end{CompactList}\item -\hyperlink{classCMailFile_a2}{encode\_\-file} (\$sourcefile) -\begin{CompactList}\small\item\em permet d'encoder un fichier \item\end{CompactList}\item -\hypertarget{classCMailFile_a3}{ -\hyperlink{classCMailFile_a3}{sendfile} ()} -\label{classCMailFile_a3} - -\begin{CompactList}\small\item\em permet d'envoyer un fichier \item\end{CompactList}\item -\hyperlink{classCMailFile_a4}{write\_\-body} (\$msgtext, \$filename\_\-list) -\begin{CompactList}\small\item\em permet d'ecrire le body d'un message \item\end{CompactList}\item -\hyperlink{classCMailFile_a5}{write\_\-mimeheaders} (\$filename\_\-list, \$mimefilename\_\-list) -\begin{CompactList}\small\item\em cr\'{e}ation des headers mime \item\end{CompactList}\item -\hyperlink{classCMailFile_a6}{write\_\-smtpheaders} (\$addr\_\-from, \$addr\_\-cc) -\begin{CompactList}\small\item\em cr\'{e}ation des headers smtp \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant d'envoyer des attachements par mail. - -\begin{Desc} -\item[Remarques:]Eric Seigne $<$\href{mailto:eric.seigne@ryxeo.com}{\tt eric.seigne@ryxeo.com}$>$ 2004.01.08 - -ajout de la gestion des cc: - -ajout de l'expedition de plusieurs fichiers - -Laurent Destailleur 2004.02.10 - -correction d'un disfonctionnement \`{a} la gestion des attachements multiples \end{Desc} - - - - -D\'{e}finition \`{a} la ligne 40 du fichier CMail\-File.class.php. - -\subsection{Documentation des contructeurs et destructeur} -\hypertarget{classCMailFile_a0}{ -\index{CMailFile@{CMail\-File}!CMailFile@{CMailFile}} -\index{CMailFile@{CMailFile}!CMailFile@{CMail\-File}} -\subsubsection[CMailFile]{\setlength{\rightskip}{0pt plus 5cm}CMail\-File::CMail\-File (\$ {\em subject}, \$ {\em to}, \$ {\em from}, \$ {\em msg}, \$ {\em filename\_\-list}, \$ {\em mimetype\_\-list}, \$ {\em mimefilename\_\-list}, \$ {\em addr\_\-cc} = {\tt \char`\"{}\char`\"{}})}} -\label{classCMailFile_a0} - - -CMail\-File. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em subject}]\item[{\em to}]\item[{\em from}]\item[{\em msg}]\item[{\em filename\_\-list}]\item[{\em mimetype\_\-list}]\item[{\em mimefilename\_\-list}]\item[{\em addr\_\-cc}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 64 du fichier CMail\-File.class.php. - -R\'{e}f\'{e}rences attach\_\-file(), write\_\-body(), write\_\-mimeheaders(), et write\_\-smtpheaders(). - -\subsection{Documentation des fonctions membres} -\hypertarget{classCMailFile_a1}{ -\index{CMailFile@{CMail\-File}!attach_file@{attach\_\-file}} -\index{attach_file@{attach\_\-file}!CMailFile@{CMail\-File}} -\subsubsection[attach\_\-file]{\setlength{\rightskip}{0pt plus 5cm}CMail\-File::attach\_\-file (\$ {\em filename\_\-list}, \$ {\em mimetype\_\-list}, \$ {\em mimefilename\_\-list})}} -\label{classCMailFile_a1} - - -permet d'attacher un fichier - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em filename\_\-list}]\item[{\em mimetype\_\-list}]\item[{\em mimefilename\_\-list}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 83 du fichier CMail\-File.class.php. - -R\'{e}f\'{e}rences attach\_\-file(), et encode\_\-file(). - -R\'{e}f\'{e}renc\'{e} par attach\_\-file(), et CMail\-File().\hypertarget{classCMailFile_a2}{ -\index{CMailFile@{CMail\-File}!encode_file@{encode\_\-file}} -\index{encode_file@{encode\_\-file}!CMailFile@{CMail\-File}} -\subsubsection[encode\_\-file]{\setlength{\rightskip}{0pt plus 5cm}CMail\-File::encode\_\-file (\$ {\em sourcefile})}} -\label{classCMailFile_a2} - - -permet d'encoder un fichier - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em sourcefile}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 105 du fichier CMail\-File.class.php. - -R\'{e}f\'{e}rences encode\_\-file(), et my\_\-chunk\_\-split(). - -R\'{e}f\'{e}renc\'{e} par attach\_\-file(), et encode\_\-file().\hypertarget{classCMailFile_a4}{ -\index{CMailFile@{CMail\-File}!write_body@{write\_\-body}} -\index{write_body@{write\_\-body}!CMailFile@{CMail\-File}} -\subsubsection[write\_\-body]{\setlength{\rightskip}{0pt plus 5cm}CMail\-File::write\_\-body (\$ {\em msgtext}, \$ {\em filename\_\-list})}} -\label{classCMailFile_a4} - - -permet d'ecrire le body d'un message - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em msgtext}]\item[{\em filename\_\-list}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 135 du fichier CMail\-File.class.php. - -R\'{e}f\'{e}rences write\_\-body(). - -R\'{e}f\'{e}renc\'{e} par CMail\-File(), et write\_\-body().\hypertarget{classCMailFile_a5}{ -\index{CMailFile@{CMail\-File}!write_mimeheaders@{write\_\-mimeheaders}} -\index{write_mimeheaders@{write\_\-mimeheaders}!CMailFile@{CMail\-File}} -\subsubsection[write\_\-mimeheaders]{\setlength{\rightskip}{0pt plus 5cm}CMail\-File::write\_\-mimeheaders (\$ {\em filename\_\-list}, \$ {\em mimefilename\_\-list})}} -\label{classCMailFile_a5} - - -cr\'{e}ation des headers mime - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em filename\_\-list}]\item[{\em mimefilename\_\-list}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 153 du fichier CMail\-File.class.php. - -R\'{e}f\'{e}rences write\_\-mimeheaders(). - -R\'{e}f\'{e}renc\'{e} par CMail\-File(), et write\_\-mimeheaders().\hypertarget{classCMailFile_a6}{ -\index{CMailFile@{CMail\-File}!write_smtpheaders@{write\_\-smtpheaders}} -\index{write_smtpheaders@{write\_\-smtpheaders}!CMailFile@{CMail\-File}} -\subsubsection[write\_\-smtpheaders]{\setlength{\rightskip}{0pt plus 5cm}CMail\-File::write\_\-smtpheaders (\$ {\em addr\_\-from}, \$ {\em addr\_\-cc})}} -\label{classCMailFile_a6} - - -cr\'{e}ation des headers smtp - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em addr\_\-from}]\item[{\em addr\_\-cc}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 171 du fichier CMail\-File.class.php. - -R\'{e}f\'{e}rences write\_\-smtpheaders(). - -R\'{e}f\'{e}renc\'{e} par CMail\-File(), et write\_\-smtpheaders(). - -La documentation de cette classe a \'{e}t\'{e} g\'{e}n\'{e}r\'{e}e \`{a} partir du fichier suivant:\begin{CompactItemize} -\item -htdocs/lib/\hyperlink{CMailFile_8class_8php}{CMail\-File.class.php}\end{CompactItemize} diff --git a/doc/dev/php/latex/classDoliDb.aux b/doc/dev/php/latex/classDoliDb.aux deleted file mode 100644 index 5f7b0f55dff..00000000000 --- a/doc/dev/php/latex/classDoliDb.aux +++ /dev/null @@ -1,80 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {3.2}R\'{e}f\'{e}rence de la classe Doli\discretionary {-}{}{}Db}{9}{section.3.2}} -\newlabel{classDoliDb}{{3.2}{9}{R\'{e}f\'{e}rence de la classe Doli\-Db\relax }{section.3.2}{}} -\newlabel{classDoliDb_a20}{{3.2}{10}{Fonctions membres publiques\relax }{section*.3}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.2.1}Description d\'{e}taill\'{e}e}{10}{subsection.3.2.1}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.2.2}Documentation des contructeurs et destructeur}{10}{subsection.3.2.2}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.2.1}DoliDb}{10}{subsubsection.3.2.2.1}} -\newlabel{classDoliDb_a0}{{3.2.2.1}{10}{DoliDb\relax }{subsubsection.3.2.2.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.2.3}Documentation des fonctions membres}{11}{subsection.3.2.3}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.1}affected\_\discretionary {-}{}{}rows}{11}{subsubsection.3.2.3.1}} -\newlabel{classDoliDb_a26}{{3.2.3.1}{11}{affected\_\-rows\relax }{subsubsection.3.2.3.1}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.2}begin}{11}{subsubsection.3.2.3.2}} -\newlabel{classDoliDb_a7}{{3.2.3.2}{11}{begin\relax }{subsubsection.3.2.3.2}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.3}clone}{11}{subsubsection.3.2.3.3}} -\newlabel{classDoliDb_a4}{{3.2.3.3}{11}{clone\relax }{subsubsection.3.2.3.3}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.4}close}{11}{subsubsection.3.2.3.4}} -\newlabel{classDoliDb_a6}{{3.2.3.4}{11}{close\relax }{subsubsection.3.2.3.4}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.5}commit}{12}{subsubsection.3.2.3.5}} -\newlabel{classDoliDb_a8}{{3.2.3.5}{12}{commit\relax }{subsubsection.3.2.3.5}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.6}connect}{12}{subsubsection.3.2.3.6}} -\newlabel{classDoliDb_a2}{{3.2.3.6}{12}{connect\relax }{subsubsection.3.2.3.6}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.7}create\_\discretionary {-}{}{}db}{12}{subsubsection.3.2.3.7}} -\newlabel{classDoliDb_a3}{{3.2.3.7}{12}{create\_\-db\relax }{subsubsection.3.2.3.7}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.8}errno}{13}{subsubsection.3.2.3.8}} -\newlabel{classDoliDb_a24}{{3.2.3.8}{13}{errno\relax }{subsubsection.3.2.3.8}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.9}error}{13}{subsubsection.3.2.3.9}} -\newlabel{classDoliDb_a23}{{3.2.3.9}{13}{error\relax }{subsubsection.3.2.3.9}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.10}fetch\_\discretionary {-}{}{}array}{13}{subsubsection.3.2.3.10}} -\newlabel{classDoliDb_a18}{{3.2.3.10}{13}{fetch\_\-array\relax }{subsubsection.3.2.3.10}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.11}fetch\_\discretionary {-}{}{}object}{13}{subsubsection.3.2.3.11}} -\newlabel{classDoliDb_a14}{{3.2.3.11}{13}{fetch\_\-object\relax }{subsubsection.3.2.3.11}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.12}fetch\_\discretionary {-}{}{}row}{13}{subsubsection.3.2.3.12}} -\newlabel{classDoliDb_a19}{{3.2.3.12}{13}{fetch\_\-row\relax }{subsubsection.3.2.3.12}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.13}free}{14}{subsubsection.3.2.3.13}} -\newlabel{classDoliDb_a13}{{3.2.3.13}{14}{free\relax }{subsubsection.3.2.3.13}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.14}idate}{14}{subsubsection.3.2.3.14}} -\newlabel{classDoliDb_a17}{{3.2.3.14}{14}{idate\relax }{subsubsection.3.2.3.14}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.15}last\_\discretionary {-}{}{}insert\_\discretionary {-}{}{}id}{14}{subsubsection.3.2.3.15}} -\newlabel{classDoliDb_a25}{{3.2.3.15}{14}{last\_\-insert\_\-id\relax }{subsubsection.3.2.3.15}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.16}list\_\discretionary {-}{}{}tables}{14}{subsubsection.3.2.3.16}} -\newlabel{classDoliDb_a11}{{3.2.3.16}{14}{list\_\-tables\relax }{subsubsection.3.2.3.16}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.17}num\_\discretionary {-}{}{}fields}{15}{subsubsection.3.2.3.17}} -\newlabel{classDoliDb_a22}{{3.2.3.17}{15}{num\_\-fields\relax }{subsubsection.3.2.3.17}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.18}num\_\discretionary {-}{}{}rows}{15}{subsubsection.3.2.3.18}} -\newlabel{classDoliDb_a21}{{3.2.3.18}{15}{num\_\-rows\relax }{subsubsection.3.2.3.18}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.19}pconnect}{15}{subsubsection.3.2.3.19}} -\newlabel{classDoliDb_a5}{{3.2.3.19}{15}{pconnect\relax }{subsubsection.3.2.3.19}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.20}plimit}{15}{subsubsection.3.2.3.20}} -\newlabel{classDoliDb_a15}{{3.2.3.20}{15}{plimit\relax }{subsubsection.3.2.3.20}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.21}query}{16}{subsubsection.3.2.3.21}} -\newlabel{classDoliDb_a10}{{3.2.3.21}{16}{query\relax }{subsubsection.3.2.3.21}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.22}result}{16}{subsubsection.3.2.3.22}} -\newlabel{classDoliDb_a12}{{3.2.3.22}{16}{result\relax }{subsubsection.3.2.3.22}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.23}rollback}{16}{subsubsection.3.2.3.23}} -\newlabel{classDoliDb_a9}{{3.2.3.23}{16}{rollback\relax }{subsubsection.3.2.3.23}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.2.3.24}select\_\discretionary {-}{}{}db}{17}{subsubsection.3.2.3.24}} -\newlabel{classDoliDb_a1}{{3.2.3.24}{17}{select\_\-db\relax }{subsubsection.3.2.3.24}{}} -\@setckpt{classDoliDb}{ -\setcounter{page}{18} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{3} -\setcounter{section}{2} -\setcounter{subsection}{3} -\setcounter{subsubsection}{24} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{3} -} diff --git a/doc/dev/php/latex/classDoliDb.tex b/doc/dev/php/latex/classDoliDb.tex deleted file mode 100644 index e7f75f6f89c..00000000000 --- a/doc/dev/php/latex/classDoliDb.tex +++ /dev/null @@ -1,523 +0,0 @@ -\hypertarget{classDoliDb}{ -\section{R\'{e}f\'{e}rence de la classe Doli\-Db} -\label{classDoliDb}\index{DoliDb@{DoliDb}} -} -Classe permettant de g\'{e}r\'{e}r la database de dolibarr. - - -\subsection*{Fonctions membres publiques} -\begin{CompactItemize} -\item -\hyperlink{classDoliDb_a0}{Doli\-Db} (\$type= 'mysql', \$host= '', \$user= '', \$pass= '', \$name= '') -\begin{CompactList}\small\item\em ouverture d'une connection vers le serveur et/ou une database. \item\end{CompactList}\item -\hyperlink{classDoliDb_a1}{select\_\-db} (\$database) -\begin{CompactList}\small\item\em selectionne une database. \item\end{CompactList}\item -\hyperlink{classDoliDb_a2}{connect} (\$host, \$login, \$passwd) -\begin{CompactList}\small\item\em connection vers une database. \item\end{CompactList}\item -\hyperlink{classDoliDb_a3}{create\_\-db} (\$database) -\begin{CompactList}\small\item\em cr\'{e}ation d'une database. \item\end{CompactList}\item -\hyperlink{classDoliDb_a4}{clone} () -\begin{CompactList}\small\item\em copie d'une database. \item\end{CompactList}\item -\hyperlink{classDoliDb_a5}{pconnect} (\$host, \$login, \$passwd) -\begin{CompactList}\small\item\em ouverture d'une connection vers une database. \item\end{CompactList}\item -\hyperlink{classDoliDb_a6}{close} () -\begin{CompactList}\small\item\em fermeture d'une connection vers une database. \item\end{CompactList}\item -\hyperlink{classDoliDb_a7}{begin} (\$do=1) -\begin{CompactList}\small\item\em debut d'une transaction. \item\end{CompactList}\item -\hyperlink{classDoliDb_a8}{commit} (\$do=1) -\begin{CompactList}\small\item\em \'{e}criture d'une transaction. \item\end{CompactList}\item -\hyperlink{classDoliDb_a9}{rollback} (\$do=1) -\begin{CompactList}\small\item\em \'{e}ffacement d'une transaction et retour au ancienne valeurs. \item\end{CompactList}\item -\hyperlink{classDoliDb_a10}{query} (\$query, \$limit=\char`\"{}\char`\"{}, \$offset=\char`\"{}\char`\"{}) -\begin{CompactList}\small\item\em requete vers une database. \item\end{CompactList}\item -\hyperlink{classDoliDb_a11}{list\_\-tables} (\$database) -\begin{CompactList}\small\item\em liste des tables dans une database. \item\end{CompactList}\item -\hyperlink{classDoliDb_a12}{result} (\$nb, \$fieldname) -\begin{CompactList}\small\item\em renvoie les donn\'{e}es de la requete. \item\end{CompactList}\item -\hyperlink{classDoliDb_a13}{free} () -\begin{CompactList}\small\item\em d\'{e}salloue la memoire de la requete. \item\end{CompactList}\item -\hyperlink{classDoliDb_a14}{fetch\_\-object} () -\begin{CompactList}\small\item\em renvoie les donn\'{e}es comme un objet. \item\end{CompactList}\item -\hyperlink{classDoliDb_a15}{plimit} (\$limit=0, \$offset=0) -\begin{CompactList}\small\item\em d\'{e}fini les limites de la requ\`{e}te. \item\end{CompactList}\item -\hyperlink{classDoliDb_a17}{idate} (\$fname) -\begin{CompactList}\small\item\em formatage de la date en fonction des locales. \item\end{CompactList}\item -\hyperlink{classDoliDb_a18}{fetch\_\-array} () -\begin{CompactList}\small\item\em renvoie les donn\'{e}es dans un tableau. \item\end{CompactList}\item -\hyperlink{classDoliDb_a19}{fetch\_\-row} () -\begin{CompactList}\small\item\em renvoie les donn\'{e}es comme un tableau. \item\end{CompactList}\item -\hypertarget{classDoliDb_a20}{ -\hyperlink{classDoliDb_a20}{fetch\_\-field} ()} -\label{classDoliDb_a20} - -\begin{CompactList}\small\item\em obtient les donn\'{e}es d'un colonne et renvoie les donn\'{e}es sous forme d'objet. \item\end{CompactList}\item -\hyperlink{classDoliDb_a21}{num\_\-rows} () -\begin{CompactList}\small\item\em renvoie le nombre de lignes dans le resultat de la requete. \item\end{CompactList}\item -\hyperlink{classDoliDb_a22}{num\_\-fields} () -\begin{CompactList}\small\item\em renvoie le nombre de champs dans le resultat de la requete. \item\end{CompactList}\item -\hyperlink{classDoliDb_a23}{error} () -\begin{CompactList}\small\item\em renvoie le texte de l'erreur mysql de l'operation precedente. \item\end{CompactList}\item -\hyperlink{classDoliDb_a24}{errno} () -\begin{CompactList}\small\item\em renvoie la valeur numerique de l'erreur mysql de l'operation precedente. \item\end{CompactList}\item -\hyperlink{classDoliDb_a25}{last\_\-insert\_\-id} () -\begin{CompactList}\small\item\em obtient l'id gen\'{e}r\'{e} par le pr\'{e}cedent INSERT. \item\end{CompactList}\item -\hyperlink{classDoliDb_a26}{affected\_\-rows} () -\begin{CompactList}\small\item\em obtient le nombre de lignes affect\'{e}es dans la pr\'{e}c\'{e}dente op\'{e}ration. \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant de g\'{e}r\'{e}r la database de dolibarr. - -Ensemble des fonctions permettant de g\'{e}rer la database de dolibarr - - - -D\'{e}finition \`{a} la ligne 41 du fichier mysql.lib.php. - -\subsection{Documentation des contructeurs et destructeur} -\hypertarget{classDoliDb_a0}{ -\index{DoliDb@{Doli\-Db}!DoliDb@{DoliDb}} -\index{DoliDb@{DoliDb}!DoliDb@{Doli\-Db}} -\subsubsection[DoliDb]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::Doli\-Db (\$ {\em type} = {\tt 'mysql'}, \$ {\em host} = {\tt ''}, \$ {\em user} = {\tt ''}, \$ {\em pass} = {\tt ''}, \$ {\em name} = {\tt ''})}} -\label{classDoliDb_a0} - - -ouverture d'une connection vers le serveur et/ou une database. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em type}]type de base de donn\'{e}es (mysql ou pgsql) \item[{\em host}]addresse de la base de donn\'{e}es \item[{\em user}]nom de l'utilisateur autoris\'{e} \item[{\em pass}]mot de passe \item[{\em name}]nom de la database \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 57 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences connect(), et select\_\-db(). - -\subsection{Documentation des fonctions membres} -\hypertarget{classDoliDb_a26}{ -\index{DoliDb@{Doli\-Db}!affected_rows@{affected\_\-rows}} -\index{affected_rows@{affected\_\-rows}!DoliDb@{Doli\-Db}} -\subsubsection[affected\_\-rows]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::affected\_\-rows ()}} -\label{classDoliDb_a26} - - -obtient le nombre de lignes affect\'{e}es dans la pr\'{e}c\'{e}dente op\'{e}ration. - -\begin{Desc} -\item[Renvoie:]rows \end{Desc} - - -D\'{e}finition \`{a} la ligne 448 du fichier mysql.lib.php.\hypertarget{classDoliDb_a7}{ -\index{DoliDb@{Doli\-Db}!begin@{begin}} -\index{begin@{begin}!DoliDb@{Doli\-Db}} -\subsubsection[begin]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::begin (\$ {\em do} = {\tt 1})}} -\label{classDoliDb_a7} - - -debut d'une transaction. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em do}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]string \end{Desc} - - -D\'{e}finition \`{a} la ligne 216 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences begin(), et query(). - -R\'{e}f\'{e}renc\'{e} par begin().\hypertarget{classDoliDb_a4}{ -\index{DoliDb@{Doli\-Db}!clone@{clone}} -\index{clone@{clone}!DoliDb@{Doli\-Db}} -\subsubsection[clone]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::clone ()}} -\label{classDoliDb_a4} - - -copie d'une database. - -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 179 du fichier mysql.lib.php.\hypertarget{classDoliDb_a6}{ -\index{DoliDb@{Doli\-Db}!close@{close}} -\index{close@{close}!DoliDb@{Doli\-Db}} -\subsubsection[close]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::close ()}} -\label{classDoliDb_a6} - - -fermeture d'une connection vers une database. - -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 205 du fichier mysql.lib.php.\hypertarget{classDoliDb_a8}{ -\index{DoliDb@{Doli\-Db}!commit@{commit}} -\index{commit@{commit}!DoliDb@{Doli\-Db}} -\subsubsection[commit]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::commit (\$ {\em do} = {\tt 1})}} -\label{classDoliDb_a8} - - -\'{e}criture d'une transaction. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em do}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]string \end{Desc} - - -D\'{e}finition \`{a} la ligne 234 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences commit(), et query(). - -R\'{e}f\'{e}renc\'{e} par commit().\hypertarget{classDoliDb_a2}{ -\index{DoliDb@{Doli\-Db}!connect@{connect}} -\index{connect@{connect}!DoliDb@{Doli\-Db}} -\subsubsection[connect]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::connect (\$ {\em host}, \$ {\em login}, \$ {\em passwd})}} -\label{classDoliDb_a2} - - -connection vers une database. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em host}]addresse de la base de donn\'{e}es \item[{\em login}]nom de l'utilisateur autoris\'{e} \item[{\em passwd}]mot de passe \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 149 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences connect(). - -R\'{e}f\'{e}renc\'{e} par connect(), et Doli\-Db().\hypertarget{classDoliDb_a3}{ -\index{DoliDb@{Doli\-Db}!create_db@{create\_\-db}} -\index{create_db@{create\_\-db}!DoliDb@{Doli\-Db}} -\subsubsection[create\_\-db]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::create\_\-db (\$ {\em database})}} -\label{classDoliDb_a3} - - -cr\'{e}ation d'une database. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em database}]nom de la database \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]result resultat 1 pour ok, 0 pour non ok \end{Desc} - - -D\'{e}finition \`{a} la ligne 162 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences create\_\-db(). - -R\'{e}f\'{e}renc\'{e} par create\_\-db().\hypertarget{classDoliDb_a24}{ -\index{DoliDb@{Doli\-Db}!errno@{errno}} -\index{errno@{errno}!DoliDb@{Doli\-Db}} -\subsubsection[errno]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::errno ()}} -\label{classDoliDb_a24} - - -renvoie la valeur numerique de l'erreur mysql de l'operation precedente. - -\begin{Desc} -\item[Renvoie:]error\_\-num \end{Desc} - - -D\'{e}finition \`{a} la ligne 425 du fichier mysql.lib.php.\hypertarget{classDoliDb_a23}{ -\index{DoliDb@{Doli\-Db}!error@{error}} -\index{error@{error}!DoliDb@{Doli\-Db}} -\subsubsection[error]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::error ()}} -\label{classDoliDb_a23} - - -renvoie le texte de l'erreur mysql de l'operation precedente. - -\begin{Desc} -\item[Renvoie:]error\_\-text \end{Desc} - - -D\'{e}finition \`{a} la ligne 415 du fichier mysql.lib.php.\hypertarget{classDoliDb_a18}{ -\index{DoliDb@{Doli\-Db}!fetch_array@{fetch\_\-array}} -\index{fetch_array@{fetch\_\-array}!DoliDb@{Doli\-Db}} -\subsubsection[fetch\_\-array]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::fetch\_\-array ()}} -\label{classDoliDb_a18} - - -renvoie les donn\'{e}es dans un tableau. - -\begin{Desc} -\item[Renvoie:]array \end{Desc} - - -D\'{e}finition \`{a} la ligne 365 du fichier mysql.lib.php.\hypertarget{classDoliDb_a14}{ -\index{DoliDb@{Doli\-Db}!fetch_object@{fetch\_\-object}} -\index{fetch_object@{fetch\_\-object}!DoliDb@{Doli\-Db}} -\subsubsection[fetch\_\-object]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::fetch\_\-object ()}} -\label{classDoliDb_a14} - - -renvoie les donn\'{e}es comme un objet. - -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 319 du fichier mysql.lib.php.\hypertarget{classDoliDb_a19}{ -\index{DoliDb@{Doli\-Db}!fetch_row@{fetch\_\-row}} -\index{fetch_row@{fetch\_\-row}!DoliDb@{Doli\-Db}} -\subsubsection[fetch\_\-row]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::fetch\_\-row ()}} -\label{classDoliDb_a19} - - -renvoie les donn\'{e}es comme un tableau. - -\begin{Desc} -\item[Renvoie:]array \end{Desc} - - -D\'{e}finition \`{a} la ligne 375 du fichier mysql.lib.php.\hypertarget{classDoliDb_a13}{ -\index{DoliDb@{Doli\-Db}!free@{free}} -\index{free@{free}!DoliDb@{Doli\-Db}} -\subsubsection[free]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::free ()}} -\label{classDoliDb_a13} - - -d\'{e}salloue la memoire de la requete. - -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 309 du fichier mysql.lib.php.\hypertarget{classDoliDb_a17}{ -\index{DoliDb@{Doli\-Db}!idate@{idate}} -\index{idate@{idate}!DoliDb@{Doli\-Db}} -\subsubsection[idate]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::idate (\$ {\em fname})}} -\label{classDoliDb_a17} - - -formatage de la date en fonction des locales. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em fname}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]date \end{Desc} - - -D\'{e}finition \`{a} la ligne 355 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences idate(). - -R\'{e}f\'{e}renc\'{e} par idate().\hypertarget{classDoliDb_a25}{ -\index{DoliDb@{Doli\-Db}!last_insert_id@{last\_\-insert\_\-id}} -\index{last_insert_id@{last\_\-insert\_\-id}!DoliDb@{Doli\-Db}} -\subsubsection[last\_\-insert\_\-id]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::last\_\-insert\_\-id ()}} -\label{classDoliDb_a25} - - -obtient l'id gen\'{e}r\'{e} par le pr\'{e}cedent INSERT. - -\begin{Desc} -\item[Renvoie:]id \end{Desc} - - -D\'{e}finition \`{a} la ligne 438 du fichier mysql.lib.php.\hypertarget{classDoliDb_a11}{ -\index{DoliDb@{Doli\-Db}!list_tables@{list\_\-tables}} -\index{list_tables@{list\_\-tables}!DoliDb@{Doli\-Db}} -\subsubsection[list\_\-tables]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::list\_\-tables (\$ {\em database})}} -\label{classDoliDb_a11} - - -liste des tables dans une database. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em database}]nom de la database \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 286 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences list\_\-tables(). - -R\'{e}f\'{e}renc\'{e} par list\_\-tables().\hypertarget{classDoliDb_a22}{ -\index{DoliDb@{Doli\-Db}!num_fields@{num\_\-fields}} -\index{num_fields@{num\_\-fields}!DoliDb@{Doli\-Db}} -\subsubsection[num\_\-fields]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::num\_\-fields ()}} -\label{classDoliDb_a22} - - -renvoie le nombre de champs dans le resultat de la requete. - -\begin{Desc} -\item[Renvoie:]int \end{Desc} - - -D\'{e}finition \`{a} la ligne 405 du fichier mysql.lib.php.\hypertarget{classDoliDb_a21}{ -\index{DoliDb@{Doli\-Db}!num_rows@{num\_\-rows}} -\index{num_rows@{num\_\-rows}!DoliDb@{Doli\-Db}} -\subsubsection[num\_\-rows]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::num\_\-rows ()}} -\label{classDoliDb_a21} - - -renvoie le nombre de lignes dans le resultat de la requete. - -\begin{Desc} -\item[Renvoie:]int \end{Desc} - - -D\'{e}finition \`{a} la ligne 395 du fichier mysql.lib.php.\hypertarget{classDoliDb_a5}{ -\index{DoliDb@{Doli\-Db}!pconnect@{pconnect}} -\index{pconnect@{pconnect}!DoliDb@{Doli\-Db}} -\subsubsection[pconnect]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::pconnect (\$ {\em host}, \$ {\em login}, \$ {\em passwd})}} -\label{classDoliDb_a5} - - -ouverture d'une connection vers une database. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em host}]addresse de la base de donn\'{e}es \item[{\em login}]nom de l'utilisateur autoris\'{e} \item[{\em passwd}]mot de passe \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 194 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences pconnect(). - -R\'{e}f\'{e}renc\'{e} par pconnect().\hypertarget{classDoliDb_a15}{ -\index{DoliDb@{Doli\-Db}!plimit@{plimit}} -\index{plimit@{plimit}!DoliDb@{Doli\-Db}} -\subsubsection[plimit]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::plimit (\$ {\em limit} = {\tt 0}, \$ {\em offset} = {\tt 0})}} -\label{classDoliDb_a15} - - -d\'{e}fini les limites de la requ\`{e}te. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em limit}]\item[{\em offset}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]limit \end{Desc} - - -D\'{e}finition \`{a} la ligne 331 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences plimit(). - -R\'{e}f\'{e}renc\'{e} par plimit().\hypertarget{classDoliDb_a10}{ -\index{DoliDb@{Doli\-Db}!query@{query}} -\index{query@{query}!DoliDb@{Doli\-Db}} -\subsubsection[query]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::query (\$ {\em query}, \$ {\em limit} = {\tt \char`\"{}\char`\"{}}, \$ {\em offset} = {\tt \char`\"{}\char`\"{}})}} -\label{classDoliDb_a10} - - -requete vers une database. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em query}]contenu de la query \item[{\em limit}]\item[{\em offset}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 272 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences query(). - -R\'{e}f\'{e}renc\'{e} par begin(), commit(), query(), et rollback().\hypertarget{classDoliDb_a12}{ -\index{DoliDb@{Doli\-Db}!result@{result}} -\index{result@{result}!DoliDb@{Doli\-Db}} -\subsubsection[result]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::result (\$ {\em nb}, \$ {\em fieldname})}} -\label{classDoliDb_a12} - - -renvoie les donn\'{e}es de la requete. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em nb}]contenu de la query \item[{\em fieldname}]nom du champ \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 299 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences result(). - -R\'{e}f\'{e}renc\'{e} par result().\hypertarget{classDoliDb_a9}{ -\index{DoliDb@{Doli\-Db}!rollback@{rollback}} -\index{rollback@{rollback}!DoliDb@{Doli\-Db}} -\subsubsection[rollback]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::rollback (\$ {\em do} = {\tt 1})}} -\label{classDoliDb_a9} - - -\'{e}ffacement d'une transaction et retour au ancienne valeurs. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em do}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]string \end{Desc} - - -D\'{e}finition \`{a} la ligne 252 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences query(), et rollback(). - -R\'{e}f\'{e}renc\'{e} par rollback().\hypertarget{classDoliDb_a1}{ -\index{DoliDb@{Doli\-Db}!select_db@{select\_\-db}} -\index{select_db@{select\_\-db}!DoliDb@{Doli\-Db}} -\subsubsection[select\_\-db]{\setlength{\rightskip}{0pt plus 5cm}Doli\-Db::select\_\-db (\$ {\em database})}} -\label{classDoliDb_a1} - - -selectionne une database. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em database}]nom de la database \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 136 du fichier mysql.lib.php. - -R\'{e}f\'{e}rences select\_\-db(). - -R\'{e}f\'{e}renc\'{e} par Doli\-Db(), et select\_\-db(). - -La documentation de cette classe a \'{e}t\'{e} g\'{e}n\'{e}r\'{e}e \`{a} partir du fichier suivant:\begin{CompactItemize} -\item -htdocs/lib/\hyperlink{mysql_8lib_8php}{mysql.lib.php}\end{CompactItemize} diff --git a/doc/dev/php/latex/classWebcal.aux b/doc/dev/php/latex/classWebcal.aux deleted file mode 100644 index eeafa741ea3..00000000000 --- a/doc/dev/php/latex/classWebcal.aux +++ /dev/null @@ -1,33 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {3.4}R\'{e}f\'{e}rence de la classe Webcal}{23}{section.3.4}} -\newlabel{classWebcal}{{3.4}{23}{R\'{e}f\'{e}rence de la classe Webcal\relax }{section.3.4}{}} -\newlabel{classWebcal_a0}{{3.4}{23}{Fonctions membres publiques\relax }{section*.5}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.4.1}Description d\'{e}taill\'{e}e}{23}{subsection.3.4.1}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.4.2}Documentation des fonctions membres}{23}{subsection.3.4.2}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.4.2.1}add}{23}{subsubsection.3.4.2.1}} -\newlabel{classWebcal_a1}{{3.4.2.1}{23}{add\relax }{subsubsection.3.4.2.1}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.4.2.2}get\_\discretionary {-}{}{}next\_\discretionary {-}{}{}id}{23}{subsubsection.3.4.2.2}} -\newlabel{classWebcal_a2}{{3.4.2.2}{23}{get\_\-next\_\-id\relax }{subsubsection.3.4.2.2}{}} -\@setckpt{classWebcal}{ -\setcounter{page}{25} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{3} -\setcounter{section}{4} -\setcounter{subsection}{2} -\setcounter{subsubsection}{2} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{3} -} diff --git a/doc/dev/php/latex/classWebcal.tex b/doc/dev/php/latex/classWebcal.tex deleted file mode 100644 index f37f29a104a..00000000000 --- a/doc/dev/php/latex/classWebcal.tex +++ /dev/null @@ -1,74 +0,0 @@ -\hypertarget{classWebcal}{ -\section{R\'{e}f\'{e}rence de la classe Webcal} -\label{classWebcal}\index{Webcal@{Webcal}} -} -Classe permettant d'acceder a la database webcalendar. - - -\subsection*{Fonctions membres publiques} -\begin{CompactItemize} -\item -\hypertarget{classWebcal_a0}{ -\hyperlink{classWebcal_a0}{Webcal} ()} -\label{classWebcal_a0} - -\begin{CompactList}\small\item\em Permet de se connecter a la database webcalendar. \item\end{CompactList}\item -\hyperlink{classWebcal_a1}{add} (\$user, \$date, \$texte, \$desc) -\begin{CompactList}\small\item\em ajoute une entree dans le calendrier de l'utilsateur \item\end{CompactList}\item -\hyperlink{classWebcal_a2}{get\_\-next\_\-id} () -\begin{CompactList}\small\item\em obtient l'id suivant dans le webcalendar \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant d'acceder a la database webcalendar. - -Ensemble des fonctions permettant d'acceder a la database webcalendar - - - -D\'{e}finition \`{a} la ligne 37 du fichier webcal.class.php. - -\subsection{Documentation des fonctions membres} -\hypertarget{classWebcal_a1}{ -\index{Webcal@{Webcal}!add@{add}} -\index{add@{add}!Webcal@{Webcal}} -\subsubsection[add]{\setlength{\rightskip}{0pt plus 5cm}Webcal::add (\$ {\em user}, \$ {\em date}, \$ {\em texte}, \$ {\em desc})}} -\label{classWebcal_a1} - - -ajoute une entree dans le calendrier de l'utilsateur - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[\mbox{$\leftarrow$} {\em user}]le login de l'utilisateur \item[\mbox{$\leftarrow$} {\em date}]la date de l'evenement dans le calendrier \item[\mbox{$\leftarrow$} {\em texte}]le titre a indiquer dans l'evenement \item[\mbox{$\leftarrow$} {\em desc}]la description a indiquer dans l'evenement \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 65 du fichier webcal.class.php. - -R\'{e}f\'{e}rences add(), et get\_\-next\_\-id(). - -R\'{e}f\'{e}renc\'{e} par add().\hypertarget{classWebcal_a2}{ -\index{Webcal@{Webcal}!get_next_id@{get\_\-next\_\-id}} -\index{get_next_id@{get\_\-next\_\-id}!Webcal@{Webcal}} -\subsubsection[get\_\-next\_\-id]{\setlength{\rightskip}{0pt plus 5cm}Webcal::get\_\-next\_\-id ()}} -\label{classWebcal_a2} - - -obtient l'id suivant dans le webcalendar - -\begin{Desc} -\item[Valeurs retourn\'{e}es:] -\begin{description} -\item[{\em id}]retourne l'id suivant dans le webcalendar \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 118 du fichier webcal.class.php. - -R\'{e}f\'{e}renc\'{e} par add(). - -La documentation de cette classe a \'{e}t\'{e} g\'{e}n\'{e}r\'{e}e \`{a} partir du fichier suivant:\begin{CompactItemize} -\item -htdocs/lib/\hyperlink{webcal_8class_8php}{webcal.class.php}\end{CompactItemize} diff --git a/doc/dev/php/latex/classWebcal_1_1Webcal.tex b/doc/dev/php/latex/classWebcal_1_1Webcal.tex deleted file mode 100644 index 40cf3ccb612..00000000000 --- a/doc/dev/php/latex/classWebcal_1_1Webcal.tex +++ /dev/null @@ -1,19 +0,0 @@ -\hypertarget{classWebcal_1_1Webcal}{ -\section{R\'{e}f\'{e}rence de la classe Webcal::Webcal} -\label{classWebcal_1_1Webcal}\index{Webcal::Webcal@{Webcal::Webcal}} -} -Classe permettant d'acceder a la database webcalendar. - - - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant d'acceder a la database webcalendar. - -Ensemble des fonctions permettant d'acceder a la database webcalendar. - - - -La documentation de cette classe a \'{e}t\'{e} g\'{e}n\'{e}r\'{e}e \`{a} partir du fichier suivant:\begin{CompactItemize} -\item -htdocs/lib/\hyperlink{webcal_8class_8php}{webcal.class.php}\end{CompactItemize} diff --git a/doc/dev/php/latex/class_8jabber_8php.aux b/doc/dev/php/latex/class_8jabber_8php.aux deleted file mode 100644 index 79d48453003..00000000000 --- a/doc/dev/php/latex/class_8jabber_8php.aux +++ /dev/null @@ -1,27 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {4.3}R\'{e}f\'{e}rence du fichier htdocs/lib/jabber/class.jabber.php}{37}{section.4.3}} -\newlabel{class_8jabber_8php}{{4.3}{37}{R\'{e}f\'{e}rence du fichier htdocs/lib/jabber/class.jabber.php\relax }{section.4.3}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.3.1}Description d\'{e}taill\'{e}e}{37}{subsection.4.3.1}} -\@setckpt{class_8jabber_8php}{ -\setcounter{page}{38} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{4} -\setcounter{section}{3} -\setcounter{subsection}{1} -\setcounter{subsubsection}{0} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{2} -} diff --git a/doc/dev/php/latex/class_8jabber_8php.tex b/doc/dev/php/latex/class_8jabber_8php.tex deleted file mode 100644 index 5af28da3875..00000000000 --- a/doc/dev/php/latex/class_8jabber_8php.tex +++ /dev/null @@ -1,19 +0,0 @@ -\hypertarget{class_8jabber_8php}{ -\section{R\'{e}f\'{e}rence du fichier htdocs/lib/jabber/class.jabber.php} -\label{class_8jabber_8php}\index{htdocs/lib/jabber/class.jabber.php@{htdocs/lib/jabber/class.jabber.php}} -} -Classe permettant de se connecter \`{a} un serveur jabber. - - - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant de se connecter \`{a} un serveur jabber. - -\begin{Desc} -\item[Auteur:]Carlo \char`\"{}Gossip\char`\"{} Zottmann. \end{Desc} -\begin{Desc} -\item[Version:]0.4.\end{Desc} -Ensemble des fonctions permettant de se connecter \`{a} un serveur jabber. - -D\'{e}finition dans le fichier \hyperlink{class_8jabber_8php-source}{class.jabber.php}. \ No newline at end of file diff --git a/doc/dev/php/latex/classvCard.aux b/doc/dev/php/latex/classvCard.aux deleted file mode 100644 index 9fed2ebfb0d..00000000000 --- a/doc/dev/php/latex/classvCard.aux +++ /dev/null @@ -1,50 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {3.3}R\'{e}f\'{e}rence de la classe v\discretionary {-}{}{}Card}{18}{section.3.3}} -\newlabel{classvCard}{{3.3}{18}{R\'{e}f\'{e}rence de la classe v\-Card\relax }{section.3.3}{}} -\newlabel{classvCard_a10}{{3.3}{18}{Fonctions membres publiques\relax }{section*.4}{}} -\newlabel{classvCard_a11}{{3.3}{18}{Fonctions membres publiques\relax }{section*.4}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.3.1}Description d\'{e}taill\'{e}e}{18}{subsection.3.3.1}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.3.2}Documentation des fonctions membres}{19}{subsection.3.3.2}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.1}setAddress}{19}{subsubsection.3.3.2.1}} -\newlabel{classvCard_a5}{{3.3.2.1}{19}{setAddress\relax }{subsubsection.3.3.2.1}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.2}setBirthday}{19}{subsubsection.3.3.2.2}} -\newlabel{classvCard_a4}{{3.3.2.2}{19}{setBirthday\relax }{subsubsection.3.3.2.2}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.3}setEmail}{19}{subsubsection.3.3.2.3}} -\newlabel{classvCard_a7}{{3.3.2.3}{19}{setEmail\relax }{subsubsection.3.3.2.3}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.4}setFormattedName}{20}{subsubsection.3.3.2.4}} -\newlabel{classvCard_a2}{{3.3.2.4}{20}{setFormattedName\relax }{subsubsection.3.3.2.4}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.5}setLabel}{20}{subsubsection.3.3.2.5}} -\newlabel{classvCard_a6}{{3.3.2.5}{20}{setLabel\relax }{subsubsection.3.3.2.5}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.6}setName}{20}{subsubsection.3.3.2.6}} -\newlabel{classvCard_a3}{{3.3.2.6}{20}{setName\relax }{subsubsection.3.3.2.6}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.7}setNote}{21}{subsubsection.3.3.2.7}} -\newlabel{classvCard_a8}{{3.3.2.7}{21}{setNote\relax }{subsubsection.3.3.2.7}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.8}setPhoneNumber}{21}{subsubsection.3.3.2.8}} -\newlabel{classvCard_a0}{{3.3.2.8}{21}{setPhoneNumber\relax }{subsubsection.3.3.2.8}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.9}setPhoto}{21}{subsubsection.3.3.2.9}} -\newlabel{classvCard_a1}{{3.3.2.9}{21}{setPhoto\relax }{subsubsection.3.3.2.9}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.3.2.10}setURL}{21}{subsubsection.3.3.2.10}} -\newlabel{classvCard_a9}{{3.3.2.10}{21}{setURL\relax }{subsubsection.3.3.2.10}{}} -\@setckpt{classvCard}{ -\setcounter{page}{23} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{3} -\setcounter{section}{3} -\setcounter{subsection}{2} -\setcounter{subsubsection}{10} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{3} -} diff --git a/doc/dev/php/latex/classvCard.tex b/doc/dev/php/latex/classvCard.tex deleted file mode 100644 index f6e1cbdea35..00000000000 --- a/doc/dev/php/latex/classvCard.tex +++ /dev/null @@ -1,259 +0,0 @@ -\hypertarget{classvCard}{ -\section{R\'{e}f\'{e}rence de la classe v\-Card} -\label{classvCard}\index{vCard@{vCard}} -} -Classe permettant de cr\'{e}er un fichier vcard. - - -\subsection*{Fonctions membres publiques} -\begin{CompactItemize} -\item -\hyperlink{classvCard_a0}{set\-Phone\-Number} (\$number, \$type=\char`\"{}\char`\"{}) -\begin{CompactList}\small\item\em mise en forme du num\'{e}ro de t\'{e}lephone \item\end{CompactList}\item -\hyperlink{classvCard_a1}{set\-Photo} (\$type, \$photo) -\begin{CompactList}\small\item\em mise en forme de la photo \item\end{CompactList}\item -\hyperlink{classvCard_a2}{set\-Formatted\-Name} (\$name) -\begin{CompactList}\small\item\em mise en forme du nom format\'{e} \item\end{CompactList}\item -\hyperlink{classvCard_a3}{set\-Name} (\$family=\char`\"{}\char`\"{}, \$first=\char`\"{}\char`\"{}, \$additional=\char`\"{}\char`\"{}, \$prefix=\char`\"{}\char`\"{}, \$suffix=\char`\"{}\char`\"{}) -\begin{CompactList}\small\item\em mise en forme du nom complet \item\end{CompactList}\item -\hyperlink{classvCard_a4}{set\-Birthday} (\$date) -\begin{CompactList}\small\item\em mise en forme de l'anniversaire \item\end{CompactList}\item -\hyperlink{classvCard_a5}{set\-Address} (\$postoffice=\char`\"{}\char`\"{}, \$extended=\char`\"{}\char`\"{}, \$street=\char`\"{}\char`\"{}, \$city=\char`\"{}\char`\"{}, \$region=\char`\"{}\char`\"{}, \$zip=\char`\"{}\char`\"{}, \$country=\char`\"{}\char`\"{}, \$type=\char`\"{}HOME;POSTAL\char`\"{}) -\begin{CompactList}\small\item\em mise en forme de l'adresse \item\end{CompactList}\item -\hyperlink{classvCard_a6}{set\-Label} (\$postoffice=\char`\"{}\char`\"{}, \$extended=\char`\"{}\char`\"{}, \$street=\char`\"{}\char`\"{}, \$city=\char`\"{}\char`\"{}, \$region=\char`\"{}\char`\"{}, \$zip=\char`\"{}\char`\"{}, \$country=\char`\"{}\char`\"{}, \$type=\char`\"{}HOME;POSTAL\char`\"{}) -\begin{CompactList}\small\item\em mise en forme du label \item\end{CompactList}\item -\hyperlink{classvCard_a7}{set\-Email} (\$address) -\begin{CompactList}\small\item\em mise en forme de l'email \item\end{CompactList}\item -\hyperlink{classvCard_a8}{set\-Note} (\$note) -\begin{CompactList}\small\item\em mise en forme de la note \item\end{CompactList}\item -\hyperlink{classvCard_a9}{set\-URL} (\$url, \$type=\char`\"{}\char`\"{}) -\begin{CompactList}\small\item\em mise en forme de l'url \item\end{CompactList}\item -\hypertarget{classvCard_a10}{ -\hyperlink{classvCard_a10}{get\-VCard} ()} -\label{classvCard_a10} - -\begin{CompactList}\small\item\em permet d'obtenir une vcard \item\end{CompactList}\item -\hypertarget{classvCard_a11}{ -\hyperlink{classvCard_a11}{get\-File\-Name} ()} -\label{classvCard_a11} - -\begin{CompactList}\small\item\em permet d'obtenir le nom de fichier \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant de cr\'{e}er un fichier vcard. - -Ensemble des fonctions permettant de cr\'{e}er un fichier vcard - - - -D\'{e}finition \`{a} la ligne 83 du fichier vcard.class.php. - -\subsection{Documentation des fonctions membres} -\hypertarget{classvCard_a5}{ -\index{vCard@{v\-Card}!setAddress@{setAddress}} -\index{setAddress@{setAddress}!vCard@{v\-Card}} -\subsubsection[setAddress]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-Address (\$ {\em postoffice} = {\tt \char`\"{}\char`\"{}}, \$ {\em extended} = {\tt \char`\"{}\char`\"{}}, \$ {\em street} = {\tt \char`\"{}\char`\"{}}, \$ {\em city} = {\tt \char`\"{}\char`\"{}}, \$ {\em region} = {\tt \char`\"{}\char`\"{}}, \$ {\em zip} = {\tt \char`\"{}\char`\"{}}, \$ {\em country} = {\tt \char`\"{}\char`\"{}}, \$ {\em type} = {\tt \char`\"{}HOME;POSTAL\char`\"{}})}} -\label{classvCard_a5} - - -mise en forme de l'adresse - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em postoffice}]\item[{\em extended}]\item[{\em street}]\item[{\em city}]\item[{\em region}]\item[{\em zip}]\item[{\em country}]\item[{\em type}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 158 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-Address(). - -R\'{e}f\'{e}renc\'{e} par set\-Address().\hypertarget{classvCard_a4}{ -\index{vCard@{v\-Card}!setBirthday@{setBirthday}} -\index{setBirthday@{setBirthday}!vCard@{v\-Card}} -\subsubsection[setBirthday]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-Birthday (\$ {\em date})}} -\label{classvCard_a4} - - -mise en forme de l'anniversaire - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em date}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 142 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-Birthday(). - -R\'{e}f\'{e}renc\'{e} par set\-Birthday().\hypertarget{classvCard_a7}{ -\index{vCard@{v\-Card}!setEmail@{setEmail}} -\index{setEmail@{setEmail}!vCard@{v\-Card}} -\subsubsection[setEmail]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-Email (\$ {\em address})}} -\label{classvCard_a7} - - -mise en forme de l'email - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em address}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 200 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-Email(). - -R\'{e}f\'{e}renc\'{e} par set\-Email().\hypertarget{classvCard_a2}{ -\index{vCard@{v\-Card}!setFormattedName@{setFormattedName}} -\index{setFormattedName@{setFormattedName}!vCard@{v\-Card}} -\subsubsection[setFormattedName]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-Formatted\-Name (\$ {\em name})}} -\label{classvCard_a2} - - -mise en forme du nom format\'{e} - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em name}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 118 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-Formatted\-Name(). - -R\'{e}f\'{e}renc\'{e} par set\-Formatted\-Name().\hypertarget{classvCard_a6}{ -\index{vCard@{v\-Card}!setLabel@{setLabel}} -\index{setLabel@{setLabel}!vCard@{v\-Card}} -\subsubsection[setLabel]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-Label (\$ {\em postoffice} = {\tt \char`\"{}\char`\"{}}, \$ {\em extended} = {\tt \char`\"{}\char`\"{}}, \$ {\em street} = {\tt \char`\"{}\char`\"{}}, \$ {\em city} = {\tt \char`\"{}\char`\"{}}, \$ {\em region} = {\tt \char`\"{}\char`\"{}}, \$ {\em zip} = {\tt \char`\"{}\char`\"{}}, \$ {\em country} = {\tt \char`\"{}\char`\"{}}, \$ {\em type} = {\tt \char`\"{}HOME;POSTAL\char`\"{}})}} -\label{classvCard_a6} - - -mise en forme du label - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em postoffice}]\item[{\em extended}]\item[{\em street}]\item[{\em city}]\item[{\em region}]\item[{\em zip}]\item[{\em country}]\item[{\em type}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 182 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-Label(). - -R\'{e}f\'{e}renc\'{e} par set\-Label().\hypertarget{classvCard_a3}{ -\index{vCard@{v\-Card}!setName@{setName}} -\index{setName@{setName}!vCard@{v\-Card}} -\subsubsection[setName]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-Name (\$ {\em family} = {\tt \char`\"{}\char`\"{}}, \$ {\em first} = {\tt \char`\"{}\char`\"{}}, \$ {\em additional} = {\tt \char`\"{}\char`\"{}}, \$ {\em prefix} = {\tt \char`\"{}\char`\"{}}, \$ {\em suffix} = {\tt \char`\"{}\char`\"{}})}} -\label{classvCard_a3} - - -mise en forme du nom complet - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em family}]\item[{\em first}]\item[{\em additional}]\item[{\em prefix}]\item[{\em suffix}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 131 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-Name(). - -R\'{e}f\'{e}renc\'{e} par set\-Name().\hypertarget{classvCard_a8}{ -\index{vCard@{v\-Card}!setNote@{setNote}} -\index{setNote@{setNote}!vCard@{v\-Card}} -\subsubsection[setNote]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-Note (\$ {\em note})}} -\label{classvCard_a8} - - -mise en forme de la note - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em note}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 209 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-Note(). - -R\'{e}f\'{e}renc\'{e} par set\-Note().\hypertarget{classvCard_a0}{ -\index{vCard@{v\-Card}!setPhoneNumber@{setPhoneNumber}} -\index{setPhoneNumber@{setPhoneNumber}!vCard@{v\-Card}} -\subsubsection[setPhoneNumber]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-Phone\-Number (\$ {\em number}, \$ {\em type} = {\tt \char`\"{}\char`\"{}})}} -\label{classvCard_a0} - - -mise en forme du num\'{e}ro de t\'{e}lephone - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em number}]num\'{e}ro de t\'{e}l\'{e}phone \item[{\em type}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 93 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-Phone\-Number(). - -R\'{e}f\'{e}renc\'{e} par set\-Phone\-Number().\hypertarget{classvCard_a1}{ -\index{vCard@{v\-Card}!setPhoto@{setPhoto}} -\index{setPhoto@{setPhoto}!vCard@{v\-Card}} -\subsubsection[setPhoto]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-Photo (\$ {\em type}, \$ {\em photo})}} -\label{classvCard_a1} - - -mise en forme de la photo - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em type}]\item[{\em photo}]\end{description} -\end{Desc} -\begin{Desc} -\item[Avertissement:]NON TESTE ! \end{Desc} - - -D\'{e}finition \`{a} la ligne 109 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-Photo(). - -R\'{e}f\'{e}renc\'{e} par set\-Photo().\hypertarget{classvCard_a9}{ -\index{vCard@{v\-Card}!setURL@{setURL}} -\index{setURL@{setURL}!vCard@{v\-Card}} -\subsubsection[setURL]{\setlength{\rightskip}{0pt plus 5cm}v\-Card::set\-URL (\$ {\em url}, \$ {\em type} = {\tt \char`\"{}\char`\"{}})}} -\label{classvCard_a9} - - -mise en forme de l'url - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em url}]\item[{\em type}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 219 du fichier vcard.class.php. - -R\'{e}f\'{e}rences set\-URL(). - -R\'{e}f\'{e}renc\'{e} par set\-URL(). - -La documentation de cette classe a \'{e}t\'{e} g\'{e}n\'{e}r\'{e}e \`{a} partir du fichier suivant:\begin{CompactItemize} -\item -htdocs/lib/vcard/\hyperlink{vcard_8class_8php}{vcard.class.php}\end{CompactItemize} diff --git a/doc/dev/php/latex/doxygen.sty b/doc/dev/php/latex/doxygen.sty deleted file mode 100644 index 0b5d2933551..00000000000 --- a/doc/dev/php/latex/doxygen.sty +++ /dev/null @@ -1,64 +0,0 @@ -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{doxygen} -\RequirePackage{calc} -\RequirePackage{array} -\pagestyle{fancyplain} -\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}} -\renewcommand{\chaptermark}[1]{\markboth{#1}{}} -\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} -\lhead[\fancyplain{}{\bfseries\thepage}] - {\fancyplain{}{\bfseries\rightmark}} -\rhead[\fancyplain{}{\bfseries\leftmark}] - {\fancyplain{}{\bfseries\thepage}} -\rfoot[\fancyplain{}{\bfseries\scriptsize G\'{e}n\'{e}r\'{e} le Fri Jul 16 08:51:53 2004 pour dolibarr par Doxygen }]{} -\lfoot[]{\fancyplain{}{\bfseries\scriptsize G\'{e}n\'{e}r\'{e} le Fri Jul 16 08:51:53 2004 pour dolibarr par Doxygen }} -\cfoot{} -\newenvironment{CompactList} -{\begin{list}{}{ - \setlength{\leftmargin}{0.5cm} - \setlength{\itemsep}{0pt} - \setlength{\parsep}{0pt} - \setlength{\topsep}{0pt} - \renewcommand{\makelabel}{}}} -{\end{list}} -\newenvironment{CompactItemize} -{ - \begin{itemize} - \setlength{\itemsep}{-3pt} - \setlength{\parsep}{0pt} - \setlength{\topsep}{0pt} - \setlength{\partopsep}{0pt} -} -{\end{itemize}} -\newcommand{\PBS}[1]{\let\temp=\\#1\let\\=\temp} -\newlength{\tmplength} -\newenvironment{TabularC}[1] -{ -\setlength{\tmplength} - {\linewidth/(#1)-\tabcolsep*2-\arrayrulewidth*(#1+1)/(#1)} - \par\begin{tabular*}{\linewidth} - {*{#1}{|>{\PBS\raggedright\hspace{0pt}}p{\the\tmplength}}|} -} -{\end{tabular*}\par} -\newcommand{\entrylabel}[1]{ - {\parbox[b]{\labelwidth-4pt}{\makebox[0pt][l]{\textbf{#1}}\\}}} -\newenvironment{Desc} -{\begin{list}{} - { - \settowidth{\labelwidth}{40pt} - \setlength{\leftmargin}{\labelwidth} - \setlength{\parsep}{0pt} - \setlength{\itemsep}{-4pt} - \renewcommand{\makelabel}{\entrylabel} - } -} -{\end{list}} -\newenvironment{Indent} - {\begin{list}{}{\setlength{\leftmargin}{0.5cm}} - \item[]\ignorespaces} - {\unskip\end{list}} -\setlength{\parindent}{0cm} -\setlength{\parskip}{0.2cm} -\addtocounter{secnumdepth}{1} -\sloppy -\usepackage[T1]{fontenc} diff --git a/doc/dev/php/latex/files.tex b/doc/dev/php/latex/files.tex deleted file mode 100644 index 1495ec2d270..00000000000 --- a/doc/dev/php/latex/files.tex +++ /dev/null @@ -1,12 +0,0 @@ -\section{dolibarr Liste des fichiers} -Liste de tous les fichiers document\'{e}s avec une br\`{e}ve description:\begin{CompactList} -\item\contentsline{section}{htdocs/lib/\hyperlink{CMailFile_8class_8php}{CMail\-File.class.php} (Classe permettant d'envoyer des attachements par mail )}{\pageref{CMailFile_8class_8php}}{} -\item\contentsline{section}{htdocs/lib/\hyperlink{functions_8inc_8php}{functions.inc.php} (Ensemble de fonctions de base de dolibarr sous forme d'include )}{\pageref{functions_8inc_8php}}{} -\item\contentsline{section}{htdocs/lib/\hyperlink{ldap_8lib_8php}{ldap.lib.php} (Librairie contenant les fonctions pour acc\`{e}der au serveur ldap )}{\pageref{ldap_8lib_8php}}{} -\item\contentsline{section}{htdocs/lib/\hyperlink{mysql_8lib_8php}{mysql.lib.php} (Classe permettant de g\'{e}r\'{e}r la database de dolibarr )}{\pageref{mysql_8lib_8php}}{} -\item\contentsline{section}{htdocs/lib/\hyperlink{price_8lib_8php}{price.lib.php} (Librairie contenant les fonctions pour calculer un prix )}{\pageref{price_8lib_8php}}{} -\item\contentsline{section}{htdocs/lib/\hyperlink{thermometer_8php}{thermometer.php} (Classe permettant d'afficher un thermometre )}{\pageref{thermometer_8php}}{} -\item\contentsline{section}{htdocs/lib/\hyperlink{webcal_8class_8php}{webcal.class.php} (Classe permettant d'acceder a la database webcalendar )}{\pageref{webcal_8class_8php}}{} -\item\contentsline{section}{htdocs/lib/jabber/\hyperlink{class_8jabber_8php}{class.jabber.php} (Classe permettant de se connecter \`{a} un serveur jabber )}{\pageref{class_8jabber_8php}}{} -\item\contentsline{section}{htdocs/lib/vcard/\hyperlink{vcard_8class_8php}{vcard.class.php} (Classe permettant de cr\'{e}er un fichier vcard )}{\pageref{vcard_8class_8php}}{} -\end{CompactList} diff --git a/doc/dev/php/latex/functions_8inc_8php.aux b/doc/dev/php/latex/functions_8inc_8php.aux deleted file mode 100644 index 9f6972aa78e..00000000000 --- a/doc/dev/php/latex/functions_8inc_8php.aux +++ /dev/null @@ -1,88 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {4.2}R\'{e}f\'{e}rence du fichier htdocs/lib/functions.inc.php}{27}{section.4.2}} -\newlabel{functions_8inc_8php}{{4.2}{27}{R\'{e}f\'{e}rence du fichier htdocs/lib/functions.inc.php\relax }{section.4.2}{}} -\newlabel{functions_8inc_8php_a22}{{4.2}{27}{Fonctions\relax }{section*.8}{}} -\newlabel{functions_8inc_8php_a31}{{4.2}{28}{Fonctions\relax }{section*.8}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.2.1}Description d\'{e}taill\'{e}e}{28}{subsection.4.2.1}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.2.2}Documentation des fonctions}{29}{subsection.4.2.2}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.1}creer\_\discretionary {-}{}{}pass\_\discretionary {-}{}{}aleatoire}{29}{subsubsection.4.2.2.1}} -\newlabel{functions_8inc_8php_a45}{{4.2.2.1}{29}{creer\_\-pass\_\-aleatoire\relax }{subsubsection.4.2.2.1}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.2}dol\_\discretionary {-}{}{}delete\_\discretionary {-}{}{}file}{29}{subsubsection.4.2.2.2}} -\newlabel{functions_8inc_8php_a30}{{4.2.2.2}{29}{dol\_\-delete\_\-file\relax }{subsubsection.4.2.2.2}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.3}dolibarr\_\discretionary {-}{}{}del\_\discretionary {-}{}{}const}{29}{subsubsection.4.2.2.3}} -\newlabel{functions_8inc_8php_a4}{{4.2.2.3}{29}{dolibarr\_\-del\_\-const\relax }{subsubsection.4.2.2.3}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.4}dolibarr\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}head}{29}{subsubsection.4.2.2.4}} -\newlabel{functions_8inc_8php_a2}{{4.2.2.4}{29}{dolibarr\_\-fiche\_\-head\relax }{subsubsection.4.2.2.4}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.5}dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}ca}{30}{subsubsection.4.2.2.5}} -\newlabel{functions_8inc_8php_a5}{{4.2.2.5}{30}{dolibarr\_\-print\_\-ca\relax }{subsubsection.4.2.2.5}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.6}dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}date}{30}{subsubsection.4.2.2.6}} -\newlabel{functions_8inc_8php_a6}{{4.2.2.6}{30}{dolibarr\_\-print\_\-date\relax }{subsubsection.4.2.2.6}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.7}dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}object\_\discretionary {-}{}{}info}{30}{subsubsection.4.2.2.7}} -\newlabel{functions_8inc_8php_a7}{{4.2.2.7}{30}{dolibarr\_\-print\_\-object\_\-info\relax }{subsubsection.4.2.2.7}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.8}dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}phone}{30}{subsubsection.4.2.2.8}} -\newlabel{functions_8inc_8php_a8}{{4.2.2.8}{30}{dolibarr\_\-print\_\-phone\relax }{subsubsection.4.2.2.8}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.9}dolibarr\_\discretionary {-}{}{}set\_\discretionary {-}{}{}const}{31}{subsubsection.4.2.2.9}} -\newlabel{functions_8inc_8php_a3}{{4.2.2.9}{31}{dolibarr\_\-set\_\-const\relax }{subsubsection.4.2.2.9}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.10}dolibarr\_\discretionary {-}{}{}syslog}{31}{subsubsection.4.2.2.10}} -\newlabel{functions_8inc_8php_a1}{{4.2.2.10}{31}{dolibarr\_\-syslog\relax }{subsubsection.4.2.2.10}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.11}doliMoveFileUpload}{31}{subsubsection.4.2.2.11}} -\newlabel{functions_8inc_8php_a23}{{4.2.2.11}{31}{doliMoveFileUpload\relax }{subsubsection.4.2.2.11}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.12}francs}{32}{subsubsection.4.2.2.12}} -\newlabel{functions_8inc_8php_a39}{{4.2.2.12}{32}{francs\relax }{subsubsection.4.2.2.12}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.13}inctva}{32}{subsubsection.4.2.2.13}} -\newlabel{functions_8inc_8php_a41}{{4.2.2.13}{32}{inctva\relax }{subsubsection.4.2.2.13}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.14}initialiser\_\discretionary {-}{}{}sel}{32}{subsubsection.4.2.2.14}} -\newlabel{functions_8inc_8php_a46}{{4.2.2.14}{32}{initialiser\_\-sel\relax }{subsubsection.4.2.2.14}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.15}logfile}{32}{subsubsection.4.2.2.15}} -\newlabel{functions_8inc_8php_a44}{{4.2.2.15}{32}{logfile\relax }{subsubsection.4.2.2.15}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.16}loginfunction}{33}{subsubsection.4.2.2.16}} -\newlabel{functions_8inc_8php_a21}{{4.2.2.16}{33}{loginfunction\relax }{subsubsection.4.2.2.16}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.17}price}{33}{subsubsection.4.2.2.17}} -\newlabel{functions_8inc_8php_a38}{{4.2.2.17}{33}{price\relax }{subsubsection.4.2.2.17}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.18}print\_\discretionary {-}{}{}date\_\discretionary {-}{}{}select}{33}{subsubsection.4.2.2.18}} -\newlabel{functions_8inc_8php_a35}{{4.2.2.18}{33}{print\_\-date\_\-select\relax }{subsubsection.4.2.2.18}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.19}print\_\discretionary {-}{}{}duree\_\discretionary {-}{}{}select}{33}{subsubsection.4.2.2.19}} -\newlabel{functions_8inc_8php_a37}{{4.2.2.19}{33}{print\_\-duree\_\-select\relax }{subsubsection.4.2.2.19}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.20}print\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}titre}{34}{subsubsection.4.2.2.20}} -\newlabel{functions_8inc_8php_a29}{{4.2.2.20}{34}{print\_\-fiche\_\-titre\relax }{subsubsection.4.2.2.20}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.21}print\_\discretionary {-}{}{}fleche\_\discretionary {-}{}{}navigation}{34}{subsubsection.4.2.2.21}} -\newlabel{functions_8inc_8php_a33}{{4.2.2.21}{34}{print\_\-fleche\_\-navigation\relax }{subsubsection.4.2.2.21}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.22}print\_\discretionary {-}{}{}heure\_\discretionary {-}{}{}select}{34}{subsubsection.4.2.2.22}} -\newlabel{functions_8inc_8php_a36}{{4.2.2.22}{34}{print\_\-heure\_\-select\relax }{subsubsection.4.2.2.22}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.23}print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre}{34}{subsubsection.4.2.2.23}} -\newlabel{functions_8inc_8php_a26}{{4.2.2.23}{34}{print\_\-liste\_\-field\_\-titre\relax }{subsubsection.4.2.2.23}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.24}print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre\_\discretionary {-}{}{}new}{35}{subsubsection.4.2.2.24}} -\newlabel{functions_8inc_8php_a27}{{4.2.2.24}{35}{print\_\-liste\_\-field\_\-titre\_\-new\relax }{subsubsection.4.2.2.24}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.25}print\_\discretionary {-}{}{}oui\_\discretionary {-}{}{}non}{35}{subsubsection.4.2.2.25}} -\newlabel{functions_8inc_8php_a34}{{4.2.2.25}{35}{print\_\-oui\_\-non\relax }{subsubsection.4.2.2.25}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.26}print\_\discretionary {-}{}{}titre}{35}{subsubsection.4.2.2.26}} -\newlabel{functions_8inc_8php_a28}{{4.2.2.26}{35}{print\_\-titre\relax }{subsubsection.4.2.2.26}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.27}stat\_\discretionary {-}{}{}print}{36}{subsubsection.4.2.2.27}} -\newlabel{functions_8inc_8php_a42}{{4.2.2.27}{36}{stat\_\-print\relax }{subsubsection.4.2.2.27}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.28}transcoS2L}{36}{subsubsection.4.2.2.28}} -\newlabel{functions_8inc_8php_a25}{{4.2.2.28}{36}{transcoS2L\relax }{subsubsection.4.2.2.28}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.2.2.29}tva}{36}{subsubsection.4.2.2.29}} -\newlabel{functions_8inc_8php_a40}{{4.2.2.29}{36}{tva\relax }{subsubsection.4.2.2.29}{}} -\@setckpt{functions_8inc_8php}{ -\setcounter{page}{37} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{4} -\setcounter{section}{2} -\setcounter{subsection}{2} -\setcounter{subsubsection}{29} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{3} -} diff --git a/doc/dev/php/latex/functions_8inc_8php.tex b/doc/dev/php/latex/functions_8inc_8php.tex deleted file mode 100644 index 0f0190fdba9..00000000000 --- a/doc/dev/php/latex/functions_8inc_8php.tex +++ /dev/null @@ -1,615 +0,0 @@ -\hypertarget{functions_8inc_8php}{ -\section{R\'{e}f\'{e}rence du fichier htdocs/lib/functions.inc.php} -\label{functions_8inc_8php}\index{htdocs/lib/functions.inc.php@{htdocs/lib/functions.inc.php}} -} -Ensemble de fonctions de base de dolibarr sous forme d'include. - - -\subsection*{Fonctions} -\begin{CompactItemize} -\item -\hyperlink{functions_8inc_8php_a1}{dolibarr\_\-syslog} (\$message) -\begin{CompactList}\small\item\em envoi des messages dolibarr dans syslog \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a2}{dolibarr\_\-fiche\_\-head} (\$links, \$active=0) -\begin{CompactList}\small\item\em header d'une fiche \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a3}{dolibarr\_\-set\_\-const} (\$db, \$name, \$value, \$type='chaine', \$visible=0, \$note='') -\begin{CompactList}\small\item\em insertion d'une constantes dans la base de donn\'{e}es \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a4}{dolibarr\_\-del\_\-const} (\$db, \$name) -\begin{CompactList}\small\item\em effacement d'une constante dans la base de donn\'{e}es \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a5}{dolibarr\_\-print\_\-ca} (\$ca) -\begin{CompactList}\small\item\em formattage des nombres \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a6}{dolibarr\_\-print\_\-date} (\$time, \$format=\char`\"{}\%d \%b \%Y\char`\"{}) -\begin{CompactList}\small\item\em formattage de la date \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a7}{dolibarr\_\-print\_\-object\_\-info} (\$object) -\begin{CompactList}\small\item\em affiche les informations d'un objet \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a8}{dolibarr\_\-print\_\-phone} (\$phone) -\begin{CompactList}\small\item\em formattage du telephone \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a21}{loginfunction} () -\begin{CompactList}\small\item\em fonction de login \item\end{CompactList}\item -\hypertarget{functions_8inc_8php_a22}{ -\hyperlink{functions_8inc_8php_a22}{accessforbidden} ()} -\label{functions_8inc_8php_a22} - -\begin{CompactList}\small\item\em acces interdit \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a23}{doli\-Move\-File\-Upload} (\$src\_\-file, \$dest\_\-file) -\begin{CompactList}\small\item\em deplacer les fichiers telecharg\'{e}s \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a25}{transco\-S2L} (\$zonein, \$devise) -\begin{CompactList}\small\item\em transcodage de francs en euros \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a26}{print\_\-liste\_\-field\_\-titre} (\$name, \$file, \$field, \$begin=\char`\"{}\char`\"{}, \$options=\char`\"{}\char`\"{}) -\begin{CompactList}\small\item\em affichage du titre d'une liste \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a27}{print\_\-liste\_\-field\_\-titre\_\-new} (\$name, \$file, \$field, \$begin=\char`\"{}\char`\"{}, \$options=\char`\"{}\char`\"{}, \$td=\char`\"{}\char`\"{}, \$sortfield=\char`\"{}\char`\"{}) -\begin{CompactList}\small\item\em affichage du titre d'une liste avec possibilit\'{e} de tri et de choix du type de la balise td \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a28}{print\_\-titre} (\$titre) -\begin{CompactList}\small\item\em affichage d'un titre \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a29}{print\_\-fiche\_\-titre} (\$titre, \$mesg='') -\begin{CompactList}\small\item\em affichage d'un titre d'une fiche align\'{e} a droite \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a30}{dol\_\-delete\_\-file} (\$file) -\begin{CompactList}\small\item\em effacement d'un fichier \item\end{CompactList}\item -\hypertarget{functions_8inc_8php_a31}{ -\hyperlink{functions_8inc_8php_a31}{block\_\-access} ()} -\label{functions_8inc_8php_a31} - -\begin{CompactList}\small\item\em acc\`{e}s refus\'{e} \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a33}{print\_\-fleche\_\-navigation} (\$page, \$file, \$options='', \$nextpage) -\begin{CompactList}\small\item\em fonction servant a afficher les fleches de navigation dans les pages de listes \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a34}{print\_\-oui\_\-non} (\$value) -\begin{CompactList}\small\item\em fonction servant a afficher un menu d\'{e}roulant avec oui ou non \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a35}{print\_\-date\_\-select} (\$set\_\-time='') -\begin{CompactList}\small\item\em fonction servant a afficher les mois dans un liste d\'{e}roulante \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a36}{print\_\-heure\_\-select} (\$prefix, \$begin=1, \$end=23) -\begin{CompactList}\small\item\em fonction servant a afficher les heures/minutes dans un liste d\'{e}roulante \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a37}{print\_\-duree\_\-select} (\$prefix) -\begin{CompactList}\small\item\em fonction servant a afficher une dur\'{e}e dans une liste d\'{e}roulante \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a38}{price} (\$amount, \$html=0) -\begin{CompactList}\small\item\em fonction qui retourne un montant mon\'{e}taire format\'{e} \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a39}{francs} (\$euros) -\begin{CompactList}\small\item\em fonction qui convertit des euros en francs \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a40}{tva} (\$euros, \$taux=19.6) -\begin{CompactList}\small\item\em fonction qui calcule la tva \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a41}{inctva} (\$euros, \$taux=1.196) -\begin{CompactList}\small\item\em fonction qui calcule le montant tva incluse \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a42}{stat\_\-print} (\$basename, \$bc1, \$bc2, \$ftc, \$jour) -\begin{CompactList}\small\item\em fonction qui affiche des statistiques \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a44}{logfile} (\$str, \$log=\char`\"{}/var/log/dolibarr/dolibarr.log\char`\"{}) -\begin{CompactList}\small\item\em fonction qui permet d'envoyer les infos dans un fichier de log \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a45}{creer\_\-pass\_\-aleatoire} (\$longueur=8, \$sel=\char`\"{}\char`\"{}) -\begin{CompactList}\small\item\em fonction pour cr\'{e}er un mot de passe al\'{e}atoire \item\end{CompactList}\item -\hyperlink{functions_8inc_8php_a46}{initialiser\_\-sel} () -\begin{CompactList}\small\item\em fonction pour initialiser sel \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Ensemble de fonctions de base de dolibarr sous forme d'include. - -\begin{Desc} -\item[Auteur:]Rodolphe Quiedeville - -Jean-Louis Bergamo - -Laurent Destailleur \end{Desc} -\begin{Desc} -\item[Version:]1.2.\end{Desc} -Ensemble de fonctions de base de dolibarr sous forme d'include - -D\'{e}finition dans le fichier \hyperlink{functions_8inc_8php-source}{functions.inc.php}. - -\subsection{Documentation des fonctions} -\hypertarget{functions_8inc_8php_a45}{ -\index{functions.inc.php@{functions.inc.php}!creer_pass_aleatoire@{creer\_\-pass\_\-aleatoire}} -\index{creer_pass_aleatoire@{creer\_\-pass\_\-aleatoire}!functions.inc.php@{functions.inc.php}} -\subsubsection[creer\_\-pass\_\-aleatoire]{\setlength{\rightskip}{0pt plus 5cm}creer\_\-pass\_\-aleatoire (\$ {\em longueur} = {\tt 8}, \$ {\em sel} = {\tt \char`\"{}\char`\"{}})}} -\label{functions_8inc_8php_a45} - - -fonction pour cr\'{e}er un mot de passe al\'{e}atoire - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em longueur}]longueur du mot de passe \item[{\em sel}]donn\'{e}e al\'{e}atoire \end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]la longueur est fix\'{e}e a 8 par d\'{e}faut - -la fonction a \'{e}t\'{e} prise sur \href{http://www.uzine.net/spip}{\tt http://www.uzine.net/spip} \end{Desc} - - -D\'{e}finition \`{a} la ligne 1224 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a30}{ -\index{functions.inc.php@{functions.inc.php}!dol_delete_file@{dol\_\-delete\_\-file}} -\index{dol_delete_file@{dol\_\-delete\_\-file}!functions.inc.php@{functions.inc.php}} -\subsubsection[dol\_\-delete\_\-file]{\setlength{\rightskip}{0pt plus 5cm}dol\_\-delete\_\-file (\$ {\em file})}} -\label{functions_8inc_8php_a30} - - -effacement d'un fichier - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em file}]fichier a effacer \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 735 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a4}{ -\index{functions.inc.php@{functions.inc.php}!dolibarr_del_const@{dolibarr\_\-del\_\-const}} -\index{dolibarr_del_const@{dolibarr\_\-del\_\-const}!functions.inc.php@{functions.inc.php}} -\subsubsection[dolibarr\_\-del\_\-const]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-del\_\-const (\$ {\em db}, \$ {\em name})}} -\label{functions_8inc_8php_a4} - - -effacement d'une constante dans la base de donn\'{e}es - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em db}]base de donn\'{e}es \item[{\em name}]nom de la constante \end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]retourne 0 pour rat\'{e}, 1 pour r\'{e}ussi \end{Desc} - - -D\'{e}finition \`{a} la ligne 124 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a2}{ -\index{functions.inc.php@{functions.inc.php}!dolibarr_fiche_head@{dolibarr\_\-fiche\_\-head}} -\index{dolibarr_fiche_head@{dolibarr\_\-fiche\_\-head}!functions.inc.php@{functions.inc.php}} -\subsubsection[dolibarr\_\-fiche\_\-head]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-fiche\_\-head (\$ {\em links}, \$ {\em active} = {\tt 0})}} -\label{functions_8inc_8php_a2} - - -header d'une fiche - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em links}]liens \item[{\em active}]\end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]active = 0 par d\'{e}faut \end{Desc} - - -D\'{e}finition \`{a} la ligne 63 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a5}{ -\index{functions.inc.php@{functions.inc.php}!dolibarr_print_ca@{dolibarr\_\-print\_\-ca}} -\index{dolibarr_print_ca@{dolibarr\_\-print\_\-ca}!functions.inc.php@{functions.inc.php}} -\subsubsection[dolibarr\_\-print\_\-ca]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-print\_\-ca (\$ {\em ca})}} -\label{functions_8inc_8php_a5} - - -formattage des nombres - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em ca}]valeur a formater \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]cat valeur format\'{e}e \end{Desc} - - -D\'{e}finition \`{a} la ligne 144 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a6}{ -\index{functions.inc.php@{functions.inc.php}!dolibarr_print_date@{dolibarr\_\-print\_\-date}} -\index{dolibarr_print_date@{dolibarr\_\-print\_\-date}!functions.inc.php@{functions.inc.php}} -\subsubsection[dolibarr\_\-print\_\-date]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-print\_\-date (\$ {\em time}, \$ {\em format} = {\tt \char`\"{}\%d\ \%b\ \%Y\char`\"{}})}} -\label{functions_8inc_8php_a6} - - -formattage de la date - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em time}]date \item[{\em format}]format de la date \char`\"{}\%d \%b \%Y\char`\"{} \end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]retourne la date format\'{e}e \end{Desc} - - -D\'{e}finition \`{a} la ligne 173 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a7}{ -\index{functions.inc.php@{functions.inc.php}!dolibarr_print_object_info@{dolibarr\_\-print\_\-object\_\-info}} -\index{dolibarr_print_object_info@{dolibarr\_\-print\_\-object\_\-info}!functions.inc.php@{functions.inc.php}} -\subsubsection[dolibarr\_\-print\_\-object\_\-info]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-print\_\-object\_\-info (\$ {\em object})}} -\label{functions_8inc_8php_a7} - - -affiche les informations d'un objet - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em object}]objet a afficher \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 184 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a8}{ -\index{functions.inc.php@{functions.inc.php}!dolibarr_print_phone@{dolibarr\_\-print\_\-phone}} -\index{dolibarr_print_phone@{dolibarr\_\-print\_\-phone}!functions.inc.php@{functions.inc.php}} -\subsubsection[dolibarr\_\-print\_\-phone]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-print\_\-phone (\$ {\em phone})}} -\label{functions_8inc_8php_a8} - - -formattage du telephone - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em phone}]num\'{e}ro de telephone \`{a} formater \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]phone num\'{e}ro de t\'{e}l\'{e}phone format\'{e} \end{Desc} -\begin{Desc} -\item[Remarques:]net tient pas en compte le format belge 02/211 34 83 \end{Desc} - - -D\'{e}finition \`{a} la ligne 199 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a3}{ -\index{functions.inc.php@{functions.inc.php}!dolibarr_set_const@{dolibarr\_\-set\_\-const}} -\index{dolibarr_set_const@{dolibarr\_\-set\_\-const}!functions.inc.php@{functions.inc.php}} -\subsubsection[dolibarr\_\-set\_\-const]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-set\_\-const (\$ {\em db}, \$ {\em name}, \$ {\em value}, \$ {\em type} = {\tt 'chaine'}, \$ {\em visible} = {\tt 0}, \$ {\em note} = {\tt ''})}} -\label{functions_8inc_8php_a3} - - -insertion d'une constantes dans la base de donn\'{e}es - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em db}]base de donn\'{e}es \item[{\em name}]nom de la constante \item[{\em value}]valeur de la constante \item[{\em type}]type de constante \item[{\em visible}]la constante est t'elle visible \item[{\em note}]explication de la constante \end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]type = chaine par d\'{e}faut - -visible = 0 par d\'{e}faut - -retourne 0 pour rat\'{e}, 1 pour r\'{e}ussi \end{Desc} - - -D\'{e}finition \`{a} la ligne 103 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a1}{ -\index{functions.inc.php@{functions.inc.php}!dolibarr_syslog@{dolibarr\_\-syslog}} -\index{dolibarr_syslog@{dolibarr\_\-syslog}!functions.inc.php@{functions.inc.php}} -\subsubsection[dolibarr\_\-syslog]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-syslog (\$ {\em message})}} -\label{functions_8inc_8php_a1} - - -envoi des messages dolibarr dans syslog - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em message}]message a envoyer a syslog \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 44 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a23}{ -\index{functions.inc.php@{functions.inc.php}!doliMoveFileUpload@{doliMoveFileUpload}} -\index{doliMoveFileUpload@{doliMoveFileUpload}!functions.inc.php@{functions.inc.php}} -\subsubsection[doliMoveFileUpload]{\setlength{\rightskip}{0pt plus 5cm}doli\-Move\-File\-Upload (\$ {\em src\_\-file}, \$ {\em dest\_\-file})}} -\label{functions_8inc_8php_a23} - - -deplacer les fichiers telecharg\'{e}s - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em src\_\-file}]fichier source \item[{\em dest\_\-file}]fichier de destination \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 377 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a39}{ -\index{functions.inc.php@{functions.inc.php}!francs@{francs}} -\index{francs@{francs}!functions.inc.php@{functions.inc.php}} -\subsubsection[francs]{\setlength{\rightskip}{0pt plus 5cm}francs (\$ {\em euros})}} -\label{functions_8inc_8php_a39} - - -fonction qui convertit des euros en francs - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em euros}]somme en euro \`{a} convertir \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]price \end{Desc} - - -D\'{e}finition \`{a} la ligne 1007 du fichier functions.inc.php. - -R\'{e}f\'{e}rences price().\hypertarget{functions_8inc_8php_a41}{ -\index{functions.inc.php@{functions.inc.php}!inctva@{inctva}} -\index{inctva@{inctva}!functions.inc.php@{functions.inc.php}} -\subsubsection[inctva]{\setlength{\rightskip}{0pt plus 5cm}inctva (\$ {\em euros}, \$ {\em taux} = {\tt 1.196})}} -\label{functions_8inc_8php_a41} - - -fonction qui calcule le montant tva incluse - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em euros}]somme en euro \item[{\em taux}]taux de tva \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 1031 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a46}{ -\index{functions.inc.php@{functions.inc.php}!initialiser_sel@{initialiser\_\-sel}} -\index{initialiser_sel@{initialiser\_\-sel}!functions.inc.php@{functions.inc.php}} -\subsubsection[initialiser\_\-sel]{\setlength{\rightskip}{0pt plus 5cm}initialiser\_\-sel ()}} -\label{functions_8inc_8php_a46} - - -fonction pour initialiser sel - -\begin{Desc} -\item[Remarques:]la fonction a \'{e}t\'{e} prise sur \href{http://www.uzine.net/spip}{\tt http://www.uzine.net/spip} \end{Desc} - - -D\'{e}finition \`{a} la ligne 1251 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a44}{ -\index{functions.inc.php@{functions.inc.php}!logfile@{logfile}} -\index{logfile@{logfile}!functions.inc.php@{functions.inc.php}} -\subsubsection[logfile]{\setlength{\rightskip}{0pt plus 5cm}logfile (\$ {\em str}, \$ {\em log} = {\tt \char`\"{}/var/log/dolibarr/dolibarr.log\char`\"{}})}} -\label{functions_8inc_8php_a44} - - -fonction qui permet d'envoyer les infos dans un fichier de log - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em str}]chaine a mettre dans le fichier \item[{\em log}]nom du fichier de log \end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]cette fonction ne marchera qui si la constante MAIN\_\-DEBUG = 1 \end{Desc} - - -D\'{e}finition \`{a} la ligne 1188 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a21}{ -\index{functions.inc.php@{functions.inc.php}!loginfunction@{loginfunction}} -\index{loginfunction@{loginfunction}!functions.inc.php@{functions.inc.php}} -\subsubsection[loginfunction]{\setlength{\rightskip}{0pt plus 5cm}loginfunction ()}} -\label{functions_8inc_8php_a21} - - -fonction de login - -\begin{Desc} -\item[Remarques:]if faut changer le code html dans la fonction pour changer le design - -le css devrait etre pris dans le repetoire de dolibarr et ne pas etre en dur ! \end{Desc} - - -D\'{e}finition \`{a} la ligne 281 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a38}{ -\index{functions.inc.php@{functions.inc.php}!price@{price}} -\index{price@{price}!functions.inc.php@{functions.inc.php}} -\subsubsection[price]{\setlength{\rightskip}{0pt plus 5cm}price (\$ {\em amount}, \$ {\em html} = {\tt 0})}} -\label{functions_8inc_8php_a38} - - -fonction qui retourne un montant mon\'{e}taire format\'{e} - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em amount}]montant a formater \item[{\em html}]formatage html ou pas \end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]html = 0 par d\'{e}faut - -fnction utilis\'{e}e dans les pdf et les pages html \end{Desc} - - -D\'{e}finition \`{a} la ligne 985 du fichier functions.inc.php. - -R\'{e}f\'{e}renc\'{e} par francs().\hypertarget{functions_8inc_8php_a35}{ -\index{functions.inc.php@{functions.inc.php}!print_date_select@{print\_\-date\_\-select}} -\index{print_date_select@{print\_\-date\_\-select}!functions.inc.php@{functions.inc.php}} -\subsubsection[print\_\-date\_\-select]{\setlength{\rightskip}{0pt plus 5cm}print\_\-date\_\-select (\$ {\em set\_\-time} = {\tt ''})}} -\label{functions_8inc_8php_a35} - - -fonction servant a afficher les mois dans un liste d\'{e}roulante - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em set\_\-time}]\end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]set\_\-time = '' par d\'{e}faut \end{Desc} - - -D\'{e}finition \`{a} la ligne 852 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a37}{ -\index{functions.inc.php@{functions.inc.php}!print_duree_select@{print\_\-duree\_\-select}} -\index{print_duree_select@{print\_\-duree\_\-select}!functions.inc.php@{functions.inc.php}} -\subsubsection[print\_\-duree\_\-select]{\setlength{\rightskip}{0pt plus 5cm}print\_\-duree\_\-select (\$ {\em prefix})}} -\label{functions_8inc_8php_a37} - - -fonction servant a afficher une dur\'{e}e dans une liste d\'{e}roulante - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em prefix}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 957 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a29}{ -\index{functions.inc.php@{functions.inc.php}!print_fiche_titre@{print\_\-fiche\_\-titre}} -\index{print_fiche_titre@{print\_\-fiche\_\-titre}!functions.inc.php@{functions.inc.php}} -\subsubsection[print\_\-fiche\_\-titre]{\setlength{\rightskip}{0pt plus 5cm}print\_\-fiche\_\-titre (\$ {\em titre}, \$ {\em mesg} = {\tt ''})}} -\label{functions_8inc_8php_a29} - - -affichage d'un titre d'une fiche align\'{e} a droite - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em titre}]le titre a afficher \item[{\em mesg}]message afficher \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 719 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a33}{ -\index{functions.inc.php@{functions.inc.php}!print_fleche_navigation@{print\_\-fleche\_\-navigation}} -\index{print_fleche_navigation@{print\_\-fleche\_\-navigation}!functions.inc.php@{functions.inc.php}} -\subsubsection[print\_\-fleche\_\-navigation]{\setlength{\rightskip}{0pt plus 5cm}print\_\-fleche\_\-navigation (\$ {\em page}, \$ {\em file}, \$ {\em options} = {\tt ''}, \$ {\em nextpage})}} -\label{functions_8inc_8php_a33} - - -fonction servant a afficher les fleches de navigation dans les pages de listes - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em page}]num\'{e}ro de la page \item[{\em file}]lien \item[{\em options}]\item[{\em nextpage}]page suivante \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 812 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a36}{ -\index{functions.inc.php@{functions.inc.php}!print_heure_select@{print\_\-heure\_\-select}} -\index{print_heure_select@{print\_\-heure\_\-select}!functions.inc.php@{functions.inc.php}} -\subsubsection[print\_\-heure\_\-select]{\setlength{\rightskip}{0pt plus 5cm}print\_\-heure\_\-select (\$ {\em prefix}, \$ {\em begin} = {\tt 1}, \$ {\em end} = {\tt 23})}} -\label{functions_8inc_8php_a36} - - -fonction servant a afficher les heures/minutes dans un liste d\'{e}roulante - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em prefix}]\item[{\em begin}]\item[{\em end}]\end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]begin = 1 par d\'{e}faut - -end = 23 par d\'{e}faut \end{Desc} - - -D\'{e}finition \`{a} la ligne 935 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a26}{ -\index{functions.inc.php@{functions.inc.php}!print_liste_field_titre@{print\_\-liste\_\-field\_\-titre}} -\index{print_liste_field_titre@{print\_\-liste\_\-field\_\-titre}!functions.inc.php@{functions.inc.php}} -\subsubsection[print\_\-liste\_\-field\_\-titre]{\setlength{\rightskip}{0pt plus 5cm}print\_\-liste\_\-field\_\-titre (\$ {\em name}, \$ {\em file}, \$ {\em field}, \$ {\em begin} = {\tt \char`\"{}\char`\"{}}, \$ {\em options} = {\tt \char`\"{}\char`\"{}})}} -\label{functions_8inc_8php_a26} - - -affichage du titre d'une liste - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em name}]\item[{\em file}]\item[{\em field}]\item[{\em begin}]\item[{\em options}]\end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]begin = \char`\"{}\char`\"{} par d\'{e}faut - -options = \char`\"{}\char`\"{} par d\'{e}faut \end{Desc} - - -D\'{e}finition \`{a} la ligne 658 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a27}{ -\index{functions.inc.php@{functions.inc.php}!print_liste_field_titre_new@{print\_\-liste\_\-field\_\-titre\_\-new}} -\index{print_liste_field_titre_new@{print\_\-liste\_\-field\_\-titre\_\-new}!functions.inc.php@{functions.inc.php}} -\subsubsection[print\_\-liste\_\-field\_\-titre\_\-new]{\setlength{\rightskip}{0pt plus 5cm}print\_\-liste\_\-field\_\-titre\_\-new (\$ {\em name}, \$ {\em file}, \$ {\em field}, \$ {\em begin} = {\tt \char`\"{}\char`\"{}}, \$ {\em options} = {\tt \char`\"{}\char`\"{}}, \$ {\em td} = {\tt \char`\"{}\char`\"{}}, \$ {\em sortfield} = {\tt \char`\"{}\char`\"{}})}} -\label{functions_8inc_8php_a27} - - -affichage du titre d'une liste avec possibilit\'{e} de tri et de choix du type de la balise td - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em name}]\item[{\em file}]\item[{\em field}]\item[{\em begin}]\item[{\em options}]\item[{\em td}]\item[{\em sortfield}]\end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]begin = \char`\"{}\char`\"{} par d\'{e}faut - -options = \char`\"{}\char`\"{} par d\'{e}faut - -td = \char`\"{}\char`\"{} par d\'{e}faut - -sortfield = \char`\"{}\char`\"{} par d\'{e}faut \end{Desc} - - -D\'{e}finition \`{a} la ligne 684 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a34}{ -\index{functions.inc.php@{functions.inc.php}!print_oui_non@{print\_\-oui\_\-non}} -\index{print_oui_non@{print\_\-oui\_\-non}!functions.inc.php@{functions.inc.php}} -\subsubsection[print\_\-oui\_\-non]{\setlength{\rightskip}{0pt plus 5cm}print\_\-oui\_\-non (\$ {\em value})}} -\label{functions_8inc_8php_a34} - - -fonction servant a afficher un menu d\'{e}roulant avec oui ou non - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em value}]\end{description} -\end{Desc} -\begin{Desc} -\item[Remarques:]value peut avoir la valeur 0 ou 1 \end{Desc} - - -D\'{e}finition \`{a} la ligne 832 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a28}{ -\index{functions.inc.php@{functions.inc.php}!print_titre@{print\_\-titre}} -\index{print_titre@{print\_\-titre}!functions.inc.php@{functions.inc.php}} -\subsubsection[print\_\-titre]{\setlength{\rightskip}{0pt plus 5cm}print\_\-titre (\$ {\em titre})}} -\label{functions_8inc_8php_a28} - - -affichage d'un titre - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em titre}]le titre a afficher \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 708 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a42}{ -\index{functions.inc.php@{functions.inc.php}!stat_print@{stat\_\-print}} -\index{stat_print@{stat\_\-print}!functions.inc.php@{functions.inc.php}} -\subsubsection[stat\_\-print]{\setlength{\rightskip}{0pt plus 5cm}stat\_\-print (\$ {\em basename}, \$ {\em bc1}, \$ {\em bc2}, \$ {\em ftc}, \$ {\em jour})}} -\label{functions_8inc_8php_a42} - - -fonction qui affiche des statistiques - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em basename}]\item[{\em bc1}]\item[{\em bc2}]\item[{\em ftc}]\item[{\em jour}]\end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 1046 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a25}{ -\index{functions.inc.php@{functions.inc.php}!transcoS2L@{transcoS2L}} -\index{transcoS2L@{transcoS2L}!functions.inc.php@{functions.inc.php}} -\subsubsection[transcoS2L]{\setlength{\rightskip}{0pt plus 5cm}transco\-S2L (\$ {\em zonein}, \$ {\em devise})}} -\label{functions_8inc_8php_a25} - - -transcodage de francs en euros - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em zonein}]zone de depart \item[{\em devise}]type de devise \end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]r \end{Desc} - - -D\'{e}finition \`{a} la ligne 451 du fichier functions.inc.php.\hypertarget{functions_8inc_8php_a40}{ -\index{functions.inc.php@{functions.inc.php}!tva@{tva}} -\index{tva@{tva}!functions.inc.php@{functions.inc.php}} -\subsubsection[tva]{\setlength{\rightskip}{0pt plus 5cm}tva (\$ {\em euros}, \$ {\em taux} = {\tt 19.6})}} -\label{functions_8inc_8php_a40} - - -fonction qui calcule la tva - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em euros}]somme en euro \item[{\em taux}]taux de tva \end{description} -\end{Desc} - - -D\'{e}finition \`{a} la ligne 1018 du fichier functions.inc.php. - -R\'{e}f\'{e}renc\'{e} par calcul\_\-price(). \ No newline at end of file diff --git a/doc/dev/php/latex/ldap_8lib_8php.aux b/doc/dev/php/latex/ldap_8lib_8php.aux deleted file mode 100644 index c52387d7c50..00000000000 --- a/doc/dev/php/latex/ldap_8lib_8php.aux +++ /dev/null @@ -1,40 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {4.4}R\'{e}f\'{e}rence du fichier htdocs/lib/ldap.lib.php}{38}{section.4.4}} -\newlabel{ldap_8lib_8php}{{4.4}{38}{R\'{e}f\'{e}rence du fichier htdocs/lib/ldap.lib.php\relax }{section.4.4}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.4.1}Description d\'{e}taill\'{e}e}{38}{subsection.4.4.1}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.4.2}Documentation des fonctions}{38}{subsection.4.4.2}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.4.2.1}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}bind}{38}{subsubsection.4.4.2.1}} -\newlabel{ldap_8lib_8php_a1}{{4.4.2.1}{38}{dolibarr\_\-ldap\_\-bind\relax }{subsubsection.4.4.2.1}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.4.2.2}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}connect}{39}{subsubsection.4.4.2.2}} -\newlabel{ldap_8lib_8php_a0}{{4.4.2.2}{39}{dolibarr\_\-ldap\_\-connect\relax }{subsubsection.4.4.2.2}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.4.2.3}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}getversion}{39}{subsubsection.4.4.2.3}} -\newlabel{ldap_8lib_8php_a3}{{4.4.2.3}{39}{dolibarr\_\-ldap\_\-getversion\relax }{subsubsection.4.4.2.3}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.4.2.4}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}setversion}{39}{subsubsection.4.4.2.4}} -\newlabel{ldap_8lib_8php_a4}{{4.4.2.4}{39}{dolibarr\_\-ldap\_\-setversion\relax }{subsubsection.4.4.2.4}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.4.2.5}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unacc}{39}{subsubsection.4.4.2.5}} -\newlabel{ldap_8lib_8php_a5}{{4.4.2.5}{39}{dolibarr\_\-ldap\_\-unacc\relax }{subsubsection.4.4.2.5}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.4.2.6}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unbind}{40}{subsubsection.4.4.2.6}} -\newlabel{ldap_8lib_8php_a2}{{4.4.2.6}{40}{dolibarr\_\-ldap\_\-unbind\relax }{subsubsection.4.4.2.6}{}} -\@setckpt{ldap_8lib_8php}{ -\setcounter{page}{41} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{4} -\setcounter{section}{4} -\setcounter{subsection}{2} -\setcounter{subsubsection}{6} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{3} -} diff --git a/doc/dev/php/latex/ldap_8lib_8php.tex b/doc/dev/php/latex/ldap_8lib_8php.tex deleted file mode 100644 index b06f0fcaa76..00000000000 --- a/doc/dev/php/latex/ldap_8lib_8php.tex +++ /dev/null @@ -1,142 +0,0 @@ -\hypertarget{ldap_8lib_8php}{ -\section{R\'{e}f\'{e}rence du fichier htdocs/lib/ldap.lib.php} -\label{ldap_8lib_8php}\index{htdocs/lib/ldap.lib.php@{htdocs/lib/ldap.lib.php}} -} -Librairie contenant les fonctions pour acc\`{e}der au serveur ldap. - - -\subsection*{Fonctions} -\begin{CompactItemize} -\item -\hyperlink{ldap_8lib_8php_a0}{dolibarr\_\-ldap\_\-connect} () -\begin{CompactList}\small\item\em ouverture d'une connection vers le serveur ldap. \item\end{CompactList}\item -\hyperlink{ldap_8lib_8php_a1}{dolibarr\_\-ldap\_\-bind} (\$ds) -\begin{CompactList}\small\item\em bind au serveur ldap. \item\end{CompactList}\item -\hyperlink{ldap_8lib_8php_a2}{dolibarr\_\-ldap\_\-unbind} (\$ds) -\begin{CompactList}\small\item\em unbind du serveur ldap. \item\end{CompactList}\item -\hyperlink{ldap_8lib_8php_a3}{dolibarr\_\-ldap\_\-getversion} (\$ds) -\begin{CompactList}\small\item\em verification de la version du serveur ldap. \item\end{CompactList}\item -\hyperlink{ldap_8lib_8php_a4}{dolibarr\_\-ldap\_\-setversion} (\$ds, \$version) -\begin{CompactList}\small\item\em changement de la version du serveur ldap. \item\end{CompactList}\item -\hyperlink{ldap_8lib_8php_a5}{dolibarr\_\-ldap\_\-unacc} (\$str) -\begin{CompactList}\small\item\em permet d'enlever les accents d'une chaine. \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Librairie contenant les fonctions pour acc\`{e}der au serveur ldap. - -\begin{Desc} -\item[Auteur:]Rodolphe Quiedeville. - -Benoit Mortier. \end{Desc} -\begin{Desc} -\item[Version:]1.2.\end{Desc} -Ensemble des fonctions permettant d'acc\`{e}der \`{a} un serveur ldap. - -D\'{e}finition dans le fichier \hyperlink{ldap_8lib_8php-source}{ldap.lib.php}. - -\subsection{Documentation des fonctions} -\hypertarget{ldap_8lib_8php_a1}{ -\index{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_bind@{dolibarr\_\-ldap\_\-bind}} -\index{dolibarr_ldap_bind@{dolibarr\_\-ldap\_\-bind}!ldap.lib.php@{ldap.lib.php}} -\subsubsection[dolibarr\_\-ldap\_\-bind]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-ldap\_\-bind (\$ {\em ds})}} -\label{ldap_8lib_8php_a1} - - -bind au serveur ldap. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em ds}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]bool \end{Desc} - - -D\'{e}finition \`{a} la ligne 54 du fichier ldap.lib.php.\hypertarget{ldap_8lib_8php_a0}{ -\index{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_connect@{dolibarr\_\-ldap\_\-connect}} -\index{dolibarr_ldap_connect@{dolibarr\_\-ldap\_\-connect}!ldap.lib.php@{ldap.lib.php}} -\subsubsection[dolibarr\_\-ldap\_\-connect]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-ldap\_\-connect ()}} -\label{ldap_8lib_8php_a0} - - -ouverture d'une connection vers le serveur ldap. - -\begin{Desc} -\item[Renvoie:]resource \end{Desc} - - -D\'{e}finition \`{a} la ligne 40 du fichier ldap.lib.php.\hypertarget{ldap_8lib_8php_a3}{ -\index{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_getversion@{dolibarr\_\-ldap\_\-getversion}} -\index{dolibarr_ldap_getversion@{dolibarr\_\-ldap\_\-getversion}!ldap.lib.php@{ldap.lib.php}} -\subsubsection[dolibarr\_\-ldap\_\-getversion]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-ldap\_\-getversion (\$ {\em ds})}} -\label{ldap_8lib_8php_a3} - - -verification de la version du serveur ldap. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em ds}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]version \end{Desc} - - -D\'{e}finition \`{a} la ligne 84 du fichier ldap.lib.php.\hypertarget{ldap_8lib_8php_a4}{ -\index{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_setversion@{dolibarr\_\-ldap\_\-setversion}} -\index{dolibarr_ldap_setversion@{dolibarr\_\-ldap\_\-setversion}!ldap.lib.php@{ldap.lib.php}} -\subsubsection[dolibarr\_\-ldap\_\-setversion]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-ldap\_\-setversion (\$ {\em ds}, \$ {\em version})}} -\label{ldap_8lib_8php_a4} - - -changement de la version du serveur ldap. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em ds}]\item[{\em version}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]version \end{Desc} - - -D\'{e}finition \`{a} la ligne 101 du fichier ldap.lib.php.\hypertarget{ldap_8lib_8php_a5}{ -\index{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_unacc@{dolibarr\_\-ldap\_\-unacc}} -\index{dolibarr_ldap_unacc@{dolibarr\_\-ldap\_\-unacc}!ldap.lib.php@{ldap.lib.php}} -\subsubsection[dolibarr\_\-ldap\_\-unacc]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-ldap\_\-unacc (\$ {\em str})}} -\label{ldap_8lib_8php_a5} - - -permet d'enlever les accents d'une chaine. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em str}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]string \end{Desc} - - -D\'{e}finition \`{a} la ligne 114 du fichier ldap.lib.php.\hypertarget{ldap_8lib_8php_a2}{ -\index{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_unbind@{dolibarr\_\-ldap\_\-unbind}} -\index{dolibarr_ldap_unbind@{dolibarr\_\-ldap\_\-unbind}!ldap.lib.php@{ldap.lib.php}} -\subsubsection[dolibarr\_\-ldap\_\-unbind]{\setlength{\rightskip}{0pt plus 5cm}dolibarr\_\-ldap\_\-unbind (\$ {\em ds})}} -\label{ldap_8lib_8php_a2} - - -unbind du serveur ldap. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em ds}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]bool \end{Desc} - - -D\'{e}finition \`{a} la ligne 70 du fichier ldap.lib.php. \ No newline at end of file diff --git a/doc/dev/php/latex/mysql_8lib_8php.aux b/doc/dev/php/latex/mysql_8lib_8php.aux deleted file mode 100644 index 61e4a7b393a..00000000000 --- a/doc/dev/php/latex/mysql_8lib_8php.aux +++ /dev/null @@ -1,27 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {4.5}R\'{e}f\'{e}rence du fichier htdocs/lib/mysql.lib.php}{41}{section.4.5}} -\newlabel{mysql_8lib_8php}{{4.5}{41}{R\'{e}f\'{e}rence du fichier htdocs/lib/mysql.lib.php\relax }{section.4.5}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.5.1}Description d\'{e}taill\'{e}e}{41}{subsection.4.5.1}} -\@setckpt{mysql_8lib_8php}{ -\setcounter{page}{42} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{4} -\setcounter{section}{5} -\setcounter{subsection}{1} -\setcounter{subsubsection}{0} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{2} -} diff --git a/doc/dev/php/latex/mysql_8lib_8php.tex b/doc/dev/php/latex/mysql_8lib_8php.tex deleted file mode 100644 index d7fcbc253ac..00000000000 --- a/doc/dev/php/latex/mysql_8lib_8php.tex +++ /dev/null @@ -1,28 +0,0 @@ -\hypertarget{mysql_8lib_8php}{ -\section{R\'{e}f\'{e}rence du fichier htdocs/lib/mysql.lib.php} -\label{mysql_8lib_8php}\index{htdocs/lib/mysql.lib.php@{htdocs/lib/mysql.lib.php}} -} -Classe permettant de g\'{e}r\'{e}r la database de dolibarr. - - -\subsection*{Classes} -\begin{CompactItemize} -\item -class \hyperlink{classDoliDb}{Doli\-Db} -\begin{CompactList}\small\item\em Classe permettant de g\'{e}r\'{e}r la database de dolibarr. \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant de g\'{e}r\'{e}r la database de dolibarr. - -\begin{Desc} -\item[Auteur:]Fabien Seisen - -Rodolphe Quiedeville. - -Laurent Destailleur. \end{Desc} -\begin{Desc} -\item[Version:]1.2.\end{Desc} -Ensemble des fonctions permettant de g\'{e}rer la database de dolibarr. - -D\'{e}finition dans le fichier \hyperlink{mysql_8lib_8php-source}{mysql.lib.php}. \ No newline at end of file diff --git a/doc/dev/php/latex/price_8lib_8php.aux b/doc/dev/php/latex/price_8lib_8php.aux deleted file mode 100644 index a0161fba0fd..00000000000 --- a/doc/dev/php/latex/price_8lib_8php.aux +++ /dev/null @@ -1,30 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {4.6}R\'{e}f\'{e}rence du fichier htdocs/lib/price.lib.php}{42}{section.4.6}} -\newlabel{price_8lib_8php}{{4.6}{42}{R\'{e}f\'{e}rence du fichier htdocs/lib/price.lib.php\relax }{section.4.6}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.6.1}Description d\'{e}taill\'{e}e}{42}{subsection.4.6.1}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.6.2}Documentation des fonctions}{42}{subsection.4.6.2}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.6.2.1}calcul\_\discretionary {-}{}{}price}{42}{subsubsection.4.6.2.1}} -\newlabel{price_8lib_8php_a0}{{4.6.2.1}{42}{calcul\_\-price\relax }{subsubsection.4.6.2.1}{}} -\@setckpt{price_8lib_8php}{ -\setcounter{page}{43} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{4} -\setcounter{section}{6} -\setcounter{subsection}{2} -\setcounter{subsubsection}{1} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{3} -} diff --git a/doc/dev/php/latex/price_8lib_8php.tex b/doc/dev/php/latex/price_8lib_8php.tex deleted file mode 100644 index 5603b27c737..00000000000 --- a/doc/dev/php/latex/price_8lib_8php.tex +++ /dev/null @@ -1,47 +0,0 @@ -\hypertarget{price_8lib_8php}{ -\section{R\'{e}f\'{e}rence du fichier htdocs/lib/price.lib.php} -\label{price_8lib_8php}\index{htdocs/lib/price.lib.php@{htdocs/lib/price.lib.php}} -} -librairie contenant les fonctions pour calculer un prix. - - -\subsection*{Fonctions} -\begin{CompactItemize} -\item -\hyperlink{price_8lib_8php_a0}{calcul\_\-price} (\$products, \$remise\_\-percent) -\begin{CompactList}\small\item\em permet de calculer un prix. \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -librairie contenant les fonctions pour calculer un prix. - -\begin{Desc} -\item[Auteur:]Rodolphe Quiedeville. \end{Desc} -\begin{Desc} -\item[Version:]1.2.\end{Desc} -Ensemble des fonctions permettant de calculer un prix. - -D\'{e}finition dans le fichier \hyperlink{price_8lib_8php-source}{price.lib.php}. - -\subsection{Documentation des fonctions} -\hypertarget{price_8lib_8php_a0}{ -\index{price.lib.php@{price.lib.php}!calcul_price@{calcul\_\-price}} -\index{calcul_price@{calcul\_\-price}!price.lib.php@{price.lib.php}} -\subsubsection[calcul\_\-price]{\setlength{\rightskip}{0pt plus 5cm}calcul\_\-price (\$ {\em products}, \$ {\em remise\_\-percent})}} -\label{price_8lib_8php_a0} - - -permet de calculer un prix. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em products}]\item[{\em remise\_\-percent}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]result \end{Desc} - - -D\'{e}finition \`{a} la ligne 38 du fichier price.lib.php. - -R\'{e}f\'{e}rences tva(). \ No newline at end of file diff --git a/doc/dev/php/latex/refman.aux b/doc/dev/php/latex/refman.aux deleted file mode 100644 index 4f52f3b84a9..00000000000 --- a/doc/dev/php/latex/refman.aux +++ /dev/null @@ -1,70 +0,0 @@ -\relax -\ifx\hyper@anchor\@undefined -\global \let \oldcontentsline\contentsline -\gdef \contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}} -\global \let \oldnewlabel\newlabel -\gdef \newlabel#1#2{\newlabelxx{#1}#2} -\gdef \newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}} -\AtEndDocument{\let \contentsline\oldcontentsline -\let \newlabel\oldnewlabel} -\else -\global \let \hyper@last\relax -\fi - -\catcode`:\active -\catcode`;\active -\catcode`!\active -\catcode`?\active -\select@language{french} -\@writefile{toc}{\select@language{french}} -\@writefile{lof}{\select@language{french}} -\@writefile{lot}{\select@language{french}} -\@writefile{toc}{\contentsline {chapter}{\numberline {1}dolibarr Index des classes}{1}{chapter.1}} -\@writefile{lof}{\addvspace {10\p@ }} -\@writefile{lot}{\addvspace {10\p@ }} -\@writefile{toc}{\contentsline {section}{\numberline {1.1}dolibarr Liste des classes}{1}{section.1.1}} -\@writefile{toc}{\contentsline {chapter}{\numberline {2}dolibarr Index des fichiers}{3}{chapter.2}} -\@writefile{lof}{\addvspace {10\p@ }} -\@writefile{lot}{\addvspace {10\p@ }} -\@writefile{toc}{\contentsline {section}{\numberline {2.1}dolibarr Liste des fichiers}{3}{section.2.1}} -\@writefile{toc}{\contentsline {chapter}{\numberline {3}dolibarr Documentation des classes}{5}{chapter.3}} -\@writefile{lof}{\addvspace {10\p@ }} -\@writefile{lot}{\addvspace {10\p@ }} -\@writefile{toc}{\contentsline {section}{\numberline {3.1}R\'{e}f\'{e}rence de la classe CMail\discretionary {-}{}{}File}{5}{section.3.1}} -\newlabel{classCMailFile}{{3.1}{5}{R\'{e}f\'{e}rence de la classe CMail\-File\relax }{section.3.1}{}} -\newlabel{classCMailFile_a3}{{3.1}{5}{Fonctions membres publiques\relax }{section*.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.1.1}Description d\'{e}taill\'{e}e}{6}{subsection.3.1.1}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.1.2}Documentation des contructeurs et destructeur}{6}{subsection.3.1.2}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.1.2.1}CMailFile}{6}{subsubsection.3.1.2.1}} -\newlabel{classCMailFile_a0}{{3.1.2.1}{6}{CMailFile\relax }{subsubsection.3.1.2.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {3.1.3}Documentation des fonctions membres}{6}{subsection.3.1.3}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.1.3.1}attach\_\discretionary {-}{}{}file}{6}{subsubsection.3.1.3.1}} -\newlabel{classCMailFile_a1}{{3.1.3.1}{6}{attach\_\-file\relax }{subsubsection.3.1.3.1}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.1.3.2}encode\_\discretionary {-}{}{}file}{7}{subsubsection.3.1.3.2}} -\newlabel{classCMailFile_a2}{{3.1.3.2}{7}{encode\_\-file\relax }{subsubsection.3.1.3.2}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.1.3.3}write\_\discretionary {-}{}{}body}{7}{subsubsection.3.1.3.3}} -\newlabel{classCMailFile_a4}{{3.1.3.3}{7}{write\_\-body\relax }{subsubsection.3.1.3.3}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.1.3.4}write\_\discretionary {-}{}{}mimeheaders}{7}{subsubsection.3.1.3.4}} -\newlabel{classCMailFile_a5}{{3.1.3.4}{7}{write\_\-mimeheaders\relax }{subsubsection.3.1.3.4}{}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {3.1.3.5}write\_\discretionary {-}{}{}smtpheaders}{7}{subsubsection.3.1.3.5}} -\newlabel{classCMailFile_a6}{{3.1.3.5}{7}{write\_\-smtpheaders\relax }{subsubsection.3.1.3.5}{}} -\@input{classDoliDb.aux} -\@input{classvCard.aux} -\@input{classWebcal.aux} -\@writefile{toc}{\contentsline {chapter}{\numberline {4}dolibarr Documentation des fichiers}{25}{chapter.4}} -\@writefile{lof}{\addvspace {10\p@ }} -\@writefile{lot}{\addvspace {10\p@ }} -\@writefile{toc}{\contentsline {section}{\numberline {4.1}R\'{e}f\'{e}rence du fichier htdocs/lib/CMail\discretionary {-}{}{}File.class.php}{25}{section.4.1}} -\newlabel{CMailFile_8class_8php}{{4.1}{25}{R\'{e}f\'{e}rence du fichier htdocs/lib/CMail\-File.class.php\relax }{section.4.1}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.1.1}Description d\'{e}taill\'{e}e}{25}{subsection.4.1.1}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.1.2}Documentation des fonctions}{26}{subsection.4.1.2}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.1.2.1}my\_\discretionary {-}{}{}chunk\_\discretionary {-}{}{}split}{26}{subsubsection.4.1.2.1}} -\newlabel{CMailFile_8class_8php_a0}{{4.1.2.1}{26}{my\_\-chunk\_\-split\relax }{subsubsection.4.1.2.1}{}} -\@input{functions_8inc_8php.aux} -\@input{class_8jabber_8php.aux} -\@input{ldap_8lib_8php.aux} -\@input{mysql_8lib_8php.aux} -\@input{price_8lib_8php.aux} -\@input{thermometer_8php.aux} -\@input{vcard_8class_8php.aux} -\@input{webcal_8class_8php.aux} diff --git a/doc/dev/php/latex/refman.idx b/doc/dev/php/latex/refman.idx deleted file mode 100644 index e54a54386d6..00000000000 --- a/doc/dev/php/latex/refman.idx +++ /dev/null @@ -1,175 +0,0 @@ -\indexentry{CMailFile@{CMailFile}|hyperpage}{5} -\indexentry{CMailFile@{CMail\discretionary {-}{}{}File}!CMailFile@{CMailFile}|hyperpage}{6} -\indexentry{CMailFile@{CMailFile}!CMailFile@{CMail\discretionary {-}{}{}File}|hyperpage}{6} -\indexentry{CMailFile@{CMail\discretionary {-}{}{}File}!attach_file@{attach\_\discretionary {-}{}{}file}|hyperpage}{6} -\indexentry{attach_file@{attach\_\discretionary {-}{}{}file}!CMailFile@{CMail\discretionary {-}{}{}File}|hyperpage}{6} -\indexentry{CMailFile@{CMail\discretionary {-}{}{}File}!encode_file@{encode\_\discretionary {-}{}{}file}|hyperpage}{7} -\indexentry{encode_file@{encode\_\discretionary {-}{}{}file}!CMailFile@{CMail\discretionary {-}{}{}File}|hyperpage}{7} -\indexentry{CMailFile@{CMail\discretionary {-}{}{}File}!write_body@{write\_\discretionary {-}{}{}body}|hyperpage}{7} -\indexentry{write_body@{write\_\discretionary {-}{}{}body}!CMailFile@{CMail\discretionary {-}{}{}File}|hyperpage}{7} -\indexentry{CMailFile@{CMail\discretionary {-}{}{}File}!write_mimeheaders@{write\_\discretionary {-}{}{}mimeheaders}|hyperpage}{7} -\indexentry{write_mimeheaders@{write\_\discretionary {-}{}{}mimeheaders}!CMailFile@{CMail\discretionary {-}{}{}File}|hyperpage}{7} -\indexentry{CMailFile@{CMail\discretionary {-}{}{}File}!write_smtpheaders@{write\_\discretionary {-}{}{}smtpheaders}|hyperpage}{7} -\indexentry{write_smtpheaders@{write\_\discretionary {-}{}{}smtpheaders}!CMailFile@{CMail\discretionary {-}{}{}File}|hyperpage}{7} -\indexentry{DoliDb@{DoliDb}|hyperpage}{9} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!DoliDb@{DoliDb}|hyperpage}{10} -\indexentry{DoliDb@{DoliDb}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{10} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!affected_rows@{affected\_\discretionary {-}{}{}rows}|hyperpage}{11} -\indexentry{affected_rows@{affected\_\discretionary {-}{}{}rows}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{11} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!begin@{begin}|hyperpage}{11} -\indexentry{begin@{begin}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{11} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!clone@{clone}|hyperpage}{11} -\indexentry{clone@{clone}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{11} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!close@{close}|hyperpage}{11} -\indexentry{close@{close}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{11} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!commit@{commit}|hyperpage}{11} -\indexentry{commit@{commit}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{11} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!connect@{connect}|hyperpage}{12} -\indexentry{connect@{connect}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{12} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!create_db@{create\_\discretionary {-}{}{}db}|hyperpage}{12} -\indexentry{create_db@{create\_\discretionary {-}{}{}db}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{12} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!errno@{errno}|hyperpage}{12} -\indexentry{errno@{errno}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{12} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!error@{error}|hyperpage}{13} -\indexentry{error@{error}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{13} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!fetch_array@{fetch\_\discretionary {-}{}{}array}|hyperpage}{13} -\indexentry{fetch_array@{fetch\_\discretionary {-}{}{}array}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{13} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!fetch_object@{fetch\_\discretionary {-}{}{}object}|hyperpage}{13} -\indexentry{fetch_object@{fetch\_\discretionary {-}{}{}object}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{13} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!fetch_row@{fetch\_\discretionary {-}{}{}row}|hyperpage}{13} -\indexentry{fetch_row@{fetch\_\discretionary {-}{}{}row}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{13} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!free@{free}|hyperpage}{13} -\indexentry{free@{free}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{13} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!idate@{idate}|hyperpage}{14} -\indexentry{idate@{idate}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{14} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!last_insert_id@{last\_\discretionary {-}{}{}insert\_\discretionary {-}{}{}id}|hyperpage}{14} -\indexentry{last_insert_id@{last\_\discretionary {-}{}{}insert\_\discretionary {-}{}{}id}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{14} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!list_tables@{list\_\discretionary {-}{}{}tables}|hyperpage}{14} -\indexentry{list_tables@{list\_\discretionary {-}{}{}tables}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{14} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!num_fields@{num\_\discretionary {-}{}{}fields}|hyperpage}{14} -\indexentry{num_fields@{num\_\discretionary {-}{}{}fields}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{14} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!num_rows@{num\_\discretionary {-}{}{}rows}|hyperpage}{15} -\indexentry{num_rows@{num\_\discretionary {-}{}{}rows}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{15} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!pconnect@{pconnect}|hyperpage}{15} -\indexentry{pconnect@{pconnect}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{15} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!plimit@{plimit}|hyperpage}{15} -\indexentry{plimit@{plimit}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{15} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!query@{query}|hyperpage}{15} -\indexentry{query@{query}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{15} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!result@{result}|hyperpage}{16} -\indexentry{result@{result}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{16} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!rollback@{rollback}|hyperpage}{16} -\indexentry{rollback@{rollback}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{16} -\indexentry{DoliDb@{Doli\discretionary {-}{}{}Db}!select_db@{select\_\discretionary {-}{}{}db}|hyperpage}{16} -\indexentry{select_db@{select\_\discretionary {-}{}{}db}!DoliDb@{Doli\discretionary {-}{}{}Db}|hyperpage}{16} -\indexentry{vCard@{vCard}|hyperpage}{18} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setAddress@{setAddress}|hyperpage}{19} -\indexentry{setAddress@{setAddress}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{19} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setBirthday@{setBirthday}|hyperpage}{19} -\indexentry{setBirthday@{setBirthday}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{19} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setEmail@{setEmail}|hyperpage}{19} -\indexentry{setEmail@{setEmail}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{19} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setFormattedName@{setFormattedName}|hyperpage}{19} -\indexentry{setFormattedName@{setFormattedName}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{19} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setLabel@{setLabel}|hyperpage}{20} -\indexentry{setLabel@{setLabel}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{20} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setName@{setName}|hyperpage}{20} -\indexentry{setName@{setName}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{20} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setNote@{setNote}|hyperpage}{20} -\indexentry{setNote@{setNote}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{20} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setPhoneNumber@{setPhoneNumber}|hyperpage}{21} -\indexentry{setPhoneNumber@{setPhoneNumber}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{21} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setPhoto@{setPhoto}|hyperpage}{21} -\indexentry{setPhoto@{setPhoto}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{21} -\indexentry{vCard@{v\discretionary {-}{}{}Card}!setURL@{setURL}|hyperpage}{21} -\indexentry{setURL@{setURL}!vCard@{v\discretionary {-}{}{}Card}|hyperpage}{21} -\indexentry{Webcal@{Webcal}|hyperpage}{23} -\indexentry{Webcal@{Webcal}!add@{add}|hyperpage}{23} -\indexentry{add@{add}!Webcal@{Webcal}|hyperpage}{23} -\indexentry{Webcal@{Webcal}!get_next_id@{get\_\discretionary {-}{}{}next\_\discretionary {-}{}{}id}|hyperpage}{23} -\indexentry{get_next_id@{get\_\discretionary {-}{}{}next\_\discretionary {-}{}{}id}!Webcal@{Webcal}|hyperpage}{23} -\indexentry{htdocs/lib/CMailFile.class.php@{htdocs/lib/CMailFile.class.php}|hyperpage}{25} -\indexentry{CMailFile.class.php@{CMail\discretionary {-}{}{}File.class.php}!my_chunk_split@{my\_\discretionary {-}{}{}chunk\_\discretionary {-}{}{}split}|hyperpage}{26} -\indexentry{my_chunk_split@{my\_\discretionary {-}{}{}chunk\_\discretionary {-}{}{}split}!CMailFile.class.php@{CMail\discretionary {-}{}{}File.class.php}|hyperpage}{26} -\indexentry{htdocs/lib/functions.inc.php@{htdocs/lib/functions.inc.php}|hyperpage}{27} -\indexentry{functions.inc.php@{functions.inc.php}!creer_pass_aleatoire@{creer\_\discretionary {-}{}{}pass\_\discretionary {-}{}{}aleatoire}|hyperpage}{29} -\indexentry{creer_pass_aleatoire@{creer\_\discretionary {-}{}{}pass\_\discretionary {-}{}{}aleatoire}!functions.inc.php@{functions.inc.php}|hyperpage}{29} -\indexentry{functions.inc.php@{functions.inc.php}!dol_delete_file@{dol\_\discretionary {-}{}{}delete\_\discretionary {-}{}{}file}|hyperpage}{29} -\indexentry{dol_delete_file@{dol\_\discretionary {-}{}{}delete\_\discretionary {-}{}{}file}!functions.inc.php@{functions.inc.php}|hyperpage}{29} -\indexentry{functions.inc.php@{functions.inc.php}!dolibarr_del_const@{dolibarr\_\discretionary {-}{}{}del\_\discretionary {-}{}{}const}|hyperpage}{29} -\indexentry{dolibarr_del_const@{dolibarr\_\discretionary {-}{}{}del\_\discretionary {-}{}{}const}!functions.inc.php@{functions.inc.php}|hyperpage}{29} -\indexentry{functions.inc.php@{functions.inc.php}!dolibarr_fiche_head@{dolibarr\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}head}|hyperpage}{29} -\indexentry{dolibarr_fiche_head@{dolibarr\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}head}!functions.inc.php@{functions.inc.php}|hyperpage}{29} -\indexentry{functions.inc.php@{functions.inc.php}!dolibarr_print_ca@{dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}ca}|hyperpage}{30} -\indexentry{dolibarr_print_ca@{dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}ca}!functions.inc.php@{functions.inc.php}|hyperpage}{30} -\indexentry{functions.inc.php@{functions.inc.php}!dolibarr_print_date@{dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}date}|hyperpage}{30} -\indexentry{dolibarr_print_date@{dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}date}!functions.inc.php@{functions.inc.php}|hyperpage}{30} -\indexentry{functions.inc.php@{functions.inc.php}!dolibarr_print_object_info@{dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}object\_\discretionary {-}{}{}info}|hyperpage}{30} -\indexentry{dolibarr_print_object_info@{dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}object\_\discretionary {-}{}{}info}!functions.inc.php@{functions.inc.php}|hyperpage}{30} -\indexentry{functions.inc.php@{functions.inc.php}!dolibarr_print_phone@{dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}phone}|hyperpage}{30} -\indexentry{dolibarr_print_phone@{dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}phone}!functions.inc.php@{functions.inc.php}|hyperpage}{30} -\indexentry{functions.inc.php@{functions.inc.php}!dolibarr_set_const@{dolibarr\_\discretionary {-}{}{}set\_\discretionary {-}{}{}const}|hyperpage}{31} -\indexentry{dolibarr_set_const@{dolibarr\_\discretionary {-}{}{}set\_\discretionary {-}{}{}const}!functions.inc.php@{functions.inc.php}|hyperpage}{31} -\indexentry{functions.inc.php@{functions.inc.php}!dolibarr_syslog@{dolibarr\_\discretionary {-}{}{}syslog}|hyperpage}{31} -\indexentry{dolibarr_syslog@{dolibarr\_\discretionary {-}{}{}syslog}!functions.inc.php@{functions.inc.php}|hyperpage}{31} -\indexentry{functions.inc.php@{functions.inc.php}!doliMoveFileUpload@{doliMoveFileUpload}|hyperpage}{31} -\indexentry{doliMoveFileUpload@{doliMoveFileUpload}!functions.inc.php@{functions.inc.php}|hyperpage}{31} -\indexentry{functions.inc.php@{functions.inc.php}!francs@{francs}|hyperpage}{31} -\indexentry{francs@{francs}!functions.inc.php@{functions.inc.php}|hyperpage}{31} -\indexentry{functions.inc.php@{functions.inc.php}!inctva@{inctva}|hyperpage}{32} -\indexentry{inctva@{inctva}!functions.inc.php@{functions.inc.php}|hyperpage}{32} -\indexentry{functions.inc.php@{functions.inc.php}!initialiser_sel@{initialiser\_\discretionary {-}{}{}sel}|hyperpage}{32} -\indexentry{initialiser_sel@{initialiser\_\discretionary {-}{}{}sel}!functions.inc.php@{functions.inc.php}|hyperpage}{32} -\indexentry{functions.inc.php@{functions.inc.php}!logfile@{logfile}|hyperpage}{32} -\indexentry{logfile@{logfile}!functions.inc.php@{functions.inc.php}|hyperpage}{32} -\indexentry{functions.inc.php@{functions.inc.php}!loginfunction@{loginfunction}|hyperpage}{32} -\indexentry{loginfunction@{loginfunction}!functions.inc.php@{functions.inc.php}|hyperpage}{32} -\indexentry{functions.inc.php@{functions.inc.php}!price@{price}|hyperpage}{33} -\indexentry{price@{price}!functions.inc.php@{functions.inc.php}|hyperpage}{33} -\indexentry{functions.inc.php@{functions.inc.php}!print_date_select@{print\_\discretionary {-}{}{}date\_\discretionary {-}{}{}select}|hyperpage}{33} -\indexentry{print_date_select@{print\_\discretionary {-}{}{}date\_\discretionary {-}{}{}select}!functions.inc.php@{functions.inc.php}|hyperpage}{33} -\indexentry{functions.inc.php@{functions.inc.php}!print_duree_select@{print\_\discretionary {-}{}{}duree\_\discretionary {-}{}{}select}|hyperpage}{33} -\indexentry{print_duree_select@{print\_\discretionary {-}{}{}duree\_\discretionary {-}{}{}select}!functions.inc.php@{functions.inc.php}|hyperpage}{33} -\indexentry{functions.inc.php@{functions.inc.php}!print_fiche_titre@{print\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}titre}|hyperpage}{33} -\indexentry{print_fiche_titre@{print\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}titre}!functions.inc.php@{functions.inc.php}|hyperpage}{33} -\indexentry{functions.inc.php@{functions.inc.php}!print_fleche_navigation@{print\_\discretionary {-}{}{}fleche\_\discretionary {-}{}{}navigation}|hyperpage}{34} -\indexentry{print_fleche_navigation@{print\_\discretionary {-}{}{}fleche\_\discretionary {-}{}{}navigation}!functions.inc.php@{functions.inc.php}|hyperpage}{34} -\indexentry{functions.inc.php@{functions.inc.php}!print_heure_select@{print\_\discretionary {-}{}{}heure\_\discretionary {-}{}{}select}|hyperpage}{34} -\indexentry{print_heure_select@{print\_\discretionary {-}{}{}heure\_\discretionary {-}{}{}select}!functions.inc.php@{functions.inc.php}|hyperpage}{34} -\indexentry{functions.inc.php@{functions.inc.php}!print_liste_field_titre@{print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre}|hyperpage}{34} -\indexentry{print_liste_field_titre@{print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre}!functions.inc.php@{functions.inc.php}|hyperpage}{34} -\indexentry{functions.inc.php@{functions.inc.php}!print_liste_field_titre_new@{print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre\_\discretionary {-}{}{}new}|hyperpage}{35} -\indexentry{print_liste_field_titre_new@{print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre\_\discretionary {-}{}{}new}!functions.inc.php@{functions.inc.php}|hyperpage}{35} -\indexentry{functions.inc.php@{functions.inc.php}!print_oui_non@{print\_\discretionary {-}{}{}oui\_\discretionary {-}{}{}non}|hyperpage}{35} -\indexentry{print_oui_non@{print\_\discretionary {-}{}{}oui\_\discretionary {-}{}{}non}!functions.inc.php@{functions.inc.php}|hyperpage}{35} -\indexentry{functions.inc.php@{functions.inc.php}!print_titre@{print\_\discretionary {-}{}{}titre}|hyperpage}{35} -\indexentry{print_titre@{print\_\discretionary {-}{}{}titre}!functions.inc.php@{functions.inc.php}|hyperpage}{35} -\indexentry{functions.inc.php@{functions.inc.php}!stat_print@{stat\_\discretionary {-}{}{}print}|hyperpage}{35} -\indexentry{stat_print@{stat\_\discretionary {-}{}{}print}!functions.inc.php@{functions.inc.php}|hyperpage}{35} -\indexentry{functions.inc.php@{functions.inc.php}!transcoS2L@{transcoS2L}|hyperpage}{36} -\indexentry{transcoS2L@{transcoS2L}!functions.inc.php@{functions.inc.php}|hyperpage}{36} -\indexentry{functions.inc.php@{functions.inc.php}!tva@{tva}|hyperpage}{36} -\indexentry{tva@{tva}!functions.inc.php@{functions.inc.php}|hyperpage}{36} -\indexentry{htdocs/lib/jabber/class.jabber.php@{htdocs/lib/jabber/class.jabber.php}|hyperpage}{37} -\indexentry{htdocs/lib/ldap.lib.php@{htdocs/lib/ldap.lib.php}|hyperpage}{38} -\indexentry{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_bind@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}bind}|hyperpage}{38} -\indexentry{dolibarr_ldap_bind@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}bind}!ldap.lib.php@{ldap.lib.php}|hyperpage}{38} -\indexentry{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_connect@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}connect}|hyperpage}{38} -\indexentry{dolibarr_ldap_connect@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}connect}!ldap.lib.php@{ldap.lib.php}|hyperpage}{38} -\indexentry{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_getversion@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}getversion}|hyperpage}{39} -\indexentry{dolibarr_ldap_getversion@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}getversion}!ldap.lib.php@{ldap.lib.php}|hyperpage}{39} -\indexentry{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_setversion@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}setversion}|hyperpage}{39} -\indexentry{dolibarr_ldap_setversion@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}setversion}!ldap.lib.php@{ldap.lib.php}|hyperpage}{39} -\indexentry{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_unacc@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unacc}|hyperpage}{39} -\indexentry{dolibarr_ldap_unacc@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unacc}!ldap.lib.php@{ldap.lib.php}|hyperpage}{39} -\indexentry{ldap.lib.php@{ldap.lib.php}!dolibarr_ldap_unbind@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unbind}|hyperpage}{39} -\indexentry{dolibarr_ldap_unbind@{dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unbind}!ldap.lib.php@{ldap.lib.php}|hyperpage}{39} -\indexentry{htdocs/lib/mysql.lib.php@{htdocs/lib/mysql.lib.php}|hyperpage}{41} -\indexentry{htdocs/lib/price.lib.php@{htdocs/lib/price.lib.php}|hyperpage}{42} -\indexentry{price.lib.php@{price.lib.php}!calcul_price@{calcul\_\discretionary {-}{}{}price}|hyperpage}{42} -\indexentry{calcul_price@{calcul\_\discretionary {-}{}{}price}!price.lib.php@{price.lib.php}|hyperpage}{42} -\indexentry{htdocs/lib/thermometer.php@{htdocs/lib/thermometer.php}|hyperpage}{43} -\indexentry{thermometer.php@{thermometer.php}!moneyMeter@{moneyMeter}|hyperpage}{43} -\indexentry{moneyMeter@{moneyMeter}!thermometer.php@{thermometer.php}|hyperpage}{43} -\indexentry{htdocs/lib/vcard/vcard.class.php@{htdocs/lib/vcard/vcard.class.php}|hyperpage}{44} -\indexentry{htdocs/lib/webcal.class.php@{htdocs/lib/webcal.class.php}|hyperpage}{45} diff --git a/doc/dev/php/latex/refman.ilg b/doc/dev/php/latex/refman.ilg deleted file mode 100644 index e9c5cf44f03..00000000000 --- a/doc/dev/php/latex/refman.ilg +++ /dev/null @@ -1,6 +0,0 @@ -This is makeindex, version 2.13 [07-Mar-1997] (using kpathsea). -Scanning input file refman.idx....done (175 entries accepted, 0 rejected). -Sorting entries....done (1448 comparisons). -Generating output file refman.ind....done (347 lines written, 0 warnings). -Output written in refman.ind. -Transcript written in refman.ilg. diff --git a/doc/dev/php/latex/refman.ind b/doc/dev/php/latex/refman.ind deleted file mode 100644 index 7685f89809a..00000000000 --- a/doc/dev/php/latex/refman.ind +++ /dev/null @@ -1,347 +0,0 @@ -\begin{theindex} - - \item {add} - \subitem {Webcal}, \hyperpage{23} - \item {affected\_\discretionary {-}{}{}rows} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{11} - \item {attach\_\discretionary {-}{}{}file} - \subitem {CMail\discretionary {-}{}{}File}, \hyperpage{6} - - \indexspace - - \item {begin} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{11} - - \indexspace - - \item {calcul\_\discretionary {-}{}{}price} - \subitem {price.lib.php}, \hyperpage{42} - \item {clone} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{11} - \item {close} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{11} - \item {CMailFile}, \hyperpage{5} - \subitem {CMail\discretionary {-}{}{}File}, \hyperpage{6} - \item {CMail\discretionary {-}{}{}File} - \subitem {attach\_\discretionary {-}{}{}file}, \hyperpage{6} - \subitem {CMailFile}, \hyperpage{6} - \subitem {encode\_\discretionary {-}{}{}file}, \hyperpage{7} - \subitem {write\_\discretionary {-}{}{}body}, \hyperpage{7} - \subitem {write\_\discretionary {-}{}{}mimeheaders}, \hyperpage{7} - \subitem {write\_\discretionary {-}{}{}smtpheaders}, \hyperpage{7} - \item {CMail\discretionary {-}{}{}File.class.php} - \subitem {my\_\discretionary {-}{}{}chunk\_\discretionary {-}{}{}split}, - \hyperpage{26} - \item {commit} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{11} - \item {connect} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{12} - \item {create\_\discretionary {-}{}{}db} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{12} - \item {creer\_\discretionary {-}{}{}pass\_\discretionary {-}{}{}aleatoire} - \subitem {functions.inc.php}, \hyperpage{29} - - \indexspace - - \item {dol\_\discretionary {-}{}{}delete\_\discretionary {-}{}{}file} - \subitem {functions.inc.php}, \hyperpage{29} - \item {dolibarr\_\discretionary {-}{}{}del\_\discretionary {-}{}{}const} - \subitem {functions.inc.php}, \hyperpage{29} - \item {dolibarr\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}head} - \subitem {functions.inc.php}, \hyperpage{29} - \item {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}bind} - \subitem {ldap.lib.php}, \hyperpage{38} - \item {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}connect} - \subitem {ldap.lib.php}, \hyperpage{38} - \item {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}getversion} - \subitem {ldap.lib.php}, \hyperpage{39} - \item {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}setversion} - \subitem {ldap.lib.php}, \hyperpage{39} - \item {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unacc} - \subitem {ldap.lib.php}, \hyperpage{39} - \item {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unbind} - \subitem {ldap.lib.php}, \hyperpage{39} - \item {dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}ca} - \subitem {functions.inc.php}, \hyperpage{30} - \item {dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}date} - \subitem {functions.inc.php}, \hyperpage{30} - \item {dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}object\_\discretionary {-}{}{}info} - \subitem {functions.inc.php}, \hyperpage{30} - \item {dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}phone} - \subitem {functions.inc.php}, \hyperpage{30} - \item {dolibarr\_\discretionary {-}{}{}set\_\discretionary {-}{}{}const} - \subitem {functions.inc.php}, \hyperpage{31} - \item {dolibarr\_\discretionary {-}{}{}syslog} - \subitem {functions.inc.php}, \hyperpage{31} - \item {DoliDb}, \hyperpage{9} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{10} - \item {Doli\discretionary {-}{}{}Db} - \subitem {affected\_\discretionary {-}{}{}rows}, \hyperpage{11} - \subitem {begin}, \hyperpage{11} - \subitem {clone}, \hyperpage{11} - \subitem {close}, \hyperpage{11} - \subitem {commit}, \hyperpage{11} - \subitem {connect}, \hyperpage{12} - \subitem {create\_\discretionary {-}{}{}db}, \hyperpage{12} - \subitem {DoliDb}, \hyperpage{10} - \subitem {errno}, \hyperpage{12} - \subitem {error}, \hyperpage{13} - \subitem {fetch\_\discretionary {-}{}{}array}, \hyperpage{13} - \subitem {fetch\_\discretionary {-}{}{}object}, \hyperpage{13} - \subitem {fetch\_\discretionary {-}{}{}row}, \hyperpage{13} - \subitem {free}, \hyperpage{13} - \subitem {idate}, \hyperpage{14} - \subitem {last\_\discretionary {-}{}{}insert\_\discretionary {-}{}{}id}, - \hyperpage{14} - \subitem {list\_\discretionary {-}{}{}tables}, \hyperpage{14} - \subitem {num\_\discretionary {-}{}{}fields}, \hyperpage{14} - \subitem {num\_\discretionary {-}{}{}rows}, \hyperpage{15} - \subitem {pconnect}, \hyperpage{15} - \subitem {plimit}, \hyperpage{15} - \subitem {query}, \hyperpage{15} - \subitem {result}, \hyperpage{16} - \subitem {rollback}, \hyperpage{16} - \subitem {select\_\discretionary {-}{}{}db}, \hyperpage{16} - \item {doliMoveFileUpload} - \subitem {functions.inc.php}, \hyperpage{31} - - \indexspace - - \item {encode\_\discretionary {-}{}{}file} - \subitem {CMail\discretionary {-}{}{}File}, \hyperpage{7} - \item {errno} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{12} - \item {error} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{13} - - \indexspace - - \item {fetch\_\discretionary {-}{}{}array} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{13} - \item {fetch\_\discretionary {-}{}{}object} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{13} - \item {fetch\_\discretionary {-}{}{}row} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{13} - \item {francs} - \subitem {functions.inc.php}, \hyperpage{31} - \item {free} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{13} - \item {functions.inc.php} - \subitem {creer\_\discretionary {-}{}{}pass\_\discretionary {-}{}{}aleatoire}, - \hyperpage{29} - \subitem {dol\_\discretionary {-}{}{}delete\_\discretionary {-}{}{}file}, - \hyperpage{29} - \subitem {dolibarr\_\discretionary {-}{}{}del\_\discretionary {-}{}{}const}, - \hyperpage{29} - \subitem {dolibarr\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}head}, - \hyperpage{29} - \subitem {dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}ca}, - \hyperpage{30} - \subitem {dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}date}, - \hyperpage{30} - \subitem {dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}object\_\discretionary {-}{}{}info}, - \hyperpage{30} - \subitem {dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}phone}, - \hyperpage{30} - \subitem {dolibarr\_\discretionary {-}{}{}set\_\discretionary {-}{}{}const}, - \hyperpage{31} - \subitem {dolibarr\_\discretionary {-}{}{}syslog}, \hyperpage{31} - \subitem {doliMoveFileUpload}, \hyperpage{31} - \subitem {francs}, \hyperpage{31} - \subitem {inctva}, \hyperpage{32} - \subitem {initialiser\_\discretionary {-}{}{}sel}, \hyperpage{32} - \subitem {logfile}, \hyperpage{32} - \subitem {loginfunction}, \hyperpage{32} - \subitem {price}, \hyperpage{33} - \subitem {print\_\discretionary {-}{}{}date\_\discretionary {-}{}{}select}, - \hyperpage{33} - \subitem {print\_\discretionary {-}{}{}duree\_\discretionary {-}{}{}select}, - \hyperpage{33} - \subitem {print\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}titre}, - \hyperpage{33} - \subitem {print\_\discretionary {-}{}{}fleche\_\discretionary {-}{}{}navigation}, - \hyperpage{34} - \subitem {print\_\discretionary {-}{}{}heure\_\discretionary {-}{}{}select}, - \hyperpage{34} - \subitem {print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre}, - \hyperpage{34} - \subitem {print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre\_\discretionary {-}{}{}new}, - \hyperpage{35} - \subitem {print\_\discretionary {-}{}{}oui\_\discretionary {-}{}{}non}, - \hyperpage{35} - \subitem {print\_\discretionary {-}{}{}titre}, \hyperpage{35} - \subitem {stat\_\discretionary {-}{}{}print}, \hyperpage{35} - \subitem {transcoS2L}, \hyperpage{36} - \subitem {tva}, \hyperpage{36} - - \indexspace - - \item {get\_\discretionary {-}{}{}next\_\discretionary {-}{}{}id} - \subitem {Webcal}, \hyperpage{23} - - \indexspace - - \item {htdocs/lib/CMailFile.class.php}, \hyperpage{25} - \item {htdocs/lib/functions.inc.php}, \hyperpage{27} - \item {htdocs/lib/jabber/class.jabber.php}, \hyperpage{37} - \item {htdocs/lib/ldap.lib.php}, \hyperpage{38} - \item {htdocs/lib/mysql.lib.php}, \hyperpage{41} - \item {htdocs/lib/price.lib.php}, \hyperpage{42} - \item {htdocs/lib/thermometer.php}, \hyperpage{43} - \item {htdocs/lib/vcard/vcard.class.php}, \hyperpage{44} - \item {htdocs/lib/webcal.class.php}, \hyperpage{45} - - \indexspace - - \item {idate} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{14} - \item {inctva} - \subitem {functions.inc.php}, \hyperpage{32} - \item {initialiser\_\discretionary {-}{}{}sel} - \subitem {functions.inc.php}, \hyperpage{32} - - \indexspace - - \item {last\_\discretionary {-}{}{}insert\_\discretionary {-}{}{}id} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{14} - \item {ldap.lib.php} - \subitem {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}bind}, - \hyperpage{38} - \subitem {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}connect}, - \hyperpage{38} - \subitem {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}getversion}, - \hyperpage{39} - \subitem {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}setversion}, - \hyperpage{39} - \subitem {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unacc}, - \hyperpage{39} - \subitem {dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unbind}, - \hyperpage{39} - \item {list\_\discretionary {-}{}{}tables} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{14} - \item {logfile} - \subitem {functions.inc.php}, \hyperpage{32} - \item {loginfunction} - \subitem {functions.inc.php}, \hyperpage{32} - - \indexspace - - \item {moneyMeter} - \subitem {thermometer.php}, \hyperpage{43} - \item {my\_\discretionary {-}{}{}chunk\_\discretionary {-}{}{}split} - \subitem {CMail\discretionary {-}{}{}File.class.php}, - \hyperpage{26} - - \indexspace - - \item {num\_\discretionary {-}{}{}fields} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{14} - \item {num\_\discretionary {-}{}{}rows} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{15} - - \indexspace - - \item {pconnect} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{15} - \item {plimit} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{15} - \item {price} - \subitem {functions.inc.php}, \hyperpage{33} - \item {price.lib.php} - \subitem {calcul\_\discretionary {-}{}{}price}, \hyperpage{42} - \item {print\_\discretionary {-}{}{}date\_\discretionary {-}{}{}select} - \subitem {functions.inc.php}, \hyperpage{33} - \item {print\_\discretionary {-}{}{}duree\_\discretionary {-}{}{}select} - \subitem {functions.inc.php}, \hyperpage{33} - \item {print\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}titre} - \subitem {functions.inc.php}, \hyperpage{33} - \item {print\_\discretionary {-}{}{}fleche\_\discretionary {-}{}{}navigation} - \subitem {functions.inc.php}, \hyperpage{34} - \item {print\_\discretionary {-}{}{}heure\_\discretionary {-}{}{}select} - \subitem {functions.inc.php}, \hyperpage{34} - \item {print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre} - \subitem {functions.inc.php}, \hyperpage{34} - \item {print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre\_\discretionary {-}{}{}new} - \subitem {functions.inc.php}, \hyperpage{35} - \item {print\_\discretionary {-}{}{}oui\_\discretionary {-}{}{}non} - \subitem {functions.inc.php}, \hyperpage{35} - \item {print\_\discretionary {-}{}{}titre} - \subitem {functions.inc.php}, \hyperpage{35} - - \indexspace - - \item {query} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{15} - - \indexspace - - \item {result} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{16} - \item {rollback} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{16} - - \indexspace - - \item {select\_\discretionary {-}{}{}db} - \subitem {Doli\discretionary {-}{}{}Db}, \hyperpage{16} - \item {setAddress} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{19} - \item {setBirthday} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{19} - \item {setEmail} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{19} - \item {setFormattedName} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{19} - \item {setLabel} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{20} - \item {setName} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{20} - \item {setNote} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{20} - \item {setPhoneNumber} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{21} - \item {setPhoto} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{21} - \item {setURL} - \subitem {v\discretionary {-}{}{}Card}, \hyperpage{21} - \item {stat\_\discretionary {-}{}{}print} - \subitem {functions.inc.php}, \hyperpage{35} - - \indexspace - - \item {thermometer.php} - \subitem {moneyMeter}, \hyperpage{43} - \item {transcoS2L} - \subitem {functions.inc.php}, \hyperpage{36} - \item {tva} - \subitem {functions.inc.php}, \hyperpage{36} - - \indexspace - - \item {vCard}, \hyperpage{18} - \item {v\discretionary {-}{}{}Card} - \subitem {setAddress}, \hyperpage{19} - \subitem {setBirthday}, \hyperpage{19} - \subitem {setEmail}, \hyperpage{19} - \subitem {setFormattedName}, \hyperpage{19} - \subitem {setLabel}, \hyperpage{20} - \subitem {setName}, \hyperpage{20} - \subitem {setNote}, \hyperpage{20} - \subitem {setPhoneNumber}, \hyperpage{21} - \subitem {setPhoto}, \hyperpage{21} - \subitem {setURL}, \hyperpage{21} - - \indexspace - - \item {Webcal}, \hyperpage{23} - \subitem {add}, \hyperpage{23} - \subitem {get\_\discretionary {-}{}{}next\_\discretionary {-}{}{}id}, - \hyperpage{23} - \item {write\_\discretionary {-}{}{}body} - \subitem {CMail\discretionary {-}{}{}File}, \hyperpage{7} - \item {write\_\discretionary {-}{}{}mimeheaders} - \subitem {CMail\discretionary {-}{}{}File}, \hyperpage{7} - \item {write\_\discretionary {-}{}{}smtpheaders} - \subitem {CMail\discretionary {-}{}{}File}, \hyperpage{7} - -\end{theindex} diff --git a/doc/dev/php/latex/refman.out b/doc/dev/php/latex/refman.out deleted file mode 100644 index ce3f9316f4b..00000000000 --- a/doc/dev/php/latex/refman.out +++ /dev/null @@ -1,19 +0,0 @@ -\BOOKMARK [0][-]{chapter.1}{dolibarr Index des classes}{} -\BOOKMARK [1][-]{section.1.1}{dolibarr Liste des classes}{chapter.1} -\BOOKMARK [0][-]{chapter.2}{dolibarr Index des fichiers}{} -\BOOKMARK [1][-]{section.2.1}{dolibarr Liste des fichiers}{chapter.2} -\BOOKMARK [0][-]{chapter.3}{dolibarr Documentation des classes}{} -\BOOKMARK [1][-]{section.3.1}{R\351f\351rence de la classe CMailFile}{chapter.3} -\BOOKMARK [1][-]{section.3.2}{R\351f\351rence de la classe DoliDb}{chapter.3} -\BOOKMARK [1][-]{section.3.3}{R\351f\351rence de la classe vCard}{chapter.3} -\BOOKMARK [1][-]{section.3.4}{R\351f\351rence de la classe Webcal}{chapter.3} -\BOOKMARK [0][-]{chapter.4}{dolibarr Documentation des fichiers}{} -\BOOKMARK [1][-]{section.4.1}{R\351f\351rence du fichier htdocs/lib/CMailFile.class.php}{chapter.4} -\BOOKMARK [1][-]{section.4.2}{R\351f\351rence du fichier htdocs/lib/functions.inc.php}{chapter.4} -\BOOKMARK [1][-]{section.4.3}{R\351f\351rence du fichier htdocs/lib/jabber/class.jabber.php}{chapter.4} -\BOOKMARK [1][-]{section.4.4}{R\351f\351rence du fichier htdocs/lib/ldap.lib.php}{chapter.4} -\BOOKMARK [1][-]{section.4.5}{R\351f\351rence du fichier htdocs/lib/mysql.lib.php}{chapter.4} -\BOOKMARK [1][-]{section.4.6}{R\351f\351rence du fichier htdocs/lib/price.lib.php}{chapter.4} -\BOOKMARK [1][-]{section.4.7}{R\351f\351rence du fichier htdocs/lib/thermometer.php}{chapter.4} -\BOOKMARK [1][-]{section.4.8}{R\351f\351rence du fichier htdocs/lib/vcard/vcard.class.php}{chapter.4} -\BOOKMARK [1][-]{section.4.9}{R\351f\351rence du fichier htdocs/lib/webcal.class.php}{chapter.4} diff --git a/doc/dev/php/latex/refman.pdf b/doc/dev/php/latex/refman.pdf deleted file mode 100644 index 0fd6161c44c..00000000000 Binary files a/doc/dev/php/latex/refman.pdf and /dev/null differ diff --git a/doc/dev/php/latex/refman.tex b/doc/dev/php/latex/refman.tex deleted file mode 100644 index df81d12304c..00000000000 --- a/doc/dev/php/latex/refman.tex +++ /dev/null @@ -1,66 +0,0 @@ -\documentclass[a4paper]{book} -\usepackage{makeidx} -\usepackage{fancyhdr} -\usepackage{graphicx} -\usepackage{multicol} -\usepackage{float} -\usepackage{textcomp} -\usepackage{alltt} -\usepackage{times} -\ifx\pdfoutput\undefined -\usepackage[ps2pdf, - pagebackref=true, - colorlinks=true, - linkcolor=blue - ]{hyperref} -\usepackage{pspicture} -\else -\usepackage[pdftex, - pagebackref=true, - colorlinks=true, - linkcolor=blue - ]{hyperref} -\fi -\usepackage[french]{babel} - -\usepackage{doxygen} -\makeindex -\setcounter{tocdepth}{1} -\renewcommand{\footrulewidth}{0.4pt} -\begin{document} -\begin{titlepage} -\vspace*{7cm} -\begin{center} -{\Large dolibarr Manuel de r\'{e}f\'{e}rence\\[1ex]\large 1.2.0 }\\ -\vspace*{1cm} -{\large G\'{e}n\'{e}r\'{e} par Doxygen 1.3.7}\\ -\vspace*{0.5cm} -{\small Fri Jul 16 08:51:51 2004}\\ -\end{center} -\end{titlepage} -\clearemptydoublepage -\pagenumbering{roman} -\tableofcontents -\clearemptydoublepage -\pagenumbering{arabic} -\chapter{dolibarr Index des classes} -\input{annotated} -\chapter{dolibarr Index des fichiers} -\input{files} -\chapter{dolibarr Documentation des classes} -\input{classCMailFile} -\include{classDoliDb} -\include{classvCard} -\include{classWebcal} -\chapter{dolibarr Documentation des fichiers} -\input{CMailFile_8class_8php} -\include{functions_8inc_8php} -\include{class_8jabber_8php} -\include{ldap_8lib_8php} -\include{mysql_8lib_8php} -\include{price_8lib_8php} -\include{thermometer_8php} -\include{vcard_8class_8php} -\include{webcal_8class_8php} -\printindex -\end{document} diff --git a/doc/dev/php/latex/refman.toc b/doc/dev/php/latex/refman.toc deleted file mode 100644 index ac2a3bdc877..00000000000 --- a/doc/dev/php/latex/refman.toc +++ /dev/null @@ -1,125 +0,0 @@ -\select@language {french} -\contentsline {chapter}{\numberline {1}dolibarr Index des classes}{1}{chapter.1} -\contentsline {section}{\numberline {1.1}dolibarr Liste des classes}{1}{section.1.1} -\contentsline {chapter}{\numberline {2}dolibarr Index des fichiers}{3}{chapter.2} -\contentsline {section}{\numberline {2.1}dolibarr Liste des fichiers}{3}{section.2.1} -\contentsline {chapter}{\numberline {3}dolibarr Documentation des classes}{5}{chapter.3} -\contentsline {section}{\numberline {3.1}R\'{e}f\'{e}rence de la classe CMail\discretionary {-}{}{}File}{5}{section.3.1} -\contentsline {subsection}{\numberline {3.1.1}Description d\'{e}taill\'{e}e}{6}{subsection.3.1.1} -\contentsline {subsection}{\numberline {3.1.2}Documentation des contructeurs et destructeur}{6}{subsection.3.1.2} -\contentsline {subsubsection}{\numberline {3.1.2.1}CMailFile}{6}{subsubsection.3.1.2.1} -\contentsline {subsection}{\numberline {3.1.3}Documentation des fonctions membres}{6}{subsection.3.1.3} -\contentsline {subsubsection}{\numberline {3.1.3.1}attach\_\discretionary {-}{}{}file}{6}{subsubsection.3.1.3.1} -\contentsline {subsubsection}{\numberline {3.1.3.2}encode\_\discretionary {-}{}{}file}{7}{subsubsection.3.1.3.2} -\contentsline {subsubsection}{\numberline {3.1.3.3}write\_\discretionary {-}{}{}body}{7}{subsubsection.3.1.3.3} -\contentsline {subsubsection}{\numberline {3.1.3.4}write\_\discretionary {-}{}{}mimeheaders}{7}{subsubsection.3.1.3.4} -\contentsline {subsubsection}{\numberline {3.1.3.5}write\_\discretionary {-}{}{}smtpheaders}{7}{subsubsection.3.1.3.5} -\contentsline {section}{\numberline {3.2}R\'{e}f\'{e}rence de la classe Doli\discretionary {-}{}{}Db}{9}{section.3.2} -\contentsline {subsection}{\numberline {3.2.1}Description d\'{e}taill\'{e}e}{10}{subsection.3.2.1} -\contentsline {subsection}{\numberline {3.2.2}Documentation des contructeurs et destructeur}{10}{subsection.3.2.2} -\contentsline {subsubsection}{\numberline {3.2.2.1}DoliDb}{10}{subsubsection.3.2.2.1} -\contentsline {subsection}{\numberline {3.2.3}Documentation des fonctions membres}{11}{subsection.3.2.3} -\contentsline {subsubsection}{\numberline {3.2.3.1}affected\_\discretionary {-}{}{}rows}{11}{subsubsection.3.2.3.1} -\contentsline {subsubsection}{\numberline {3.2.3.2}begin}{11}{subsubsection.3.2.3.2} -\contentsline {subsubsection}{\numberline {3.2.3.3}clone}{11}{subsubsection.3.2.3.3} -\contentsline {subsubsection}{\numberline {3.2.3.4}close}{11}{subsubsection.3.2.3.4} -\contentsline {subsubsection}{\numberline {3.2.3.5}commit}{12}{subsubsection.3.2.3.5} -\contentsline {subsubsection}{\numberline {3.2.3.6}connect}{12}{subsubsection.3.2.3.6} -\contentsline {subsubsection}{\numberline {3.2.3.7}create\_\discretionary {-}{}{}db}{12}{subsubsection.3.2.3.7} -\contentsline {subsubsection}{\numberline {3.2.3.8}errno}{13}{subsubsection.3.2.3.8} -\contentsline {subsubsection}{\numberline {3.2.3.9}error}{13}{subsubsection.3.2.3.9} -\contentsline {subsubsection}{\numberline {3.2.3.10}fetch\_\discretionary {-}{}{}array}{13}{subsubsection.3.2.3.10} -\contentsline {subsubsection}{\numberline {3.2.3.11}fetch\_\discretionary {-}{}{}object}{13}{subsubsection.3.2.3.11} -\contentsline {subsubsection}{\numberline {3.2.3.12}fetch\_\discretionary {-}{}{}row}{13}{subsubsection.3.2.3.12} -\contentsline {subsubsection}{\numberline {3.2.3.13}free}{14}{subsubsection.3.2.3.13} -\contentsline {subsubsection}{\numberline {3.2.3.14}idate}{14}{subsubsection.3.2.3.14} -\contentsline {subsubsection}{\numberline {3.2.3.15}last\_\discretionary {-}{}{}insert\_\discretionary {-}{}{}id}{14}{subsubsection.3.2.3.15} -\contentsline {subsubsection}{\numberline {3.2.3.16}list\_\discretionary {-}{}{}tables}{14}{subsubsection.3.2.3.16} -\contentsline {subsubsection}{\numberline {3.2.3.17}num\_\discretionary {-}{}{}fields}{15}{subsubsection.3.2.3.17} -\contentsline {subsubsection}{\numberline {3.2.3.18}num\_\discretionary {-}{}{}rows}{15}{subsubsection.3.2.3.18} -\contentsline {subsubsection}{\numberline {3.2.3.19}pconnect}{15}{subsubsection.3.2.3.19} -\contentsline {subsubsection}{\numberline {3.2.3.20}plimit}{15}{subsubsection.3.2.3.20} -\contentsline {subsubsection}{\numberline {3.2.3.21}query}{16}{subsubsection.3.2.3.21} -\contentsline {subsubsection}{\numberline {3.2.3.22}result}{16}{subsubsection.3.2.3.22} -\contentsline {subsubsection}{\numberline {3.2.3.23}rollback}{16}{subsubsection.3.2.3.23} -\contentsline {subsubsection}{\numberline {3.2.3.24}select\_\discretionary {-}{}{}db}{17}{subsubsection.3.2.3.24} -\contentsline {section}{\numberline {3.3}R\'{e}f\'{e}rence de la classe v\discretionary {-}{}{}Card}{18}{section.3.3} -\contentsline {subsection}{\numberline {3.3.1}Description d\'{e}taill\'{e}e}{18}{subsection.3.3.1} -\contentsline {subsection}{\numberline {3.3.2}Documentation des fonctions membres}{19}{subsection.3.3.2} -\contentsline {subsubsection}{\numberline {3.3.2.1}setAddress}{19}{subsubsection.3.3.2.1} -\contentsline {subsubsection}{\numberline {3.3.2.2}setBirthday}{19}{subsubsection.3.3.2.2} -\contentsline {subsubsection}{\numberline {3.3.2.3}setEmail}{19}{subsubsection.3.3.2.3} -\contentsline {subsubsection}{\numberline {3.3.2.4}setFormattedName}{20}{subsubsection.3.3.2.4} -\contentsline {subsubsection}{\numberline {3.3.2.5}setLabel}{20}{subsubsection.3.3.2.5} -\contentsline {subsubsection}{\numberline {3.3.2.6}setName}{20}{subsubsection.3.3.2.6} -\contentsline {subsubsection}{\numberline {3.3.2.7}setNote}{21}{subsubsection.3.3.2.7} -\contentsline {subsubsection}{\numberline {3.3.2.8}setPhoneNumber}{21}{subsubsection.3.3.2.8} -\contentsline {subsubsection}{\numberline {3.3.2.9}setPhoto}{21}{subsubsection.3.3.2.9} -\contentsline {subsubsection}{\numberline {3.3.2.10}setURL}{21}{subsubsection.3.3.2.10} -\contentsline {section}{\numberline {3.4}R\'{e}f\'{e}rence de la classe Webcal}{23}{section.3.4} -\contentsline {subsection}{\numberline {3.4.1}Description d\'{e}taill\'{e}e}{23}{subsection.3.4.1} -\contentsline {subsection}{\numberline {3.4.2}Documentation des fonctions membres}{23}{subsection.3.4.2} -\contentsline {subsubsection}{\numberline {3.4.2.1}add}{23}{subsubsection.3.4.2.1} -\contentsline {subsubsection}{\numberline {3.4.2.2}get\_\discretionary {-}{}{}next\_\discretionary {-}{}{}id}{23}{subsubsection.3.4.2.2} -\contentsline {chapter}{\numberline {4}dolibarr Documentation des fichiers}{25}{chapter.4} -\contentsline {section}{\numberline {4.1}R\'{e}f\'{e}rence du fichier htdocs/lib/CMail\discretionary {-}{}{}File.class.php}{25}{section.4.1} -\contentsline {subsection}{\numberline {4.1.1}Description d\'{e}taill\'{e}e}{25}{subsection.4.1.1} -\contentsline {subsection}{\numberline {4.1.2}Documentation des fonctions}{26}{subsection.4.1.2} -\contentsline {subsubsection}{\numberline {4.1.2.1}my\_\discretionary {-}{}{}chunk\_\discretionary {-}{}{}split}{26}{subsubsection.4.1.2.1} -\contentsline {section}{\numberline {4.2}R\'{e}f\'{e}rence du fichier htdocs/lib/functions.inc.php}{27}{section.4.2} -\contentsline {subsection}{\numberline {4.2.1}Description d\'{e}taill\'{e}e}{28}{subsection.4.2.1} -\contentsline {subsection}{\numberline {4.2.2}Documentation des fonctions}{29}{subsection.4.2.2} -\contentsline {subsubsection}{\numberline {4.2.2.1}creer\_\discretionary {-}{}{}pass\_\discretionary {-}{}{}aleatoire}{29}{subsubsection.4.2.2.1} -\contentsline {subsubsection}{\numberline {4.2.2.2}dol\_\discretionary {-}{}{}delete\_\discretionary {-}{}{}file}{29}{subsubsection.4.2.2.2} -\contentsline {subsubsection}{\numberline {4.2.2.3}dolibarr\_\discretionary {-}{}{}del\_\discretionary {-}{}{}const}{29}{subsubsection.4.2.2.3} -\contentsline {subsubsection}{\numberline {4.2.2.4}dolibarr\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}head}{29}{subsubsection.4.2.2.4} -\contentsline {subsubsection}{\numberline {4.2.2.5}dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}ca}{30}{subsubsection.4.2.2.5} -\contentsline {subsubsection}{\numberline {4.2.2.6}dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}date}{30}{subsubsection.4.2.2.6} -\contentsline {subsubsection}{\numberline {4.2.2.7}dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}object\_\discretionary {-}{}{}info}{30}{subsubsection.4.2.2.7} -\contentsline {subsubsection}{\numberline {4.2.2.8}dolibarr\_\discretionary {-}{}{}print\_\discretionary {-}{}{}phone}{30}{subsubsection.4.2.2.8} -\contentsline {subsubsection}{\numberline {4.2.2.9}dolibarr\_\discretionary {-}{}{}set\_\discretionary {-}{}{}const}{31}{subsubsection.4.2.2.9} -\contentsline {subsubsection}{\numberline {4.2.2.10}dolibarr\_\discretionary {-}{}{}syslog}{31}{subsubsection.4.2.2.10} -\contentsline {subsubsection}{\numberline {4.2.2.11}doliMoveFileUpload}{31}{subsubsection.4.2.2.11} -\contentsline {subsubsection}{\numberline {4.2.2.12}francs}{32}{subsubsection.4.2.2.12} -\contentsline {subsubsection}{\numberline {4.2.2.13}inctva}{32}{subsubsection.4.2.2.13} -\contentsline {subsubsection}{\numberline {4.2.2.14}initialiser\_\discretionary {-}{}{}sel}{32}{subsubsection.4.2.2.14} -\contentsline {subsubsection}{\numberline {4.2.2.15}logfile}{32}{subsubsection.4.2.2.15} -\contentsline {subsubsection}{\numberline {4.2.2.16}loginfunction}{33}{subsubsection.4.2.2.16} -\contentsline {subsubsection}{\numberline {4.2.2.17}price}{33}{subsubsection.4.2.2.17} -\contentsline {subsubsection}{\numberline {4.2.2.18}print\_\discretionary {-}{}{}date\_\discretionary {-}{}{}select}{33}{subsubsection.4.2.2.18} -\contentsline {subsubsection}{\numberline {4.2.2.19}print\_\discretionary {-}{}{}duree\_\discretionary {-}{}{}select}{33}{subsubsection.4.2.2.19} -\contentsline {subsubsection}{\numberline {4.2.2.20}print\_\discretionary {-}{}{}fiche\_\discretionary {-}{}{}titre}{34}{subsubsection.4.2.2.20} -\contentsline {subsubsection}{\numberline {4.2.2.21}print\_\discretionary {-}{}{}fleche\_\discretionary {-}{}{}navigation}{34}{subsubsection.4.2.2.21} -\contentsline {subsubsection}{\numberline {4.2.2.22}print\_\discretionary {-}{}{}heure\_\discretionary {-}{}{}select}{34}{subsubsection.4.2.2.22} -\contentsline {subsubsection}{\numberline {4.2.2.23}print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre}{34}{subsubsection.4.2.2.23} -\contentsline {subsubsection}{\numberline {4.2.2.24}print\_\discretionary {-}{}{}liste\_\discretionary {-}{}{}field\_\discretionary {-}{}{}titre\_\discretionary {-}{}{}new}{35}{subsubsection.4.2.2.24} -\contentsline {subsubsection}{\numberline {4.2.2.25}print\_\discretionary {-}{}{}oui\_\discretionary {-}{}{}non}{35}{subsubsection.4.2.2.25} -\contentsline {subsubsection}{\numberline {4.2.2.26}print\_\discretionary {-}{}{}titre}{35}{subsubsection.4.2.2.26} -\contentsline {subsubsection}{\numberline {4.2.2.27}stat\_\discretionary {-}{}{}print}{36}{subsubsection.4.2.2.27} -\contentsline {subsubsection}{\numberline {4.2.2.28}transcoS2L}{36}{subsubsection.4.2.2.28} -\contentsline {subsubsection}{\numberline {4.2.2.29}tva}{36}{subsubsection.4.2.2.29} -\contentsline {section}{\numberline {4.3}R\'{e}f\'{e}rence du fichier htdocs/lib/jabber/class.jabber.php}{37}{section.4.3} -\contentsline {subsection}{\numberline {4.3.1}Description d\'{e}taill\'{e}e}{37}{subsection.4.3.1} -\contentsline {section}{\numberline {4.4}R\'{e}f\'{e}rence du fichier htdocs/lib/ldap.lib.php}{38}{section.4.4} -\contentsline {subsection}{\numberline {4.4.1}Description d\'{e}taill\'{e}e}{38}{subsection.4.4.1} -\contentsline {subsection}{\numberline {4.4.2}Documentation des fonctions}{38}{subsection.4.4.2} -\contentsline {subsubsection}{\numberline {4.4.2.1}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}bind}{38}{subsubsection.4.4.2.1} -\contentsline {subsubsection}{\numberline {4.4.2.2}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}connect}{39}{subsubsection.4.4.2.2} -\contentsline {subsubsection}{\numberline {4.4.2.3}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}getversion}{39}{subsubsection.4.4.2.3} -\contentsline {subsubsection}{\numberline {4.4.2.4}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}setversion}{39}{subsubsection.4.4.2.4} -\contentsline {subsubsection}{\numberline {4.4.2.5}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unacc}{39}{subsubsection.4.4.2.5} -\contentsline {subsubsection}{\numberline {4.4.2.6}dolibarr\_\discretionary {-}{}{}ldap\_\discretionary {-}{}{}unbind}{40}{subsubsection.4.4.2.6} -\contentsline {section}{\numberline {4.5}R\'{e}f\'{e}rence du fichier htdocs/lib/mysql.lib.php}{41}{section.4.5} -\contentsline {subsection}{\numberline {4.5.1}Description d\'{e}taill\'{e}e}{41}{subsection.4.5.1} -\contentsline {section}{\numberline {4.6}R\'{e}f\'{e}rence du fichier htdocs/lib/price.lib.php}{42}{section.4.6} -\contentsline {subsection}{\numberline {4.6.1}Description d\'{e}taill\'{e}e}{42}{subsection.4.6.1} -\contentsline {subsection}{\numberline {4.6.2}Documentation des fonctions}{42}{subsection.4.6.2} -\contentsline {subsubsection}{\numberline {4.6.2.1}calcul\_\discretionary {-}{}{}price}{42}{subsubsection.4.6.2.1} -\contentsline {section}{\numberline {4.7}R\'{e}f\'{e}rence du fichier htdocs/lib/thermometer.php}{43}{section.4.7} -\contentsline {subsection}{\numberline {4.7.1}Description d\'{e}taill\'{e}e}{43}{subsection.4.7.1} -\contentsline {subsection}{\numberline {4.7.2}Documentation des fonctions}{43}{subsection.4.7.2} -\contentsline {subsubsection}{\numberline {4.7.2.1}moneyMeter}{43}{subsubsection.4.7.2.1} -\contentsline {section}{\numberline {4.8}R\'{e}f\'{e}rence du fichier htdocs/lib/vcard/vcard.class.php}{44}{section.4.8} -\contentsline {subsection}{\numberline {4.8.1}Description d\'{e}taill\'{e}e}{44}{subsection.4.8.1} -\contentsline {section}{\numberline {4.9}R\'{e}f\'{e}rence du fichier htdocs/lib/webcal.class.php}{45}{section.4.9} -\contentsline {subsection}{\numberline {4.9.1}Description d\'{e}taill\'{e}e}{45}{subsection.4.9.1} diff --git a/doc/dev/php/latex/thermometer_8php.aux b/doc/dev/php/latex/thermometer_8php.aux deleted file mode 100644 index 286118b1b37..00000000000 --- a/doc/dev/php/latex/thermometer_8php.aux +++ /dev/null @@ -1,30 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {4.7}R\'{e}f\'{e}rence du fichier htdocs/lib/thermometer.php}{43}{section.4.7}} -\newlabel{thermometer_8php}{{4.7}{43}{R\'{e}f\'{e}rence du fichier htdocs/lib/thermometer.php\relax }{section.4.7}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.7.1}Description d\'{e}taill\'{e}e}{43}{subsection.4.7.1}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.7.2}Documentation des fonctions}{43}{subsection.4.7.2}} -\@writefile{toc}{\contentsline {subsubsection}{\numberline {4.7.2.1}moneyMeter}{43}{subsubsection.4.7.2.1}} -\newlabel{thermometer_8php_a0}{{4.7.2.1}{43}{moneyMeter\relax }{subsubsection.4.7.2.1}{}} -\@setckpt{thermometer_8php}{ -\setcounter{page}{44} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{4} -\setcounter{section}{7} -\setcounter{subsection}{2} -\setcounter{subsubsection}{1} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{3} -} diff --git a/doc/dev/php/latex/thermometer_8php.tex b/doc/dev/php/latex/thermometer_8php.tex deleted file mode 100644 index 265519cf51a..00000000000 --- a/doc/dev/php/latex/thermometer_8php.tex +++ /dev/null @@ -1,47 +0,0 @@ -\hypertarget{thermometer_8php}{ -\section{R\'{e}f\'{e}rence du fichier htdocs/lib/thermometer.php} -\label{thermometer_8php}\index{htdocs/lib/thermometer.php@{htdocs/lib/thermometer.php}} -} -Classe permettant d'afficher un thermometre. - - -\subsection*{Fonctions} -\begin{CompactItemize} -\item -\hyperlink{thermometer_8php_a0}{money\-Meter} (\$actual\-Value=0, \$pending\-Value=0, \$intent\-Value=0) -\begin{CompactList}\small\item\em permet d'afficher un thermometre monetaire. \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant d'afficher un thermometre. - -\begin{Desc} -\item[Auteur:]Rodolphe Quiedeville. - -Timothy Kanters. \end{Desc} -\begin{Desc} -\item[Version:]1.2.\end{Desc} -Ensemble des fonctions permettant d'afficher un thermometre monetaire. - -D\'{e}finition dans le fichier \hyperlink{thermometer_8php-source}{thermometer.php}. - -\subsection{Documentation des fonctions} -\hypertarget{thermometer_8php_a0}{ -\index{thermometer.php@{thermometer.php}!moneyMeter@{moneyMeter}} -\index{moneyMeter@{moneyMeter}!thermometer.php@{thermometer.php}} -\subsubsection[moneyMeter]{\setlength{\rightskip}{0pt plus 5cm}money\-Meter (\$ {\em actual\-Value} = {\tt 0}, \$ {\em pending\-Value} = {\tt 0}, \$ {\em intent\-Value} = {\tt 0})}} -\label{thermometer_8php_a0} - - -permet d'afficher un thermometre monetaire. - -\begin{Desc} -\item[Param\`{e}tres:] -\begin{description} -\item[{\em actual\-Value}]\item[{\em pending\-Value}]\item[{\em intent\-Value}]\end{description} -\end{Desc} -\begin{Desc} -\item[Renvoie:]thermometer html\-Legenda \end{Desc} - - -D\'{e}finition \`{a} la ligne 42 du fichier thermometer.php. \ No newline at end of file diff --git a/doc/dev/php/latex/vcard_8class_8php.aux b/doc/dev/php/latex/vcard_8class_8php.aux deleted file mode 100644 index 278f51d1123..00000000000 --- a/doc/dev/php/latex/vcard_8class_8php.aux +++ /dev/null @@ -1,27 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {4.8}R\'{e}f\'{e}rence du fichier htdocs/lib/vcard/vcard.class.php}{44}{section.4.8}} -\newlabel{vcard_8class_8php}{{4.8}{44}{R\'{e}f\'{e}rence du fichier htdocs/lib/vcard/vcard.class.php\relax }{section.4.8}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.8.1}Description d\'{e}taill\'{e}e}{44}{subsection.4.8.1}} -\@setckpt{vcard_8class_8php}{ -\setcounter{page}{45} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{4} -\setcounter{section}{8} -\setcounter{subsection}{1} -\setcounter{subsubsection}{0} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{2} -} diff --git a/doc/dev/php/latex/vcard_8class_8php.tex b/doc/dev/php/latex/vcard_8class_8php.tex deleted file mode 100644 index b13e27f7aa7..00000000000 --- a/doc/dev/php/latex/vcard_8class_8php.tex +++ /dev/null @@ -1,24 +0,0 @@ -\hypertarget{vcard_8class_8php}{ -\section{R\'{e}f\'{e}rence du fichier htdocs/lib/vcard/vcard.class.php} -\label{vcard_8class_8php}\index{htdocs/lib/vcard/vcard.class.php@{htdocs/lib/vcard/vcard.class.php}} -} -Classe permettant de cr\'{e}er un fichier vcard. - - -\subsection*{Classes} -\begin{CompactItemize} -\item -class \hyperlink{classvCard}{v\-Card} -\begin{CompactList}\small\item\em Classe permettant de cr\'{e}er un fichier vcard. \item\end{CompactList}\end{CompactItemize} - - -\subsection{Description d\'{e}taill\'{e}e} -Classe permettant de cr\'{e}er un fichier vcard. - -\begin{Desc} -\item[Auteur:]Kai Blankenhorn. \end{Desc} -\begin{Desc} -\item[Version:]2.0\end{Desc} -Ensemble des fonctions permettant de cr\'{e}er un fichier vcard. - -D\'{e}finition dans le fichier \hyperlink{vcard_8class_8php-source}{vcard.class.php}. \ No newline at end of file diff --git a/doc/dev/php/latex/webcal_8class_8php.aux b/doc/dev/php/latex/webcal_8class_8php.aux deleted file mode 100644 index 99578759354..00000000000 --- a/doc/dev/php/latex/webcal_8class_8php.aux +++ /dev/null @@ -1,27 +0,0 @@ -\relax -\@writefile{toc}{\contentsline {section}{\numberline {4.9}R\'{e}f\'{e}rence du fichier htdocs/lib/webcal.class.php}{45}{section.4.9}} -\newlabel{webcal_8class_8php}{{4.9}{45}{R\'{e}f\'{e}rence du fichier htdocs/lib/webcal.class.php\relax }{section.4.9}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.9.1}Description d\'{e}taill\'{e}e}{45}{subsection.4.9.1}} -\@setckpt{webcal_8class_8php}{ -\setcounter{page}{46} -\setcounter{equation}{0} -\setcounter{enumi}{0} -\setcounter{enumii}{0} -\setcounter{enumiii}{0} -\setcounter{enumiv}{0} -\setcounter{footnote}{0} -\setcounter{mpfootnote}{0} -\setcounter{part}{0} -\setcounter{chapter}{4} -\setcounter{section}{9} -\setcounter{subsection}{1} -\setcounter{subsubsection}{0} -\setcounter{paragraph}{0} -\setcounter{subparagraph}{0} -\setcounter{figure}{0} -\setcounter{table}{0} -\setcounter{float@type}{4} -\setcounter{Item}{0} -\setcounter{Hfootnote}{0} -\setcounter{section@level}{2} -} diff --git a/doc/dev/php/latex/webcal_8class_8php.tex b/doc/dev/php/latex/webcal_8class_8php.tex deleted file mode 100644 index 71c1ccd78a6..00000000000 --- a/doc/dev/php/latex/webcal_8class_8php.tex +++ /dev/null @@ -1,24 +0,0 @@ -\hypertarget{webcal_8class_8php}{ -\section{R\'{e}f\'{e}rence du fichier htdocs/lib/webcal.class.php} -\label{webcal_8class_8php}\index{htdocs/lib/webcal.class.php@{htdocs/lib/webcal.class.php}} -} -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} -Classe permettant d'acceder a la database webcalendar. - -\begin{Desc} -\item[Auteur:]Rodolphe Quiedeville. \end{Desc} -\begin{Desc} -\item[Version:]1.2.\end{Desc} -Ensemble des fonctions permettant d'acceder a la database webcalendar. - -D\'{e}finition dans le fichier \hyperlink{webcal_8class_8php-source}{webcal.class.php}. \ No newline at end of file diff --git a/doc/dev/propale.sgml b/doc/dev/propale.sgml deleted file mode 100644 index c820141ab5a..00000000000 --- a/doc/dev/propale.sgml +++ /dev/null @@ -1,36 +0,0 @@ - - -Propositions commerciales - -

- Propositions commerciales -

- - Modèles -

- Trois modèles de proposition sont fournit avec Dolibarr, mais vous pouvez en créer autant que vous le souhaitez. Pour cela il vous suffit de créer une nouvelle classe dans un fichier dont le nom doit être de la forme pdf_propale_MISC.modules.php où MISC est une chaine de caractère de votre choix. Une fois ce fichier créé la classe qu'il définit doit se nommer pdf_propale_MISC. -

-

- Le nom (MISC) ne doit pas dépasser 50 caractères. -

-
- -
- - diff --git a/doc/dev/theme.sgml b/doc/dev/theme.sgml deleted file mode 100644 index 471aedc42fd..00000000000 --- a/doc/dev/theme.sgml +++ /dev/null @@ -1,35 +0,0 @@ - - -Thèmes - - Création d'un nouveau thème -

- Pour créer un nouveau thème, allez dans le répertoire - 'htdocs/theme/' recopier par exemple tout le répertoire - 'dolibarr' vers un nouveau répertoire qui aura le nom de votre - thème. Dans ce répertoire changer le nom du fichier .css pour - qu'il ait le même nom que le répertoire. Modifier ensuite le CSS - et les images contenues dans le répertoire img pour - personnaliser votre thème. -

-
- -
- -