From 30992f2730b4032a0f9f49ccc520d82cb59a7748 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Thu, 23 Aug 2018 18:52:47 +0200 Subject: [PATCH] Standardize and update code --- htdocs/projet/class/project.class.php | 5 ++++- htdocs/projet/class/task.class.php | 5 ++++- htdocs/resource/class/dolresource.class.php | 5 ++++- htdocs/societe/class/societe.class.php | 3 +++ .../class/supplier_proposal.class.php | 10 ++++++++-- htdocs/ticket/class/ticketlogs.class.php | 6 +++++- htdocs/user/class/user.class.php | 3 +++ htdocs/user/class/usergroup.class.php | 3 +++ 8 files changed, 34 insertions(+), 6 deletions(-) diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 16c187e1842..6e8709a4328 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -33,7 +33,10 @@ require_once DOL_DOCUMENT_ROOT . '/core/class/commonobject.class.php'; class Project extends CommonObject { - public $element = 'project'; //!< Id that identify managed objects + /** + * @var string ID to identify managed object + */ + public $element = 'project'; /** * @var string Name of table without prefix where object is stored diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index e7546048950..e3fee33a0de 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -31,7 +31,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php'; */ class Task extends CommonObject { - public $element='project_task'; //!< Id that identify managed objects + /** + * @var string ID to identify managed object + */ + public $element='project_task'; /** * @var string Name of table without prefix where object is stored diff --git a/htdocs/resource/class/dolresource.class.php b/htdocs/resource/class/dolresource.class.php index 4e580fd6e26..604e4f8849d 100644 --- a/htdocs/resource/class/dolresource.class.php +++ b/htdocs/resource/class/dolresource.class.php @@ -30,7 +30,10 @@ require_once DOL_DOCUMENT_ROOT."/core/lib/functions2.lib.php"; */ class Dolresource extends CommonObject { - public $element='dolresource'; //!< Id that identify managed objects + /** + * @var string ID to identify managed object + */ + public $element='dolresource'; /** * @var string Name of table without prefix where object is stored diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 39fa367e26a..5c3363bc4c8 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -41,6 +41,9 @@ require_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php'; */ class Societe extends CommonObject { + /** + * @var string ID to identify managed object + */ public $element='societe'; /** diff --git a/htdocs/supplier_proposal/class/supplier_proposal.class.php b/htdocs/supplier_proposal/class/supplier_proposal.class.php index 34485e0b4fe..9275cc0decf 100644 --- a/htdocs/supplier_proposal/class/supplier_proposal.class.php +++ b/htdocs/supplier_proposal/class/supplier_proposal.class.php @@ -45,7 +45,10 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php'; */ class SupplierProposal extends CommonObject { - public $element='supplier_proposal'; + /** + * @var string ID to identify managed object + */ + public $element='supplier_proposal'; /** * @var string Name of table without prefix where object is stored @@ -2651,7 +2654,10 @@ class SupplierProposalLine extends CommonObjectLine */ public $error=''; - public $element='supplier_proposaldet'; + /** + * @var string ID to identify managed object + */ + public $element='supplier_proposaldet'; /** * @var string Name of table without prefix where object is stored diff --git a/htdocs/ticket/class/ticketlogs.class.php b/htdocs/ticket/class/ticketlogs.class.php index f511cc1900b..cf5f8dc122b 100644 --- a/htdocs/ticket/class/ticketlogs.class.php +++ b/htdocs/ticket/class/ticketlogs.class.php @@ -47,7 +47,11 @@ class Ticketlogs// extends CommonObject */ public $errors = array(); - public $element = 'ticketlogs'; //!< Id that identify managed objects + /** + * @var string ID to identify managed object + */ + public $element = 'ticketlogs'; + /** * @var string Name of table without prefix where object is stored */ diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 90b5d477180..f64ecd9ede6 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -40,6 +40,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php'; */ class User extends CommonObject { + /** + * @var string ID to identify managed object + */ public $element='user'; /** diff --git a/htdocs/user/class/usergroup.class.php b/htdocs/user/class/usergroup.class.php index 7bcfa05ab28..8f89b4a2e35 100644 --- a/htdocs/user/class/usergroup.class.php +++ b/htdocs/user/class/usergroup.class.php @@ -35,6 +35,9 @@ if (! empty($conf->ldap->enabled)) require_once DOL_DOCUMENT_ROOT."/core/class/l */ class UserGroup extends CommonObject { + /** + * @var string ID to identify managed object + */ public $element='usergroup'; /**