Standardize and update code

This commit is contained in:
Philippe GRAND 2018-08-23 18:17:09 +02:00
parent 2fa82edd39
commit 215677c972
8 changed files with 30 additions and 6 deletions

View File

@ -37,6 +37,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
*/ */
class Contact extends CommonObject class Contact extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='contact'; public $element='contact';
/** /**

View File

@ -41,6 +41,9 @@ require_once DOL_DOCUMENT_ROOT . '/margin/lib/margins.lib.php';
*/ */
class Contrat extends CommonObject class Contrat extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='contrat'; public $element='contrat';
/** /**
@ -2458,7 +2461,10 @@ class Contrat extends CommonObject
*/ */
class ContratLigne extends CommonObjectLine class ContratLigne extends CommonObjectLine
{ {
public $element='contratdet'; /**
* @var string ID to identify managed object
*/
public $element='contratdet';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -4,7 +4,10 @@
*/ */
class Comment extends CommonObject class Comment extends CommonObject
{ {
public $element='comment'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='comment';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -64,7 +64,7 @@ abstract class CommonObject
public $errors=array(); public $errors=array();
/** /**
* @var string * @var string ID to identify managed object
*/ */
public $element; public $element;

View File

@ -34,7 +34,10 @@
*/ */
class Events // extends CommonObject class Events // extends CommonObject
{ {
public $element='events'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='events';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -28,6 +28,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
*/ */
class Fiscalyear extends CommonObject class Fiscalyear extends CommonObject
{ {
/**
* @var string ID to identify managed object
*/
public $element='fiscalyear'; public $element='fiscalyear';
/** /**

View File

@ -28,7 +28,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
*/ */
class Link extends CommonObject class Link extends CommonObject
{ {
public $element = 'link'; /**
* @var string ID to identify managed object
*/
public $element = 'link';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored

View File

@ -30,7 +30,10 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php";
*/ */
class Cronjob extends CommonObject class Cronjob extends CommonObject
{ {
public $element='cronjob'; //!< Id that identify managed objects /**
* @var string ID to identify managed object
*/
public $element='cronjob';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored