Standardize and update code

This commit is contained in:
Philippe GRAND 2018-08-23 18:52:47 +02:00
parent 87067b2bc9
commit 30992f2730
8 changed files with 34 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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';
/**

View File

@ -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

View File

@ -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
*/

View File

@ -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';
/**

View File

@ -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';
/**