';
diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php
index 39a602eadc5..fd1b48bcd72 100644
--- a/htdocs/comm/propal/class/propal.class.php
+++ b/htdocs/comm/propal/class/propal.class.php
@@ -8,17 +8,17 @@
* Copyright (C) 2008 Raphael Bertrand
* Copyright (C) 2010-2011 Juanjo Menent
* Copyright (C) 2010-2011 Philippe Grand
- *
+ *
* 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, see .
*/
@@ -206,8 +206,8 @@ class Propal extends CommonObject
/**
* Adding line of fixed discount in the proposal in DB
*
- * @param int @idremise Id of fixed discount
- * @return int >0 si ok, <0 si ko
+ * @param int $idremise Id of fixed discount
+ * @return int >0 if OK, <0 if KO
*/
function insert_discount($idremise)
{
@@ -723,22 +723,22 @@ class Propal extends CommonObject
}
$result = $this->addline(
- $this->id,
- $this->lines[$i]->desc,
- $this->lines[$i]->subprice,
- $this->lines[$i]->qty,
- $this->lines[$i]->tva_tx,
- $this->lines[$i]->localtax1_tx,
- $this->lines[$i]->localtax2_tx,
- $this->lines[$i]->fk_product,
- $this->lines[$i]->remise_percent,
- 'HT',
- 0,
- 0,
- $this->lines[$i]->product_type,
- $this->lines[$i]->rang,
- $this->lines[$i]->special_code,
- $fk_parent_line
+ $this->id,
+ $this->lines[$i]->desc,
+ $this->lines[$i]->subprice,
+ $this->lines[$i]->qty,
+ $this->lines[$i]->tva_tx,
+ $this->lines[$i]->localtax1_tx,
+ $this->lines[$i]->localtax2_tx,
+ $this->lines[$i]->fk_product,
+ $this->lines[$i]->remise_percent,
+ 'HT',
+ 0,
+ 0,
+ $this->lines[$i]->product_type,
+ $this->lines[$i]->rang,
+ $this->lines[$i]->special_code,
+ $fk_parent_line
);
if ($result < 0)
@@ -828,6 +828,7 @@ class Propal extends CommonObject
/**
* Insert into DB a proposal object completely defined by its data members (ex, results from copy).
+ *
* @param User $user User that create
* @return int Id of the new object if ok, <0 if ko
* @see create
diff --git a/htdocs/core/boxes/box_external_rss.php b/htdocs/core/boxes/box_external_rss.php
index 8a3e57a2141..51f197ec3fd 100644
--- a/htdocs/core/boxes/box_external_rss.php
+++ b/htdocs/core/boxes/box_external_rss.php
@@ -47,7 +47,8 @@ class box_external_rss extends ModeleBoxes
/**
* Constructor
*
- * @param DoliDB $db Database handler
+ * @param DoliDB $db Database handler
+ * @param string $param More parameters
*/
function box_external_rss($db,$param)
{
diff --git a/htdocs/core/boxes/box_prospect.php b/htdocs/core/boxes/box_prospect.php
index e532f005091..87d2324013e 100644
--- a/htdocs/core/boxes/box_prospect.php
+++ b/htdocs/core/boxes/box_prospect.php
@@ -39,21 +39,22 @@ class box_prospect extends ModeleBoxes
var $depends = array("societe");
var $db;
- var $param;
var $info_box_head = array();
var $info_box_contents = array();
+
/**
* Constructor
+ *
+ * @param DoliDB $db Database handler
*/
- function box_prospect($DB,$param)
+ function box_prospect($db)
{
global $langs;
$langs->load("boxes");
- $this->db=$DB;
- $this->param=$param;
+ $this->db=$db;
$this->boxlabel=$langs->transnoentitiesnoconv("BoxLastProspects");
}
diff --git a/htdocs/core/class/canvas.class.php b/htdocs/core/class/canvas.class.php
index aff50c4de67..73713118b51 100644
--- a/htdocs/core/class/canvas.class.php
+++ b/htdocs/core/class/canvas.class.php
@@ -46,7 +46,7 @@ class Canvas
/**
* Constructor
*
- * @param DoliDB $DB Database handler
+ * @param DoliDB $db Database handler
* @param string $actiontype Action type ('create', 'view', 'edit', 'list')
*/
function __construct($db, $actiontype='view')
@@ -129,7 +129,7 @@ class Canvas
* @return int 0=Canvas template file does not exist, 1=Canvas template file exists
*/
function displayCanvasExists($action)
- {
+ {
if (empty($this->template_dir)) return 0;
if (file_exists($this->template_dir.($this->card?$this->card.'_':'').$this->action.'.tpl.php')) return 1;
diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php
index ed49e784dad..f906ea3c75e 100755
--- a/htdocs/core/class/commondocgenerator.class.php
+++ b/htdocs/core/class/commondocgenerator.class.php
@@ -38,8 +38,9 @@ abstract class CommonDocGenerator
/**
* Define array with couple subtitution key => subtitution value
*
- * @param $user User
- * @param $outputlangs Language object for output
+ * @param User $user User
+ * @param Translate $outputlangs Language object for output
+ * @return array Array of substitution key->code
*/
function get_substitutionarray_user($user,$outputlangs)
{
@@ -61,8 +62,9 @@ abstract class CommonDocGenerator
/**
* Define array with couple subtitution key => subtitution value
*
- * @param $mysoc
- * @param $outputlangs Language object for output
+ * @param Societe $mysoc Object thirdparty
+ * @param Translate $outputlangs Language object for output
+ * @return array Array of substitution key->code
*/
function get_substitutionarray_mysoc($mysoc,$outputlangs)
{
@@ -103,8 +105,9 @@ abstract class CommonDocGenerator
/**
* Define array with couple subtitution key => subtitution value
*
- * @param $object
- * @param $outputlangs Language object for output
+ * @param Object $object Object
+ * @param Translate $outputlangs Language object for output
+ * @return array Array of substitution key->code
*/
function get_substitutionarray_thirdparty($object,$outputlangs)
{
diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index 679d380a40c..dc62d653afe 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -2433,8 +2433,8 @@ abstract class CommonObject
*
* @param string $action GET/POST action
* @param array $line Selected object line to output
- * @param string $var Is it a an odd line
- * @param int $num Number of line
+ * @param string $var Is it a an odd line (true)
+ * @param int $num Number of line (0)
* @param int $i I
* @param int $dateSelector 1=Show also date range input fields
* @param string $seller Object of seller third party
@@ -2443,7 +2443,7 @@ abstract class CommonObject
* @param HookManager $hookmanager Hook manager
* @return void
*/
- function printObjectLine($action,$line,$var=true,$num=0,$i=0,$dateSelector=0,$seller,$buyer,$selected=0,$hookmanager=false)
+ function printObjectLine($action,$line,$var,$num,$i,$dateSelector,$seller,$buyer,$selected=0,$hookmanager=false)
{
global $conf,$langs,$user;
global $form,$bc,$bcdd;
diff --git a/htdocs/core/class/genericobject.class.php b/htdocs/core/class/genericobject.class.php
index 06f8067f2b4..ace19b2a174 100755
--- a/htdocs/core/class/genericobject.class.php
+++ b/htdocs/core/class/genericobject.class.php
@@ -35,7 +35,7 @@ class GenericObject extends CommonObject
/**
* Constructor
*
- * @param DoliDB $DB Database handler
+ * @param DoliDB $db Database handler
*/
function __construct($db)
{
diff --git a/htdocs/core/class/hookmanager.class.php b/htdocs/core/class/hookmanager.class.php
index 5036e84c34f..1dc54c041b0 100755
--- a/htdocs/core/class/hookmanager.class.php
+++ b/htdocs/core/class/hookmanager.class.php
@@ -44,7 +44,7 @@ class HookManager
/**
* Constructor
*
- * @param DoliDB $DB Handler acces base de donnees
+ * @param DoliDB $db Handler acces base de donnees
*/
function __construct($db)
{
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index c0941ba7c48..e64ba007246 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -389,7 +389,7 @@ class Form
* Show a text with a picto and a tooltip on picto
*
* @param string $text Text to show
- * @param string $htmltooltip Content of tooltip
+ * @param string $htmltext Content of tooltip
* @param int $direction 1=Icon is after text, -1=Icon is before text, 0=no icon
* @param string $type Type of picto (info, help, warning, superadmin...)
* @param string $extracss Add a CSS style to td tags
@@ -651,7 +651,7 @@ class Form
* @param int $showempty Add an empty field
* @param int $showtype Show third party type in combolist (customer, prospect or supplier)
* @param int $forcecombo Force to use combo box
- @param array $event Event options
+ * @param array $event Event options
* @return string HTML string with
*/
function select_company($selected='',$htmlname='socid',$filter='',$showempty=0, $showtype=0, $forcecombo=0, $event=array())
@@ -811,7 +811,7 @@ class Form
* @param int $socid Id ot third party or 0 for all
* @param string $selected Id contact pre-selectionne
* @param string $htmlname Name of HTML field ('none' for a not editable field)
- * @param int $show_empty 0=no empty value, 1=add an empty value
+ * @param int $showempty 0=no empty value, 1=add an empty value
* @param string $exclude List of contacts id to exclude
* @param string $limitto Disable answers that are not id in this array list
* @param string $showfunction Add function into label
@@ -822,9 +822,9 @@ class Form
function selectcontacts($socid,$selected='',$htmlname='contactid',$showempty=0,$exclude='',$limitto='',$showfunction=0, $moreclass='', $options_only=false)
{
global $conf,$langs;
-
+
$langs->load('companies');
-
+
$out='';
// On recherche les societes
@@ -901,7 +901,7 @@ class Form
{
$out.= '';
}
-
+
$this->num = $num;
return $out;
}
@@ -1055,6 +1055,7 @@ class Form
* @param int $status -1=Return all products, 0=Products not on sell, 1=Products on sell
* @param int $finished 2=all, 1=finished, 0=raw material
* @param string $selected_input_value Value of preselected input text (with ajax)
+ * @param int $hide_label Hide label
* @return void
*/
function select_produits($selected='',$htmlname='productid',$filtertype='',$limit=20,$price_level=0,$status=1,$finished=2,$selected_input_value='',$hidelabel=0)
@@ -1306,13 +1307,13 @@ class Form
* Return list of products for customer (in Ajax if Ajax activated or go to select_produits_fournisseurs_do)
*
* @param int $socid Id third party
- * @param string $selected Preselected product
- * @param string $htmlname Name of HTML Select
- * @param string $filtertype Filter on product type (''=nofilter, 0=product, 1=service)
- * @param string $filtre For a SQL filter
+ * @param string $selected Preselected product
+ * @param string $htmlname Name of HTML Select
+ * @param string $filtertype Filter on product type (''=nofilter, 0=product, 1=service)
+ * @param string $filtre For a SQL filter
* @return void
*/
- function select_produits_fournisseurs($socid,$selected='',$htmlname='productid',$filtertype='',$filtre)
+ function select_produits_fournisseurs($socid,$selected='',$htmlname='productid',$filtertype='',$filtre='')
{
global $langs,$conf;
global $price_level, $status, $finished;
@@ -1576,7 +1577,7 @@ class Form
* @param int $showempty Add an empty field
* @return void
*/
- function select_address($selected='', $socid, $htmlname='address_id',$showempty=0)
+ function select_address($selected, $socid, $htmlname='address_id',$showempty=0)
{
// On recherche les utilisateurs
$sql = "SELECT a.rowid, a.label";
@@ -2064,6 +2065,7 @@ class Form
* @param string $select_name HTML field name
* @param int $maxlength Maximum length for labels
* @param int $excludeafterid Exclude all categories after this leaf in category tree.
+ * @return void
*/
function select_all_categories($type, $selected='', $select_name="", $maxlength=64, $excludeafterid=0)
{
@@ -2606,7 +2608,7 @@ class Form
*
* @param string $page Page URL where form is shown
* @param int $selected Value pre-selected
- * @param string $htmlname Nom du formulaire select. Si none, non modifiable
+ * @param string $htmlname Nom du formulaire select. Si 'none', non modifiable. Example 'remise_id'.
* @param int $socid Third party id
* @param float $amount Total amount available
* @param string $filter SQL filter on discounts
@@ -2614,7 +2616,7 @@ class Form
* @param string $more More string to add
* @return void
*/
- function form_remise_dispo($page, $selected='', $htmlname='remise_id', $socid, $amount, $filter='', $maxvalue=0, $more='')
+ function form_remise_dispo($page, $selected, $htmlname, $socid, $amount, $filter='', $maxvalue=0, $more='')
{
global $conf,$langs;
if ($htmlname != "none")
@@ -2728,7 +2730,7 @@ class Form
print '';
print '
';
@@ -2855,7 +2857,7 @@ class Form
* @param Societe $societe_acheteuse Object societe acheteuse
* @param int $idprod Id product
* @param int $info_bits Miscellaneous information on line
- * @param type ''=Unknown, 0=Product, 1=Service (Used if idprod not defined)
+ * @param string $type ''=Unknown, 0=Product, 1=Service (Used if idprod not defined)
* Si vendeur non assujeti a TVA, TVA par defaut=0. Fin de regle.
* Si le (pays vendeur = pays acheteur) alors la TVA par defaut=TVA du produit vendu. Fin de regle.
* Si (vendeur et acheteur dans Communaute europeenne) et bien vendu = moyen de transports neuf (auto, bateau, avion), TVA par defaut=0 (La TVA doit etre paye par l'acheteur au centre d'impots de son pays et non au vendeur). Fin de regle.
@@ -3048,7 +3050,7 @@ class Form
{
$return.= $this->error;
}
-
+
$this->num = $num;
return $return;
}
@@ -3428,7 +3430,7 @@ class Form
/**
* Return an html string with a select combo box to choose yes or no
*
- * @param string $name Name of html select field
+ * @param string $htmlname Name of html select field
* @param string $value Pre-selected value
* @param int $option 0 return yes/no, 1 return 1/0
* @param bool $disabled true or false
@@ -3649,7 +3651,7 @@ class Form
{
global $dolibarr_main_url_root;
$ret.='';
- $ret.='';
+ $ret.='';
}
else
{
diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 52287a01dc2..43f864dbd9d 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -66,7 +66,7 @@ class FormFile
if ($conf->global->MAIN_USE_JQUERY_FILEUPLOAD)
{
- return $this->_form_ajaxfileupload($object);
+ return $this->_formAjaxFileUpload($object);
}
else
{
@@ -779,7 +779,7 @@ class FormFile
* @param Object $object Object to use
* @return void
*/
- private function _form_ajaxfileupload($object)
+ private function _formAjaxFileUpload($object)
{
global $langs;
diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index a60c2ef21aa..cc904120cd5 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -71,7 +71,7 @@ class FormMail
/**
* Constructor
*
- * @param DoliDB $DB Database handler
+ * @param DoliDB $db Database handler
*/
function FormMail($db)
{
diff --git a/htdocs/core/class/infobox.class.php b/htdocs/core/class/infobox.class.php
index 7baf404e808..622d364efd7 100644
--- a/htdocs/core/class/infobox.class.php
+++ b/htdocs/core/class/infobox.class.php
@@ -30,6 +30,7 @@ class InfoBox
/**
* Return array of boxes qualified for area and user
*
+ * @param DoliDB $db Database handler
* @param string $mode 'available' or 'activated'
* @param string $zone Name or area (-1 for all, 0 for Homepage, 1 for xxx, ...)
* @param User $user Objet user to filter (used only if $zone >= 0)
@@ -140,10 +141,11 @@ class InfoBox
/**
* Save order of boxes for area and user
*
- * @param string $zone Name of area (0 for Homepage, ...)
- * @param string $boxorder List of boxes with correct order 'A:123,456,...-B:789,321...'
- * @param int $userid Id of user
- * @return int <0 if KO, >= 0 if OK
+ * @param DoliDB $db Database handler
+ * @param string $zone Name of area (0 for Homepage, ...)
+ * @param string $boxorder List of boxes with correct order 'A:123,456,...-B:789,321...'
+ * @param int $userid Id of user
+ * @return int <0 if KO, >= 0 if OK
*/
static function saveboxorder($db, $zone,$boxorder,$userid=0)
{
diff --git a/htdocs/core/class/interfaces.class.php b/htdocs/core/class/interfaces.class.php
index d311c7bee4a..b64dcb58881 100644
--- a/htdocs/core/class/interfaces.class.php
+++ b/htdocs/core/class/interfaces.class.php
@@ -50,7 +50,7 @@ class Interfaces
* @param string $action Trigger event code
* @param Object $object Objet concern
* @param User $user Objet user
- * @param Lang $lang Objet lang
+ * @param Lang $langs Objet lang
* @param Conf $conf Objet conf
* @return int Nb of triggers ran if no error, -Nb of triggers with errors otherwise.
*/
diff --git a/htdocs/core/class/ldap.class.php b/htdocs/core/class/ldap.class.php
index e564c78db28..3598497a3a9 100644
--- a/htdocs/core/class/ldap.class.php
+++ b/htdocs/core/class/ldap.class.php
@@ -141,7 +141,7 @@ class Ldap
* anonymously, it creates an error code of -1. Returns true if connected,
* false if failed. Takes an array of possible servers - if one doesn't work,
* it tries the next and so on.
- *
+ *
* @return void
* @deprecated Utiliser connect_bind a la place
*/
@@ -286,7 +286,7 @@ class Ldap
/**
* Simply closes the connection set up earlier.
* Returns true if OK, false if there was an error.
- *
+ *
* @return boolean true or false
*/
function close()
@@ -304,7 +304,7 @@ class Ldap
/**
* Anonymously binds to the connection. After this is done,
* queries and searches can be done - but read-only.
- *
+ *
* @return boolean true or false
*/
function bind()
@@ -329,12 +329,12 @@ class Ldap
* like "uid=jbloggs,ou=People,dc=foo,dc=com".
*
* @param string $bindDn DN
- * @param string $pass Password
+ * @param string $pass Password
* @return boolean true or false
*/
function bindauth($bindDn,$pass)
{
- if (! $this->result = @ldap_bind( $this->connection,$bindDn,$pass))
+ if (! $this->result = @ldap_bind($this->connection, $bindDn, $pass))
{
$this->ldapErrorCode = ldap_errno($this->connection);
$this->ldapErrorText = ldap_error($this->connection);
@@ -349,7 +349,7 @@ class Ldap
/**
* Unbind du serveur ldap.
- *
+ *
* @return boolean true or false
*/
function unbind()
@@ -365,7 +365,7 @@ class Ldap
/**
* Verification de la version du serveur ldap.
- *
+ *
* @return string version
*/
function getVersion()
@@ -377,7 +377,7 @@ class Ldap
/**
* Change ldap protocol version to use.
- *
+ *
* @return string version
*/
function setVersion() {
@@ -388,7 +388,7 @@ class Ldap
/**
* changement du referrals.
- *
+ *
* @return string referrals
*/
function setReferrals() {
@@ -401,7 +401,7 @@ class Ldap
/**
* Add a LDAP entry
* Ldap object connect and bind must have been done
- *
+ *
* @param string $dn DN entry key
* @param string $info Attributes array
* @param User $user Objet user that create
@@ -453,7 +453,7 @@ class Ldap
/**
* Modify a LDAP entry
* Ldap object connect and bind must have been done
- *
+ *
* @param string $dn DN entry key
* @param string $info Attributes array
* @param string $user Objet user that modify
@@ -505,7 +505,7 @@ class Ldap
/**
* Modify a LDAP entry (to use if dn != olddn)
* Ldap object connect and bind must have been done
- *
+ *
* @param string $dn DN entry key
* @param string $info Attributes array
* @param User $user Objet user that delete
@@ -560,7 +560,7 @@ class Ldap
/**
* Delete a LDAP entry
* Ldap object connect and bind must have been done
- *
+ *
* @param string $dn DN entry key
* @return int <0 if KO, >0 if OK
*/
@@ -593,7 +593,7 @@ class Ldap
/**
* Build a LDAP message
- *
+ *
* @param string $dn DN entry key
* @param string $info Attributes array
* @return string Content of file
@@ -635,7 +635,7 @@ class Ldap
/**
* Dump a LDAP message to ldapinput.in file
- *
+ *
* @param string $dn DN entry key
* @param string $info Attributes array
* @return int <0 if KO, >0 if OK
@@ -672,7 +672,7 @@ class Ldap
/**
* Add a LDAP attribute in entry
* Ldap object connect and bind must have been done
- *
+ *
* @param string $dn DN entry key
* @param string $info Attributes array
* @param User $user Objet user that create
@@ -724,7 +724,7 @@ class Ldap
/**
* Update a LDAP attribute in entry
* Ldap object connect and bind must have been done
- *
+ *
* @param string $dn DN entry key
* @param string $info Attributes array
* @param User $user Objet user that create
@@ -776,7 +776,7 @@ class Ldap
/**
* Delete a LDAP attribute in entry
* Ldap object connect and bind must have been done
- *
+ *
* @param string $dn DN entry key
* @param string $info Attributes array
* @param User $user Objet user that create
@@ -827,10 +827,10 @@ class Ldap
/**
* Returns an array containing attributes and values for first record
- *
+ *
* @param string $dn DN entry key
* @param string $filter Filter
- * @return int <0 if KO, >0 if OK
+ * @return int <0 if KO, >0 if OK
*/
function getAttribute($dn,$filter)
{
@@ -859,7 +859,7 @@ class Ldap
}
// Get values
- if (! $values = ldap_get_attributes( $this->connection, $entry))
+ if (! $values = ldap_get_attributes($this->connection, $entry))
{
$this->ldapErrorCode = ldap_errno($this->connection);
$this->ldapErrorText = ldap_error($this->connection);
@@ -872,7 +872,7 @@ class Ldap
/**
* Returns an array containing values for an attribute and for first record matching filterrecord
- *
+ *
* @param string $filterrecord Record
* @param string $attribute Attributes
* @return void
@@ -898,7 +898,7 @@ class Ldap
}
// Get values
- if (! $values = @ldap_get_values( $this->connection, $entry, $attribute))
+ if (! $values = @ldap_get_values($this->connection, $entry, $attribute))
{
$this->ldapErrorCode = ldap_errno($this->connection);
$this->ldapErrorText = ldap_error($this->connection);
@@ -912,7 +912,7 @@ class Ldap
/**
* Returns an array containing a details of elements
* ldapsearch -LLLx -hlocalhost -Dcn=admin,dc=parinux,dc=org -w password -b "ou=adherents,ou=people,dc=parinux,dc=org" userPassword
- *
+ *
* @param string $search Valeur champ cle recherche, sinon '*' pour tous.
* @param string $userDn DN (Ex: ou=adherents,ou=people,dc=parinux,dc=org)
* @param string $useridentifier Name of key field (Ex: uid)
@@ -1012,8 +1012,9 @@ class Ldap
* Required by Active Directory
*
* @param string $hex
+ * @return string little endian
*/
- function littleEndian($hex)
+ function littleEndian($hex)
{
for ($x=dol_strlen($hex)-2; $x >= 0; $x=$x-2) {
$result .= substr($hex,$x,2);
@@ -1023,10 +1024,11 @@ class Ldap
/**
- * Recupere le SID de l'utilisateur
+ * Recupere le SID de l'utilisateur
* Required by Active Directory
- *
+ *
* @param string $ldapuser Login de l'utilisateur
+ * @return string Sid
*/
function getObjectSid($ldapUser)
{
@@ -1056,7 +1058,7 @@ class Ldap
if (!$entry)
{
- // Si pas de r�sultat on cherche dans le domaine
+ // Si pas de resultat on cherche dans le domaine
$searchDN = $this->domain;
$i++;
}
@@ -1069,7 +1071,7 @@ class Ldap
if ($entry)
{
- $ldapBinary = ldap_get_values_len ($this->connection, $entry, "objectsid");
+ $ldapBinary = ldap_get_values_len($this->connection, $entry, "objectsid");
$SIDText = $this->binSIDtoText($ldapBinary[0]);
return $SIDText;
}
@@ -1083,11 +1085,11 @@ class Ldap
/**
* Returns the textual SID
* Indispensable pour Active Directory
- *
+ *
* @param string $binsid Binary SID
* @return string Textual SID
*/
- function binSIDtoText($binsid)
+ function binSIDtoText($binsid)
{
$hex_sid=bin2hex($binsid);
$rev = hexdec(substr($hex_sid,0,2)); // Get revision-part of SID
@@ -1109,9 +1111,9 @@ class Ldap
* car conflit majuscule-minuscule. A n'utiliser que pour les pages
* 'Fiche LDAP' qui affiche champ lisibles par defaut.
*
- * @param checkDn DN de recherche (Ex: ou=users,cn=my-domain,cn=com)
- * @param filter Filtre de recherche (ex: (sn=nom_personne) )
- * @return array Tableau des reponses (cle en minuscule-valeur)
+ * @param string $checkDn DN de recherche (Ex: ou=users,cn=my-domain,cn=com)
+ * @param string $filter Filtre de recherche (ex: (sn=nom_personne) )
+ * @return array Tableau des reponses (cle en minuscule-valeur)
*/
function search($checkDn, $filter)
{
@@ -1143,7 +1145,7 @@ class Ldap
/**
* Load all attribute of a LDAP user
- *
+ *
* @param User $user User to search for. Not used if a filter is provided.
* @param string $filter Filter for search. Must start with &.
* Examples: &(objectClass=inetOrgPerson) &(objectClass=user)(objectCategory=person) &(isMemberOf=cn=Sales,ou=Groups,dc=opencsi,dc=com)
@@ -1238,10 +1240,10 @@ class Ldap
/**
* Returns the correct user identifier to use, based on the ldap server type
- *
- * @return string Login
+ *
+ * @return string Login
*/
- function getUserIdentifier()
+ function getUserIdentifier()
{
if ($this->serverType == "activedirectory") {
return $this->attr_sambalogin;
@@ -1256,7 +1258,7 @@ class Ldap
* @param string $uacf UACF
* @return void
*/
- function parseUACF($uacf)
+ function parseUACF($uacf)
{
//All flags array
$flags = array( "TRUSTED_TO_AUTH_FOR_DELEGATION" => 16777216,
@@ -1300,7 +1302,7 @@ class Ldap
* @param string $samtype SamType
* @return string Sam string
*/
- function parseSAT($samtype)
+ function parseSAT($samtype)
{
$stypes = array( 805306368 => "NORMAL_ACCOUNT",
805306369 => "WORKSTATION_TRUST",
diff --git a/htdocs/core/class/rssparser.class.php b/htdocs/core/class/rssparser.class.php
index dfa1cb857b4..06d3eb057c4 100755
--- a/htdocs/core/class/rssparser.class.php
+++ b/htdocs/core/class/rssparser.class.php
@@ -25,18 +25,18 @@ class RssParser
var $db;
var $error;
- protected $_format='';
- protected $_urlRSS;
- protected $_language;
- protected $_generator;
- protected $_copyright;
- protected $_lastbuilddate;
- protected $_imageurl;
- protected $_link;
- protected $_title;
- protected $_description;
- protected $_lastfetchdate; // Last successful fetch
- protected $_rssarray=array();
+ private $_format='';
+ private $_urlRSS;
+ private $_language;
+ private $_generator;
+ private $_copyright;
+ private $_lastbuilddate;
+ private $_imageurl;
+ private $_link;
+ private $_title;
+ private $_description;
+ private $_lastfetchdate; // Last successful fetch
+ private $_rssarray=array();
/**
* getFormat
diff --git a/htdocs/core/filemanagerdol/browser/default/browser.php b/htdocs/core/filemanagerdol/browser/default/browser.php
index bd308aa4eda..497ab68055c 100755
--- a/htdocs/core/filemanagerdol/browser/default/browser.php
+++ b/htdocs/core/filemanagerdol/browser/default/browser.php
@@ -1,197 +1,197 @@
-
- * Copyright (C) 2003-2010 Frederico Caldeira Knabben
- *
- * Source modified from part of fckeditor (http://www.fckeditor.net)
- * retreived as GPL v2 or later
- *
- * 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, see .
- */
-
-require('../../../../main.inc.php');
-?>
-
-
-
- FCKeditor - Resources Browser
-
-
-
-
-
-
+
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben
+ *
+ * Source modified from part of fckeditor (http://www.fckeditor.net)
+ * retreived as GPL v2 or later
+ *
+ * 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, see .
+ */
+
+require('../../../../main.inc.php');
+?>
+
+
+
+ FCKeditor - Resources Browser
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/htdocs/core/filemanagerdol/browser/default/frmactualfolder.php b/htdocs/core/filemanagerdol/browser/default/frmactualfolder.php
index 982143e0a28..d51a0043da8 100755
--- a/htdocs/core/filemanagerdol/browser/default/frmactualfolder.php
+++ b/htdocs/core/filemanagerdol/browser/default/frmactualfolder.php
@@ -1,117 +1,118 @@
-
- * Copyright (C) 2003-2010 Frederico Caldeira Knabben
- *
- * Source modified from part of fckeditor (http://www.fckeditor.net)
- * retreived as GPL v2 or later
- *
- * 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, see .
- */
-
-require('../../../../main.inc.php'); ?>
-
-
-
-
- Folder path
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben
+ *
+ * Source modified from part of fckeditor (http://www.fckeditor.net)
+ * retreived as GPL v2 or later
+ *
+ * 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, see .
+ */
+
+require('../../../../main.inc.php');
+?>
+
+
+
+
+ Folder path
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php b/htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php
index f90a81adc5b..867fecf73b4 100755
--- a/htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php
+++ b/htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php
@@ -1,136 +1,137 @@
-
- * Copyright (C) 2003-2010 Frederico Caldeira Knabben
- *
- * Source modified from part of fckeditor (http://www.fckeditor.net)
- * retreived as GPL v2 or later
- *
- * 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, see .
- */
-
-require('../../../../main.inc.php'); ?>
-
-
-
-
- Create Folder
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben
+ *
+ * Source modified from part of fckeditor (http://www.fckeditor.net)
+ * retreived as GPL v2 or later
+ *
+ * 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, see .
+ */
+
+require('../../../../main.inc.php');
+?>
+
+
+
+
+ Create Folder
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/htdocs/core/filemanagerdol/browser/default/frmfolders.php b/htdocs/core/filemanagerdol/browser/default/frmfolders.php
index 3978fb2d1f3..ccb67f9ecf2 100755
--- a/htdocs/core/filemanagerdol/browser/default/frmfolders.php
+++ b/htdocs/core/filemanagerdol/browser/default/frmfolders.php
@@ -1,224 +1,225 @@
-
- * Copyright (C) 2003-2010 Frederico Caldeira Knabben
- *
- * Source modified from part of fckeditor (http://www.fckeditor.net)
- * retreived as GPL v2 or later
- *
- * 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, see .
- */
-
-require('../../../../main.inc.php'); ?>
-
-
-
-
-
- Folders
-
-
-
-
-
-
-
-
-
+
+ * Copyright (C) 2003-2010 Frederico Caldeira Knabben
+ *
+ * Source modified from part of fckeditor (http://www.fckeditor.net)
+ * retreived as GPL v2 or later
+ *
+ * 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, see .
+ */
+
+require('../../../../main.inc.php');
+?>
+
+
+
+
+
+ Folders
+
+
+
+
+
+
+
';
}
+/**
+ * Output menu entry
+ *
+ * @param string $text Text
+ * @return void
+ */
function print_text_menu_entry($text)
{
print $text;
}
+/**
+ * Output end menu entry
+ *
+ * @return void
+ */
function print_end_menu_entry()
{
print '
';
print "\n";
}
+/**
+ * Output end menu
+ *
+ * @return void
+ */
function print_end_menu()
{
print '
';
diff --git a/htdocs/core/menus/smartphone/smartphone_backoffice.php b/htdocs/core/menus/smartphone/smartphone_backoffice.php
index d1cb1feb89b..f19ac45351a 100755
--- a/htdocs/core/menus/smartphone/smartphone_backoffice.php
+++ b/htdocs/core/menus/smartphone/smartphone_backoffice.php
@@ -25,8 +25,8 @@
/**
* Class to manage smartphone menu smartphone (for internal users)
*/
-class MenuSmart {
-
+class MenuSmart
+{
var $db;
var $require_left=array("smartphone_backoffice"); // Si doit etre en phase avec un gestionnaire de menu particulier
var $hideifnotallowed=0; // Put 0 for back office menu, 1 for front office menu
@@ -46,7 +46,7 @@ class MenuSmart {
/**
* Show menu
- *
+ *
* @param string $limitmenuto To limit menu to a top or left menu value
* @return void
*/
diff --git a/htdocs/core/menus/smartphone/smartphone_frontoffice.php b/htdocs/core/menus/smartphone/smartphone_frontoffice.php
index 4be38b571c8..0739e894db3 100755
--- a/htdocs/core/menus/smartphone/smartphone_frontoffice.php
+++ b/htdocs/core/menus/smartphone/smartphone_frontoffice.php
@@ -23,10 +23,10 @@
/**
- * \class MenuSmart
- * \brief Class to manage smartphone menu smartphone (for external users)
+ * Class to manage smartphone menu smartphone (for external users)
*/
-class MenuSmart {
+class MenuSmart
+{
var $require_left=array("smartphone_frontoffice"); // Si doit etre en phase avec un gestionnaire de menu particulier
var $hideifnotallowed=1; // Put 0 for back office menu, 1 for front office menu
@@ -36,7 +36,7 @@ class MenuSmart {
/**
* Constructor
*
- * @param DoliDB $DB Database handler
+ * @param DoliDB $db Database handler
*/
function MenuSmart($db)
{
@@ -47,7 +47,7 @@ class MenuSmart {
/**
* Show menu
*
- * @param limitmenuto To limit menu to a top or left menu value
+ * @param string $limitmenuto To limit menu to a top or left menu value
*/
function showmenu($limitmenuto)
{
diff --git a/htdocs/core/menus/standard/auguria.lib.php b/htdocs/core/menus/standard/auguria.lib.php
index 02eab5484c8..de947d7edc3 100644
--- a/htdocs/core/menus/standard/auguria.lib.php
+++ b/htdocs/core/menus/standard/auguria.lib.php
@@ -108,7 +108,11 @@ function print_auguria_menu($db,$atarget,$type_user)
}
-
+/**
+ * Output start menu entry
+ *
+ * @return void
+ */
function print_start_menu_array_auguria()
{
global $conf;
@@ -116,6 +120,12 @@ function print_start_menu_array_auguria()
else print '
';
}
+/**
+ * Output menu entry
+ *
+ * @param string $idsel Text
+ * @return void
+ */
function print_start_menu_entry_auguria($idsel)
{
global $conf;
@@ -123,6 +133,12 @@ function print_start_menu_entry_auguria($idsel)
else print '
';
}
+/**
+ * Output menu entry
+ *
+ * @param string $text Text
+ * @return void
+ */
function print_text_menu_entry_auguria($text)
{
global $conf;
@@ -131,6 +147,11 @@ function print_text_menu_entry_auguria($text)
print '';
}
+/**
+ * Output end menu entry
+ *
+ * @return void
+ */
function print_end_menu_entry_auguria()
{
global $conf;
@@ -139,6 +160,11 @@ function print_end_menu_entry_auguria()
print "\n";
}
+/**
+ * Output menu array
+ *
+ * @return void
+ */
function print_end_menu_array_auguria()
{
global $conf;
diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php
index d2d4976f07d..da878ae9275 100644
--- a/htdocs/core/menus/standard/eldy.lib.php
+++ b/htdocs/core/menus/standard/eldy.lib.php
@@ -511,6 +511,12 @@ function print_start_menu_array()
else print '
';
}
+/**
+ * Output start menu entry
+ *
+ * @param string $idsel Text
+ * @return void
+ */
function print_start_menu_entry($idsel)
{
global $conf;
@@ -518,6 +524,12 @@ function print_start_menu_entry($idsel)
else print '
';
}
+/**
+ * Output menu entry
+ *
+ * @param string $text Text
+ * @return void
+ */
function print_text_menu_entry($text)
{
global $conf;
@@ -526,6 +538,11 @@ function print_text_menu_entry($text)
print '';
}
+/**
+ * Output end menu entry
+ *
+ * @return void
+ */
function print_end_menu_entry()
{
global $conf;
@@ -534,6 +551,11 @@ function print_end_menu_entry()
print "\n";
}
+/**
+ * Output menu array
+ *
+ * @return void
+ */
function print_end_menu_array()
{
global $conf;
diff --git a/htdocs/core/menus/standard/empty.php b/htdocs/core/menus/standard/empty.php
index 13e19711615..957b3fe4a52 100644
--- a/htdocs/core/menus/standard/empty.php
+++ b/htdocs/core/menus/standard/empty.php
@@ -71,7 +71,11 @@ class MenuTop
}
-
+/**
+ * Output menu entry
+ *
+ * @return void
+ */
function print_start_menu_array_empty()
{
global $conf;
@@ -79,6 +83,12 @@ function print_start_menu_array_empty()
else print '
';
}
+/**
+ * Output start menu entry
+ *
+ * @param string $idsel Text
+ * @return void
+ */
function print_start_menu_entry_empty($idsel)
{
global $conf;
@@ -86,6 +96,12 @@ function print_start_menu_entry_empty($idsel)
else print '
';
}
+/**
+ * Output menu entry
+ *
+ * @param string $text Text
+ * @return void
+ */
function print_text_menu_entry_empty($text)
{
global $conf;
@@ -94,6 +110,11 @@ function print_text_menu_entry_empty($text)
print '';
}
+/**
+ * Output end menu entry
+ *
+ * @return void
+ */
function print_end_menu_entry_empty()
{
global $conf;
@@ -102,6 +123,11 @@ function print_end_menu_entry_empty()
print "\n";
}
+/**
+ * Output menu array
+ *
+ * @return void
+ */
function print_end_menu_array_empty()
{
global $conf;
diff --git a/htdocs/core/modules/expedition/doc/pdf_expedition_merou.modules.php b/htdocs/core/modules/expedition/doc/pdf_expedition_merou.modules.php
index fc30dbc712a..a76aea8c5b8 100644
--- a/htdocs/core/modules/expedition/doc/pdf_expedition_merou.modules.php
+++ b/htdocs/core/modules/expedition/doc/pdf_expedition_merou.modules.php
@@ -74,9 +74,9 @@ Class pdf_expedition_merou extends ModelePdfExpedition
/**
* Fonction generant le document sur le disque
*
- * @param object Objet expedition a generer (ou id si ancienne methode)
- * @param outputlangs Lang output object
- * @return int 1=ok, 0=ko
+ * @param Object &$object Objet expedition a generer (ou id si ancienne methode)
+ * @param Translate $outputlangs Lang output object
+ * @return int 1=ok, 0=ko
*/
function write_file(&$object, $outputlangs)
{
diff --git a/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php b/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php
index 5cb4252fda1..6b1a62e8f3a 100644
--- a/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php
+++ b/htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php
@@ -76,7 +76,7 @@ Class pdf_expedition_rouget extends ModelePdfExpedition
/**
* Fonction generant le document sur le disque
*
- * @param Object $object Objet expedition a generer (ou id si ancienne methode)
+ * @param Object &$object Objet expedition a generer (ou id si ancienne methode)
* @param Translate $outputlangs Lang output object
* @return int 1=ok, 0=ko
*/
diff --git a/htdocs/core/modules/expedition/mod_expedition_ribera.php b/htdocs/core/modules/expedition/mod_expedition_ribera.php
index bf78250774e..03820ea7e0b 100755
--- a/htdocs/core/modules/expedition/mod_expedition_ribera.php
+++ b/htdocs/core/modules/expedition/mod_expedition_ribera.php
@@ -120,7 +120,7 @@ class mod_expedition_ribera extends ModelNumRefExpedition
* Return next free value
*
* @param Societe $objsoc Third party object
- * @param Object $shipment Shipment object
+ * @param Object $objforref Shipment object
* @return string Next free value
*/
function expedition_get_num($objsoc,$objforref)
diff --git a/htdocs/core/modules/expedition/mod_expedition_safor.php b/htdocs/core/modules/expedition/mod_expedition_safor.php
index 0b37886267b..648aef5ca83 100755
--- a/htdocs/core/modules/expedition/mod_expedition_safor.php
+++ b/htdocs/core/modules/expedition/mod_expedition_safor.php
@@ -132,7 +132,7 @@ class mod_expedition_safor extends ModelNumRefExpedition
* Return next free value
*
* @param Societe $objsoc Third party object
- * @param Object $shipment Shipment object
+ * @param Object $objforref Shipment object
* @return string Next free value
*/
function expedition_get_num($objsoc,$objforref)
diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
index f26ed1e708a..3c14c484057 100755
--- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
+++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
@@ -513,7 +513,7 @@ class pdf_crabe extends ModelePDFFactures
$pdf->SetXY($tab3_posx+58, $tab3_top+$y);
$pdf->MultiCell(20, 3, $invoice->ref, 0, 'L', 0);
- $pdf->line($tab3_posx, $tab3_top+$y+3, $tab3_posx+$tab3_width, $tab3_top+$y+3 );
+ $pdf->line($tab3_posx, $tab3_top+$y+3, $tab3_posx+$tab3_width, $tab3_top+$y+3);
$i++;
}
@@ -552,7 +552,7 @@ class pdf_crabe extends ModelePDFFactures
$pdf->SetXY($tab3_posx+58, $tab3_top+$y);
$pdf->MultiCell(30, 3, $row->num, 0, 'L', 0);
- $pdf->line($tab3_posx, $tab3_top+$y+3, $tab3_posx+$tab3_width, $tab3_top+$y+3 );
+ $pdf->line($tab3_posx, $tab3_top+$y+3, $tab3_posx+$tab3_width, $tab3_top+$y+3);
$i++;
}
diff --git a/htdocs/core/modules/facture/doc/pdf_oursin.modules.php b/htdocs/core/modules/facture/doc/pdf_oursin.modules.php
index 813c51e0368..ee1e51d3c86 100755
--- a/htdocs/core/modules/facture/doc/pdf_oursin.modules.php
+++ b/htdocs/core/modules/facture/doc/pdf_oursin.modules.php
@@ -209,7 +209,7 @@ class pdf_oursin extends ModelePDFFactures
$pdf->SetFillColor(220,220,220);
$pdf->SetFont('','', $default_font_size - 1);
- $pdf->SetXY($this->marges['g'], $tab_top + $this->marges['g'] );
+ $pdf->SetXY($this->marges['g'], $tab_top + $this->marges['g']);
$iniY = $pdf->GetY();
$curY = $pdf->GetY();
@@ -356,13 +356,13 @@ class pdf_oursin extends ModelePDFFactures
$pdf->Rect($tab3_posx, $tab3_top-1, $tab3_width, $tab3_height);
$pdf->SetFont('','', $default_font_size - 4);
- $pdf->SetXY($tab3_posx, $tab3_top-1 );
+ $pdf->SetXY($tab3_posx, $tab3_top-1);
$pdf->MultiCell(20, 4, $outputlangs->transnoentities("Payment"), 0, 'L', 0);
- $pdf->SetXY($tab3_posx+21, $tab3_top-1 );
+ $pdf->SetXY($tab3_posx+21, $tab3_top-1);
$pdf->MultiCell(20, 4, $outputlangs->transnoentities("Amount"), 0, 'L', 0);
- $pdf->SetXY($tab3_posx+40, $tab3_top-1 );
+ $pdf->SetXY($tab3_posx+40, $tab3_top-1);
$pdf->MultiCell(20, 4, $outputlangs->transnoentities("Type"), 0, 'L', 0);
- $pdf->SetXY($tab3_posx+58, $tab3_top-1 );
+ $pdf->SetXY($tab3_posx+58, $tab3_top-1);
$pdf->MultiCell(20, 4, $outputlangs->transnoentities("Num"), 0, 'L', 0);
$y=0;
@@ -746,6 +746,7 @@ class pdf_oursin extends ModelePDFFactures
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
+ * @param Object $object Object
* @param Translate $outputlangs Langs object
* @return void
*/
diff --git a/htdocs/core/modules/facture/mod_facture_mercure.php b/htdocs/core/modules/facture/mod_facture_mercure.php
index 673c8e7db7c..5230c987690 100644
--- a/htdocs/core/modules/facture/mod_facture_mercure.php
+++ b/htdocs/core/modules/facture/mod_facture_mercure.php
@@ -110,10 +110,10 @@ class mod_facture_mercure extends ModeleNumRefFactures
/**
* Return next value
*
- * @param objsoc Object third party
- * @param facture Object invoice
- * @param mode 'next' for next value or 'last' for last value
- * @return string Value if OK, 0 if KO
+ * @param Societe $objsoc Object third party
+ * @param Facture $facture Object invoice
+ * @param string $mode 'next' for next value or 'last' for last value
+ * @return string Value if OK, 0 if KO
*/
function getNextValue($objsoc,$facture,$mode='next')
{
diff --git a/htdocs/core/modules/facture/mod_facture_terre.php b/htdocs/core/modules/facture/mod_facture_terre.php
index e0ee2d98eb9..99eb3a3e40f 100644
--- a/htdocs/core/modules/facture/mod_facture_terre.php
+++ b/htdocs/core/modules/facture/mod_facture_terre.php
@@ -114,12 +114,13 @@ class mod_facture_terre extends ModeleNumRefFactures
return true;
}
- /** Return next value not used or last value used
+ /**
+ * Return next value not used or last value used
*
- * @param objsoc Object third party
- * @param facture Object invoice
- * @param mode 'next' for next value or 'last' for last value
- * @return string Value
+ * @param Societe $objsoc Object third party
+ * @param Facture $facture Object invoice
+ * @param string $mode 'next' for next value or 'last' for last value
+ * @return string Value
*/
function getNextValue($objsoc,$facture,$mode='next')
{
diff --git a/htdocs/core/modules/facture/modules_facture.php b/htdocs/core/modules/facture/modules_facture.php
index e98cb3840d6..c8b2b8a12e9 100644
--- a/htdocs/core/modules/facture/modules_facture.php
+++ b/htdocs/core/modules/facture/modules_facture.php
@@ -116,9 +116,9 @@ abstract class ModeleNumRefFactures
/**
* Renvoi prochaine valeur attribuee
*
- * @param objsoc Objet societe
- * @param facture Objet facture
- * @return string Valeur
+ * @param Societe $objsoc Objet societe
+ * @param Facture $facture Objet facture
+ * @return string Value
*/
function getNextValue($objsoc,$facture)
{
diff --git a/htdocs/core/modules/livraison/mod_livraison_saphir.php b/htdocs/core/modules/livraison/mod_livraison_saphir.php
index 40fe0660def..357f814ceaa 100644
--- a/htdocs/core/modules/livraison/mod_livraison_saphir.php
+++ b/htdocs/core/modules/livraison/mod_livraison_saphir.php
@@ -143,7 +143,7 @@ class mod_livraison_saphir extends ModeleNumRefDeliveryOrder
* Return next free ref
*
* @param Societe $objsoc Object thirdparty
- * @param Object $livraison Objet livraison
+ * @param Object $object Objet livraison
* @return string Texte descripif
*/
function livraison_get_num($objsoc=0,$object='')
diff --git a/htdocs/core/modules/societe/mod_codeclient_elephant.php b/htdocs/core/modules/societe/mod_codeclient_elephant.php
index 218b62af140..a221a256e69 100644
--- a/htdocs/core/modules/societe/mod_codeclient_elephant.php
+++ b/htdocs/core/modules/societe/mod_codeclient_elephant.php
@@ -152,11 +152,12 @@ class mod_codeclient_elephant extends ModeleThirdPartyCode
return $examplecust.' '.$examplesup;
}
- /** Return next value
+ /**
+ * Return next value
*
- * @param objsoc Object third party
- * @param $type Client ou fournisseur (0:customer, 1:supplier)
- * @return string Value if OK, '' if module not configured, <0 if KO
+ * @param Societe $objsoc Object third party
+ * @param int $type Client ou fournisseur (0:customer, 1:supplier)
+ * @return string Value if OK, '' if module not configured, <0 if KO
*/
function getNextValue($objsoc=0,$type=-1)
{
diff --git a/htdocs/core/modules/societe/mod_codeclient_monkey.php b/htdocs/core/modules/societe/mod_codeclient_monkey.php
index 34153caafb5..8c0024e4632 100644
--- a/htdocs/core/modules/societe/mod_codeclient_monkey.php
+++ b/htdocs/core/modules/societe/mod_codeclient_monkey.php
@@ -247,7 +247,7 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
* Renvoi si un code respecte la syntaxe
*
* @param string $code Code a verifier
-* * @return int 0 si OK, <0 si KO
+ * @return int 0 si OK, <0 si KO
*/
function verif_syntax($code)
{
diff --git a/htdocs/core/modules/societe/mod_codecompta_aquarium.php b/htdocs/core/modules/societe/mod_codecompta_aquarium.php
index d153c9690e3..7f8f14d5703 100644
--- a/htdocs/core/modules/societe/mod_codecompta_aquarium.php
+++ b/htdocs/core/modules/societe/mod_codecompta_aquarium.php
@@ -100,10 +100,10 @@ class mod_codecompta_aquarium extends ModeleAccountancyCode
/**
* Set accountancy account code for a third party into this->code
*
- * @param db Database handler
- * @param societe Third party object
- * @param type 'customer' or 'supplier'
- * @return int >=0 if OK, <0 if KO
+ * @param DoliDB $db Database handler
+ * @param Societe $societe Third party object
+ * @param string $type 'customer' or 'supplier'
+ * @return int >=0 if OK, <0 if KO
*/
function get_code($db, $societe, $type)
{
@@ -138,11 +138,11 @@ class mod_codecompta_aquarium extends ModeleAccountancyCode
/**
* Return if a code is available
*
- * @param db Database handler
- * @param code Code of third party
- * @param societe Object third party
- * @param type 'supplier' or 'customer'
- * @return int 0 if OK but not available, >0 if OK and available, <0 if KO
+ * @param DoliDB $db Database handler
+ * @param string $code Code of third party
+ * @param Societe $societe Object third party
+ * @param string $type 'supplier' or 'customer'
+ * @return int 0 if OK but not available, >0 if OK and available, <0 if KO
*/
function verif($db, $code, $societe, $type)
{
diff --git a/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php b/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php
index 02af7cba055..7efbeb98f9f 100755
--- a/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php
+++ b/htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php
@@ -115,9 +115,10 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
/**
* Write the invoice as a document onto disk
- * @param object Object invoice to build (or id if old method)
- * @param outputlangs Lang object for output language
- * @return int 1=OK, 0=KO
+ *
+ * @param Object $object Object invoice to build (or id if old method)
+ * @param Translate $outputlangs Lang object for output language
+ * @return int 1=OK, 0=KO
*/
function write_file($object,$outputlangs='')
{
@@ -712,13 +713,13 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
$pdf->line($tab3_posx, $tab3_top-1+$tab3_height, $tab3_posx+$tab3_width, $tab3_top-1+$tab3_height);
$pdf->SetFont('','', $default_font_size - 4);
- $pdf->SetXY($tab3_posx, $tab3_top );
+ $pdf->SetXY($tab3_posx, $tab3_top);
$pdf->MultiCell(20, 3, $outputlangs->transnoentities("Payment"), 0, 'L', 0);
- $pdf->SetXY($tab3_posx+21, $tab3_top );
+ $pdf->SetXY($tab3_posx+21, $tab3_top);
$pdf->MultiCell(20, 3, $outputlangs->transnoentities("Amount"), 0, 'L', 0);
- $pdf->SetXY($tab3_posx+40, $tab3_top );
+ $pdf->SetXY($tab3_posx+40, $tab3_top);
$pdf->MultiCell(20, 3, $outputlangs->transnoentities("Type"), 0, 'L', 0);
- $pdf->SetXY($tab3_posx+58, $tab3_top );
+ $pdf->SetXY($tab3_posx+58, $tab3_top);
$pdf->MultiCell(20, 3, $outputlangs->transnoentities("Num"), 0, 'L', 0);
$y=0;
@@ -752,7 +753,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
$pdf->SetXY($tab3_posx+58, $tab3_top+$y);
$pdf->MultiCell(30, 3, $row->num, 0, 'L', 0);
- $pdf->line($tab3_posx, $tab3_top+$y+3, $tab3_posx+$tab3_width, $tab3_top+$y+3 );
+ $pdf->line($tab3_posx, $tab3_top+$y+3, $tab3_posx+$tab3_width, $tab3_top+$y+3);
$i++;
}
diff --git a/htdocs/core/triggers/interface_20_all_Logevents.class.php b/htdocs/core/triggers/interface_20_all_Logevents.class.php
index cffce2e3329..a41ea6f0f66 100755
--- a/htdocs/core/triggers/interface_20_all_Logevents.class.php
+++ b/htdocs/core/triggers/interface_20_all_Logevents.class.php
@@ -93,13 +93,13 @@ class InterfaceLogevents
* Function called when a Dolibarrr business event is done.
* All functions "run_trigger" are triggered if file is inside directory htdocs/core/triggers
*
- * @param action Code de l'evenement
- * @param object Objet concerne
- * @param user Objet user
- * @param langs Objet langs
- * @param conf Objet conf
- * @param entity Value for instance of data (Always 1 except if module MultiCompany is installed)
- * @return int <0 if KO, 0 if no triggered ran, >0 if OK
+ * @param string $action Event action code
+ * @param Object $object Object
+ * @param User $user Object user
+ * @param Translate $langs Object langs
+ * @param conf $conf Object conf
+ * @param string $entity Value for instance of data (Always 1 except if module MultiCompany is installed)
+ * @return int <0 if KO, 0 if no triggered ran, >0 if OK
*/
function run_trigger($action,$object,$user,$langs,$conf,$entity=1)
{
diff --git a/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php b/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php
index 5aac808f549..2d7b9ef6ee0 100755
--- a/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php
+++ b/htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php
@@ -88,12 +88,12 @@ class InterfacePaypalWorkflow
* Fonction appelee lors du declenchement d'un evenement Dolibarr.
* D'autres fonctions run_trigger peuvent etre presentes dans core/triggers
*
- * @param string $action Code de l'evenement
- * @param CommonObject $object Objet concerne
- * @param User $user Objet user
- * @param Translate $langs Objet lang
- * @param Conf $conf Objet conf
- * @return int <0 if fatal error, 0 si nothing done, >0 if ok
+ * @param string $action Event action code
+ * @param Object $object Object
+ * @param User $user Object user
+ * @param Translate $langs Object langs
+ * @param conf $conf Object conf
+ * @return int <0 if KO, 0 if no triggered ran, >0 if OK
*/
function run_trigger($action,$object,$user,$langs,$conf)
{
diff --git a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
index 4fbaacfca67..cac90487179 100755
--- a/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
+++ b/htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php
@@ -90,12 +90,13 @@ class InterfaceWorkflowManager
* Function called when a Dolibarrr business event is done.
* All functions "run_trigger" are triggered if file is inside directory htdocs/core/triggers
*
- * @param action Event code (COMPANY_CREATE, PROPAL_VALIDATE, ...)
- * @param object Object action is done on
- * @param user Object user
- * @param langs Object langs
- * @param conf Object conf
- * @return int <0 if KO, 0 if no action are done, >0 if OK
+ * @param string $action Event action code
+ * @param Object $object Object
+ * @param User $user Object user
+ * @param Translate $langs Object langs
+ * @param conf $conf Object conf
+ * @param string $entity Value for instance of data (Always 1 except if module MultiCompany is installed)
+ * @return int <0 if KO, 0 if no triggered ran, >0 if OK
*/
function run_trigger($action,$object,$user,$langs,$conf)
{
diff --git a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
index f303d8514f1..435b8afa554 100755
--- a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
+++ b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
@@ -104,12 +104,12 @@ class InterfaceActionsAuto
* $object->fk_element
* $object->elementtype
*
- * @param action Event code (COMPANY_CREATE, PROPAL_VALIDATE, ...)
- * @param object Object action is done on
- * @param user Object user
- * @param langs Object langs
- * @param conf Object conf
- * @return int <0 if KO, 0 if no action are done, >0 if OK
+ * @param string $action Event action code
+ * @param Object $object Object
+ * @param User $user Object user
+ * @param Translate $langs Object langs
+ * @param conf $conf Object conf
+ * @return int <0 if KO, 0 if no triggered ran, >0 if OK
*/
function run_trigger($action,$object,$user,$langs,$conf)
{
diff --git a/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php b/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php
index dd1d1d316f0..346ade67d03 100755
--- a/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php
+++ b/htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php
@@ -89,12 +89,12 @@ class InterfaceLdapsynchro
* Function called when a Dolibarrr business event is done.
* All functions "run_trigger" are triggered if file is inside directory htdocs/core/triggers
*
- * @param action Event code (COMPANY_CREATE, PROPAL_VALIDATE, ...)
- * @param object Object action is done on
- * @param user Object user
- * @param langs Object langs
- * @param conf Object conf
- * @return int <0 if KO, 0 if no action are done, >0 if OK
+ * @param string $action Event action code
+ * @param Object $object Object
+ * @param User $user Object user
+ * @param Translate $langs Object langs
+ * @param conf $conf Object conf
+ * @return int <0 if KO, 0 if no triggered ran, >0 if OK
*/
function run_trigger($action,$object,$user,$langs,$conf)
{
diff --git a/htdocs/core/triggers/interface_50_modNotification_Notification.class.php b/htdocs/core/triggers/interface_50_modNotification_Notification.class.php
index eeb1b5c34db..50d7bafa812 100755
--- a/htdocs/core/triggers/interface_50_modNotification_Notification.class.php
+++ b/htdocs/core/triggers/interface_50_modNotification_Notification.class.php
@@ -89,12 +89,12 @@ class InterfaceNotification
* Function called when a Dolibarrr business event is done.
* All functions "run_trigger" are triggered if file is inside directory htdocs/core/triggers
*
- * @param action Event code (COMPANY_CREATE, PROPAL_VALIDATE, ...)
- * @param object Object action is done on
- * @param user Object user
- * @param langs Object langs
- * @param conf Object conf
- * @return int <0 if KO, 0 if no action are done, >0 if OK
+ * @param string $action Event action code
+ * @param Object $object Object
+ * @param User $user Object user
+ * @param Translate $langs Object langs
+ * @param conf $conf Object conf
+ * @return int <0 if KO, 0 if no triggered ran, >0 if OK
*/
function run_trigger($action,$object,$user,$langs,$conf)
{
diff --git a/htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN b/htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN
index 7d28d98760f..15ee6544a94 100755
--- a/htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN
+++ b/htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN
@@ -92,12 +92,13 @@ class InterfaceDemo
/**
* Function called when a Dolibarrr business event is done.
* All functions "run_trigger" are triggered if file is inside directory htdocs/core/triggers
- * @param action Code de l'evenement
- * @param object Objet concerne
- * @param user Objet user
- * @param langs Objet langs
- * @param conf Objet conf
- * @return int <0 if KO, 0 if no triggered ran, >0 if OK
+ *
+ * @param string $action Event action code
+ * @param Object $object Object
+ * @param User $user Object user
+ * @param Translate $langs Object langs
+ * @param conf $conf Object conf
+ * @return int <0 if KO, 0 if no triggered ran, >0 if OK
*/
function run_trigger($action,$object,$user,$langs,$conf)
{
diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php
index c7c271c2a13..bb4d872f75b 100644
--- a/htdocs/install/upgrade2.php
+++ b/htdocs/install/upgrade2.php
@@ -806,6 +806,7 @@ function migrate_contracts_det($db,$langs,$conf)
}
/**
+ * Function to migrate links into llx_bank_url
*
* @param DoliDB $db Database handler
* @param Translate $langs Object langs
@@ -2687,9 +2688,14 @@ function migrate_project_task_actors($db,$langs,$conf)
/**
* Migration des tables de relation
*
- * @param DoliDB $db Database handler
- * @param Translate $langs Object langs
- * @param Conf $conf Object conf
+ * @param DoliDB $db Database handler
+ * @param Translate $langs Object langs
+ * @param Conf $conf Object conf
+ * @param string $table Table name
+ * @param int $fk_source Id of element source
+ * @param type $sourcetype Type of element source
+ * @param int $fk_target Id of element target
+ * @param type $targettype Type of element target
* @return void
*/
function migrate_relationship_tables($db,$langs,$conf,$table,$fk_source,$sourcetype,$fk_target,$targettype)
diff --git a/htdocs/paypal/lib/paypal.lib.php b/htdocs/paypal/lib/paypal.lib.php
index d5026c0028c..2f3e8e3b91a 100755
--- a/htdocs/paypal/lib/paypal.lib.php
+++ b/htdocs/paypal/lib/paypal.lib.php
@@ -55,18 +55,18 @@ function llxHeaderPaypal($title, $head = "")
print '.CTableRow2 { margin: 1px; padding: 3px; font: 12px verdana,arial; background: #FFFFFF; color: #000000; -moz-border-radius-topleft:6px; -moz-border-radius-topright:6px; -moz-border-radius-bottomleft:6px; -moz-border-radius-bottomright:6px;}';
print '';
}
-
+
if ($conf->use_javascript_ajax)
{
print ''."\n";
print ''."\n"; // JNotify
-
+
// Output standard javascript links
$ext='.js';
if (isset($conf->global->MAIN_OPTIMIZE_SPEED) && ($conf->global->MAIN_OPTIMIZE_SPEED & 0x01)) {
$ext='.jgz';
} // mini='_mini', ext='.gz'
-
+
// JQuery. Must be before other includes
print ''."\n";
print ''."\n";
@@ -764,7 +764,9 @@ function deformatNVP($nvpstr)
}
/**
- * Get API errors
+ * Get API errors
+ *
+ * @return array Array of errors
*/
function getApiError()
{
diff --git a/htdocs/support/inc.php b/htdocs/support/inc.php
index a8a6a0c1ffb..b0bb626b849 100644
--- a/htdocs/support/inc.php
+++ b/htdocs/support/inc.php
@@ -50,27 +50,6 @@ if (isset($_SERVER["DOCUMENT_URI"]) && $_SERVER["DOCUMENT_URI"])
}
-// Define syslog constants
-if (! defined('LOG_DEBUG'))
-{
- if (function_exists("define_syslog_variables"))
- {
- define_syslog_variables(); // Deprecated since php 5.3.0, syslog variables no longer need to be initialized
- }
- else
- {
- // Pour PHP sans syslog (comme sous Windows)
- define('LOG_EMERG',0);
- define('LOG_ALERT',1);
- define('LOG_CRIT',2);
- define('LOG_ERR',3);
- define('LOG_WARNING',4);
- define('LOG_NOTICE',5);
- define('LOG_INFO',6);
- define('LOG_DEBUG',7);
- }
-}
-
$includeconferror='';
// Define vars
@@ -135,28 +114,6 @@ if (empty($conf->db->dolibarr_main_db_cryptkey)) $conf->db->dolibarr_main_db_c
if (empty($conf->db->user)) $conf->db->user='';
-
-// Removed magic_quotes
-if (function_exists('get_magic_quotes_gpc')) // magic_quotes_* removed in PHP6
-{
- if (get_magic_quotes_gpc())
- {
- // Forcing parameter setting magic_quotes_gpc and cleaning parameters
- // (Otherwise he would have for each position, condition
- // Reading stripslashes variable according to state get_magic_quotes_gpc).
- // Off mode (recommended, you just do $db->escape when an insert / update.
- function stripslashes_deep($value)
- {
- return (is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value));
- }
- $_GET = array_map('stripslashes_deep', $_GET);
- $_POST = array_map('stripslashes_deep', $_POST);
- $_COOKIE = array_map('stripslashes_deep', $_COOKIE);
- $_REQUEST = array_map('stripslashes_deep', $_REQUEST);
- @set_magic_quotes_runtime(0);
- }
-}
-
// Defini objet langs
$langs = new Translate('..',$conf);
if (GETPOST('lang')) $langs->setDefaultLang(GETPOST('lang'));
@@ -257,16 +214,4 @@ function pFooter($nonext=0,$setuplang='')
print '