mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
documentation des lib grace a phpdocumentor
This commit is contained in:
@@ -27,7 +27,9 @@
|
||||
* serveur ldap
|
||||
*
|
||||
* @package ldap.lib
|
||||
* @version 1.9
|
||||
* @author Rodolphe Quiedeville
|
||||
* @author Benoit Mortier
|
||||
* @version 1.2
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -22,6 +22,19 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* classe DoliDb
|
||||
*
|
||||
* Classe contenant les fonctions pour gere la database de dolibarr
|
||||
*
|
||||
* @package mysql.lib.php
|
||||
* @author Fabien Seisen
|
||||
* @author Rodolphe Quiedeville
|
||||
* @author Laurent Destailleur
|
||||
* @version 1.2
|
||||
*
|
||||
*/
|
||||
|
||||
class DoliDb {
|
||||
var $db, $results, $ok, $connected, $database_selected;
|
||||
|
||||
|
||||
@@ -20,6 +20,24 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* librairie contenant les fonctions pour calculer un prix
|
||||
*
|
||||
* @package price.lib.php
|
||||
* @author Rodolphe Quiedeville
|
||||
* @version 1.2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* permet de calculer un prix
|
||||
*
|
||||
* @access public
|
||||
* @param integer $products
|
||||
* @param integer $remise_percent
|
||||
* @return integer $result
|
||||
*/
|
||||
|
||||
Function calcul_price($products, $remise_percent)
|
||||
{
|
||||
$total_ht = 0;
|
||||
|
||||
@@ -20,6 +20,28 @@
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* librairie contenant les fonctions pour afficher un thermometre
|
||||
* monetaire
|
||||
*
|
||||
* @package thermometer.php
|
||||
* @author Timothy Kanters
|
||||
* @author Rodolphe Quiedeville
|
||||
* @version 1.2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* permet d'afficher un thermometre monetaire
|
||||
*
|
||||
* @access public
|
||||
* @param integer $actualValue
|
||||
* @param integer $pendingValue
|
||||
* @param integer $intendValue
|
||||
* @return string $thermometer $htmlLegenda
|
||||
*/
|
||||
|
||||
function moneyMeter($actualValue=0, $pendingValue=0, $intentValue=0)
|
||||
/*
|
||||
This function returns the html for the moneymeter.
|
||||
|
||||
@@ -20,11 +20,28 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* classe Webcal
|
||||
*
|
||||
* Classe permettant d'acceder a la database webcalendar
|
||||
*
|
||||
* @package Webcal
|
||||
* @author Rodolphe Quiedeville
|
||||
* @version 1.2
|
||||
*
|
||||
*/
|
||||
|
||||
class Webcal {
|
||||
var $localdb;
|
||||
var $heure = -1;
|
||||
var $duree = 0;
|
||||
|
||||
/**
|
||||
* permet la connection a la base de donn<6E>e webcal
|
||||
*
|
||||
* @access public
|
||||
*
|
||||
*/
|
||||
|
||||
Function Webcal()
|
||||
{
|
||||
@@ -37,6 +54,16 @@ class Webcal {
|
||||
$conf->webcal->db->name);
|
||||
}
|
||||
|
||||
/**
|
||||
* ajoute une entree dans le calendrier de l'utilsateur
|
||||
*
|
||||
* @access public
|
||||
* @param string $user
|
||||
* @param integer $date
|
||||
* @param string $texte
|
||||
* @param string $desc
|
||||
*/
|
||||
|
||||
Function add($user, $date, $texte, $desc)
|
||||
{
|
||||
|
||||
@@ -55,33 +82,41 @@ class Webcal {
|
||||
$cal_name = $texte;
|
||||
$cal_description = $desc;
|
||||
|
||||
$sql = "INSERT INTO webcal_entry (cal_id, cal_create_by,cal_date,cal_time,cal_mod_date, cal_mod_time,cal_duration,cal_priority,cal_type, cal_access, cal_name,cal_description)";
|
||||
$sql = "INSERT INTO webcal_entry (cal_id, cal_create_by,cal_date,cal_time,cal_mod_date,
|
||||
cal_mod_time,cal_duration,cal_priority,cal_type, cal_access, cal_name,cal_description)";
|
||||
|
||||
$sql .= " VALUES ($cal_id, '$cal_create_by', $cal_date, $cal_time,$cal_mod_date, $cal_mod_time, $cal_duration,$cal_priority,'$cal_type', '$cal_access', '$cal_name','$cal_description');";
|
||||
$sql .= " VALUES ($cal_id, '$cal_create_by', $cal_date, $cal_time,$cal_mod_date, $cal_mod_time,
|
||||
$cal_duration,$cal_priority,'$cal_type', '$cal_access', '$cal_name','$cal_description')";
|
||||
|
||||
if ( $this->localdb->query($sql) )
|
||||
{
|
||||
if ( $this->localdb->query($sql) )
|
||||
{
|
||||
|
||||
$sql = "INSERT INTO webcal_entry_user (cal_id, cal_login, cal_status)";
|
||||
$sql .= " VALUES ($cal_id, '$cal_create_by', 'A')";
|
||||
$sql = "INSERT INTO webcal_entry_user (cal_id, cal_login, cal_status)";
|
||||
$sql .= " VALUES ($cal_id, '$cal_create_by', 'A')";
|
||||
|
||||
if ( $this->localdb->query($sql) )
|
||||
{
|
||||
if ( $this->localdb->query($sql) )
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = $this->localdb->error() . '<br>' .$sql;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = $this->localdb->error() . '<br>' .$sql;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = $this->localdb->error() . '<br>' .$sql;
|
||||
}
|
||||
{
|
||||
$error = $this->localdb->error() . '<br>' .$sql;
|
||||
}
|
||||
|
||||
$this->localdb->close();
|
||||
}
|
||||
$this->localdb->close();
|
||||
}
|
||||
|
||||
/**
|
||||
* obtient l'id suivant
|
||||
*
|
||||
* @access public
|
||||
* @return integer $id
|
||||
*/
|
||||
|
||||
Function get_next_id()
|
||||
{
|
||||
@@ -89,14 +124,14 @@ class Webcal {
|
||||
$sql = "SELECT max(cal_id) FROM webcal_entry";
|
||||
|
||||
if ($this->localdb->query($sql))
|
||||
{
|
||||
$id = $this->localdb->result(0, 0) + 1;
|
||||
return $id;
|
||||
}
|
||||
{
|
||||
$id = $this->localdb->result(0, 0) + 1;
|
||||
return $id;
|
||||
}
|
||||
else
|
||||
{
|
||||
print $this->localdb->error();
|
||||
}
|
||||
{
|
||||
print $this->localdb->error();
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user