diff --git a/htdocs/accountancy/class/accountancycategory.class.php b/htdocs/accountancy/class/accountancycategory.class.php index b01becd4fcb..d0191d92c09 100644 --- a/htdocs/accountancy/class/accountancycategory.class.php +++ b/htdocs/accountancy/class/accountancycategory.class.php @@ -30,7 +30,7 @@ require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php'; */ class AccountancyCategory // extends CommonObject { - /** + /** * @var DoliDB Database handler. */ public $db; diff --git a/htdocs/accountancy/class/accountingaccount.class.php b/htdocs/accountancy/class/accountingaccount.class.php index 65861951a55..c9ea755870c 100644 --- a/htdocs/accountancy/class/accountingaccount.class.php +++ b/htdocs/accountancy/class/accountingaccount.class.php @@ -80,14 +80,22 @@ class AccountingAccount extends CommonObject var $account_parent; var $account_category; - /** - * @var string proper name for given parameter - */ - public $label; + /** + * @var string Label of account + */ + public $label; - var $fk_user_author; - var $fk_user_modif; - var $active; // duplicate with status + /** + * @var int ID + */ + public $fk_user_author; + + /** + * @var int ID + */ + public $fk_user_modif; + + var $active; // duplicate with status var $status; @@ -422,7 +430,7 @@ class AccountingAccount extends CommonObject * @param string $moretitle Add more text to title tooltip * @param int $notooltip 1=Disable tooltip * @param int $save_lastsearch_value -1=Auto, 0=No save of lastsearch_values when clicking, 1=Save lastsearch_values whenclicking - * @return string String with URL + * @return string String with URL */ function getNomUrl($withpicto = 0, $withlabel = 0, $nourl = 0, $moretitle='',$notooltip=0, $save_lastsearch_value=-1) { diff --git a/htdocs/comm/mailing/class/advtargetemailing.class.php b/htdocs/comm/mailing/class/advtargetemailing.class.php index 1f4968ef6b2..2d7a7ca4000 100644 --- a/htdocs/comm/mailing/class/advtargetemailing.class.php +++ b/htdocs/comm/mailing/class/advtargetemailing.class.php @@ -28,30 +28,30 @@ */ class AdvanceTargetingMailing extends CommonObject { - /** - * @var DoliDB Database handler. - */ - public $db; - + /** + * @var DoliDB Database handler. + */ + public $db; + /** * @var string Error code (or message) */ - public $error=''; + public $error=''; /** * @var string[] Error codes (or messages) */ public $errors = array(); - + /** * @var string ID to identify managed object */ public $element='advtargetemailing'; - + /** * @var string Name of table without prefix where object is stored */ - public $table_element='advtargetemailing'; + public $table_element='advtargetemailing'; /** * @var int ID diff --git a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php index 091886bc6a3..b61132ee145 100644 --- a/htdocs/compta/sociales/class/paymentsocialcontribution.class.php +++ b/htdocs/compta/sociales/class/paymentsocialcontribution.class.php @@ -716,5 +716,3 @@ class PaymentSocialContribution extends CommonObject return $result; } } - - diff --git a/htdocs/core/class/comment.class.php b/htdocs/core/class/comment.class.php index ec85a228c82..9cc4b8be192 100644 --- a/htdocs/core/class/comment.class.php +++ b/htdocs/core/class/comment.class.php @@ -1,4 +1,21 @@ . + * or see http://www.gnu.org/ + */ + /** * Class to manage comment */ diff --git a/htdocs/core/class/events.class.php b/htdocs/core/class/events.class.php index 0cbbbbde226..6a2374a7d3b 100644 --- a/htdocs/core/class/events.class.php +++ b/htdocs/core/class/events.class.php @@ -30,7 +30,7 @@ /** - * Events class + * Events class */ class Events // extends CommonObject { @@ -49,7 +49,7 @@ class Events // extends CommonObject */ public $id; - /** + /** * @var DoliDB Database handler. */ public $db; diff --git a/htdocs/core/class/menubase.class.php b/htdocs/core/class/menubase.class.php index efcbb60a5c2..d1276610830 100644 --- a/htdocs/core/class/menubase.class.php +++ b/htdocs/core/class/menubase.class.php @@ -34,14 +34,14 @@ class Menubase public $db; /** - * @var string Error code (or message) - */ - public $error; + * @var string Error code (or message) + */ + public $error; /** - * @var string[] Error codes (or messages) - */ - public $errors = array(); + * @var string[] Error codes (or messages) + */ + public $errors = array(); public $id; @@ -696,4 +696,3 @@ class Menubase } } - diff --git a/htdocs/don/class/paymentdonation.class.php b/htdocs/don/class/paymentdonation.class.php index b45068ea939..a4d89c36457 100644 --- a/htdocs/don/class/paymentdonation.class.php +++ b/htdocs/don/class/paymentdonation.class.php @@ -76,7 +76,7 @@ class PaymentDonation extends CommonObject * Use this->amounts to have list of lines for the payment * * @param User $user User making payment - * @param bool $notrigger false=launch triggers after, true=disable triggers + * @param bool $notrigger false=launch triggers after, true=disable triggers * @return int <0 if KO, id of payment if OK */ function create($user, $notrigger=false) diff --git a/htdocs/expedition/class/expeditionbatch.class.php b/htdocs/expedition/class/expeditionbatch.class.php index 5981963bb75..18a5fdbec6b 100644 --- a/htdocs/expedition/class/expeditionbatch.class.php +++ b/htdocs/expedition/class/expeditionbatch.class.php @@ -63,15 +63,15 @@ class ExpeditionLineBatch extends CommonObject function fetchFromStock($id_stockdluo) { $sql = "SELECT"; - $sql.= " pb.batch,"; - $sql.= " pl.sellby,"; - $sql.= " pl.eatby,"; - $sql.= " ps.fk_entrepot"; + $sql.= " pb.batch,"; + $sql.= " pl.sellby,"; + $sql.= " pl.eatby,"; + $sql.= " ps.fk_entrepot"; $sql.= " FROM ".MAIN_DB_PREFIX."product_batch as pb"; $sql.= " JOIN ".MAIN_DB_PREFIX."product_stock as ps on pb.fk_product_stock=ps.rowid"; $sql.= ' LEFT JOIN '.MAIN_DB_PREFIX."product_lot as pl on pl.batch = pb.batch AND pl.fk_product = ps.fk_product"; - $sql.= " WHERE pb.rowid = ".(int) $id_stockdluo; + $sql.= " WHERE pb.rowid = ".(int) $id_stockdluo; dol_syslog(get_class($this)."::fetch", LOG_DEBUG); $resql=$this->db->query($sql); diff --git a/htdocs/expensereport/class/paymentexpensereport.class.php b/htdocs/expensereport/class/paymentexpensereport.class.php index a827b095bff..417ba0fdb4a 100644 --- a/htdocs/expensereport/class/paymentexpensereport.class.php +++ b/htdocs/expensereport/class/paymentexpensereport.class.php @@ -34,12 +34,12 @@ class PaymentExpenseReport extends CommonObject * @var string ID to identify managed object */ public $element='payment_expensereport'; - + /** * @var string Name of table without prefix where object is stored */ - public $table_element='payment_expensereport'; - + public $table_element='payment_expensereport'; + public $picto = 'payment'; var $rowid; diff --git a/htdocs/fourn/class/fournisseur.commande.dispatch.class.php b/htdocs/fourn/class/fournisseur.commande.dispatch.class.php index 90dd1ac5e94..f5933b453ed 100644 --- a/htdocs/fourn/class/fournisseur.commande.dispatch.class.php +++ b/htdocs/fourn/class/fournisseur.commande.dispatch.class.php @@ -34,7 +34,7 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php"; */ class CommandeFournisseurDispatch extends CommonObject { - /** + /** * @var DoliDB Database handler. */ public $db; diff --git a/htdocs/loan/class/loanschedule.class.php b/htdocs/loan/class/loanschedule.class.php index 7aa7663fb7e..326f5df2e9b 100644 --- a/htdocs/loan/class/loanschedule.class.php +++ b/htdocs/loan/class/loanschedule.class.php @@ -17,8 +17,8 @@ /** * \file htdocs/loan/class/loanschedule.class.php - * \ingroup loan - * \brief File of class to manage schedule of loans + * \ingroup loan + * \brief File of class to manage schedule of loans */ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php'; @@ -547,4 +547,3 @@ class LoanSchedule extends CommonObject return $result; } } - diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index 0224e5521fe..2d16e2f53fb 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -45,10 +45,10 @@ class Task extends CommonObject public $picto = 'task'; protected $childtables=array('projet_task_time'); // To test if we can delete object - var $fk_task_parent; + public $fk_task_parent; - /** - * @var string proper name for given parameter + /** + * @var string Label of task */ public $label; diff --git a/htdocs/ticket/class/ticketlogs.class.php b/htdocs/ticket/class/ticketlogs.class.php index 4b7ebc3e361..e006759ed51 100644 --- a/htdocs/ticket/class/ticketlogs.class.php +++ b/htdocs/ticket/class/ticketlogs.class.php @@ -38,24 +38,24 @@ class Ticketlogs// extends CommonObject public $db; /** - * @var string Error code (or message) - */ - public $error; + * @var string Error code (or message) + */ + public $error; /** - * @var string[] Error codes (or messages) - */ - public $errors = array(); + * @var string[] Error codes (or messages) + */ + public $errors = array(); /** - * @var string ID to identify managed object - */ - public $element = 'ticketlogs'; + * @var string ID to identify managed object + */ + public $element = 'ticketlogs'; /** - * @var string Name of table without prefix where object is stored - */ - public $table_element = 'ticketlogs'; //!< Name of table without prefix where object is stored + * @var string Name of table without prefix where object is stored + */ + public $table_element = 'ticketlogs'; //!< Name of table without prefix where object is stored public $id;