mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix regression in php style
This commit is contained in:
parent
b648a28893
commit
ee204e2e64
|
|
@ -34,27 +34,27 @@ class AccountancyCategory // extends CommonObject
|
|||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
|
||||
/**
|
||||
* @var string Error string
|
||||
* @see errors
|
||||
*/
|
||||
public $error;
|
||||
|
||||
|
||||
/**
|
||||
* @var string[] Error codes (or messages)
|
||||
*/
|
||||
public $errors = array();
|
||||
|
||||
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='c_accounting_category';
|
||||
|
||||
public $element='c_accounting_category';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='c_accounting_category';
|
||||
public $table_element='c_accounting_category';
|
||||
|
||||
public $id;
|
||||
public $code;
|
||||
|
|
|
|||
|
|
@ -31,12 +31,12 @@
|
|||
class AccountingAccount extends CommonObject
|
||||
{
|
||||
public $element='accounting_account';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='accounting_account';
|
||||
|
||||
|
||||
public $picto = 'billr';
|
||||
|
||||
/**
|
||||
|
|
@ -44,7 +44,7 @@ class AccountingAccount extends CommonObject
|
|||
* @var int
|
||||
*/
|
||||
public $ismultientitymanaged = 1;
|
||||
|
||||
|
||||
/**
|
||||
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
|
||||
* @var integer
|
||||
|
|
@ -55,22 +55,22 @@ class AccountingAccount extends CommonObject
|
|||
* @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 int ID
|
||||
*/
|
||||
public $id;
|
||||
|
||||
|
||||
var $rowid;
|
||||
var $datec; // Creation date
|
||||
var $fk_pcg_version;
|
||||
|
|
@ -79,12 +79,12 @@ class AccountingAccount extends CommonObject
|
|||
var $account_number;
|
||||
var $account_parent;
|
||||
var $account_category;
|
||||
|
||||
|
||||
/**
|
||||
* @var string proper name for given parameter
|
||||
*/
|
||||
public $label;
|
||||
|
||||
|
||||
var $fk_user_author;
|
||||
var $fk_user_modif;
|
||||
var $active; // duplicate with status
|
||||
|
|
|
|||
|
|
@ -45,12 +45,12 @@ class Adherent extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='member';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='adherent';
|
||||
|
||||
|
||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
var $mesgs;
|
||||
|
|
@ -542,10 +542,10 @@ class Adherent extends CommonObject
|
|||
$luser->birth=$this->birth;
|
||||
$luser->address=$this->address;
|
||||
$luser->zip=$this->zip;
|
||||
$luser->town=$this->town;
|
||||
$luser->country_id=$this->country_id;
|
||||
$luser->town=$this->town;
|
||||
$luser->country_id=$this->country_id;
|
||||
$luser->state_id=$this->state_id;
|
||||
|
||||
|
||||
$luser->email=$this->email;
|
||||
$luser->skype=$this->skype;
|
||||
$luser->office_phone=$this->phone;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class FormAdvTargetEmailing extends Form
|
|||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
|
||||
/**
|
||||
* @var string Error code (or message)
|
||||
*/
|
||||
|
|
@ -378,10 +378,10 @@ class FormAdvTargetEmailing extends Form
|
|||
/**
|
||||
* Return combo list of categories
|
||||
*
|
||||
* @param string $htmlname Name of categorie
|
||||
* @param array $selected_array value selected
|
||||
* @param int $type type
|
||||
* @return string HTML combo
|
||||
* @param string $htmlname Name of categorie
|
||||
* @param array $selected_array Value selected
|
||||
* @param int $type Type
|
||||
* @return string HTML combo
|
||||
*/
|
||||
public function multiselectCategories($htmlname='',$selected_array = array(), $type=0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -32,13 +32,13 @@ class Localtax extends CommonObject
|
|||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='localtax';
|
||||
|
||||
public $element='localtax';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='localtax';
|
||||
|
||||
|
||||
public $picto='payment';
|
||||
|
||||
var $ltt;
|
||||
|
|
@ -46,12 +46,12 @@ class Localtax extends CommonObject
|
|||
var $datep;
|
||||
var $datev;
|
||||
var $amount;
|
||||
|
||||
|
||||
/**
|
||||
* @var string proper name for given parameter
|
||||
*/
|
||||
public $label;
|
||||
|
||||
|
||||
var $fk_bank;
|
||||
var $fk_user_creat;
|
||||
var $fk_user_modif;
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@ class PaymentSalary extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='payment_salary';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='payment_salary';
|
||||
|
||||
public $table_element='payment_salary';
|
||||
|
||||
public $picto='payment';
|
||||
|
||||
public $tms;
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@ class PaymentSocialContribution extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='paiementcharge';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='paiementcharge';
|
||||
|
||||
public $table_element='paiementcharge';
|
||||
|
||||
public $picto = 'payment';
|
||||
|
||||
var $fk_charge;
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@ class Comment extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='comment';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='comment';
|
||||
public $table_element='comment';
|
||||
|
||||
public $fk_element;
|
||||
public $element_type;
|
||||
|
|
|
|||
|
|
@ -38,17 +38,17 @@ class Events // extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='events';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='events';
|
||||
public $table_element='events';
|
||||
|
||||
/**
|
||||
* @var int ID
|
||||
*/
|
||||
public $id;
|
||||
|
||||
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -31,13 +31,13 @@ class Menubase
|
|||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
public $db;
|
||||
|
||||
/**
|
||||
* @var string Error code (or message)
|
||||
*/
|
||||
public $error;
|
||||
|
||||
|
||||
/**
|
||||
* @var string[] Error codes (or messages)
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -34,12 +34,12 @@ class Cronjob extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='cronjob';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='cronjob';
|
||||
|
||||
public $table_element='cronjob';
|
||||
|
||||
public $picto = 'cron';
|
||||
|
||||
public $entity;
|
||||
|
|
|
|||
|
|
@ -32,13 +32,13 @@ class PaymentDonation extends CommonObject
|
|||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='payment_donation';
|
||||
|
||||
public $element='payment_donation';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='payment_donation';
|
||||
|
||||
|
||||
public $picto = 'payment';
|
||||
|
||||
public $rowid;
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ class ExpeditionLineBatch extends CommonObject
|
|||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='expeditionlignebatch';
|
||||
|
||||
public $element='expeditionlignebatch';
|
||||
|
||||
private static $_table_element='expeditiondet_batch'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $sellby;
|
||||
|
|
|
|||
|
|
@ -37,12 +37,12 @@ class ExpenseReport extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='expensereport';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='expensereport';
|
||||
|
||||
|
||||
var $table_element_line = 'expensereport_det';
|
||||
var $fk_element = 'fk_expensereport';
|
||||
var $picto = 'trip';
|
||||
|
|
@ -2390,7 +2390,7 @@ class ExpenseReportLine
|
|||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
|
||||
/**
|
||||
* @var string Error code (or message)
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -44,22 +44,22 @@ class CommandeFournisseur extends CommonOrder
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='order_supplier';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='commande_fournisseur';
|
||||
|
||||
|
||||
public $table_element_line = 'commande_fournisseurdet';
|
||||
public $fk_element = 'fk_commande';
|
||||
public $picto='order';
|
||||
|
||||
|
||||
/**
|
||||
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
* @var int
|
||||
*/
|
||||
public $ismultientitymanaged = 1;
|
||||
|
||||
|
||||
/**
|
||||
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
|
||||
* @var integer
|
||||
|
|
@ -78,7 +78,7 @@ class CommandeFournisseur extends CommonOrder
|
|||
* @var string
|
||||
*/
|
||||
public $ref;
|
||||
|
||||
|
||||
public $ref_supplier;
|
||||
public $brouillon;
|
||||
public $statut; // 0=Draft -> 1=Validated -> 2=Approved -> 3=Ordered/Process runing -> 4=Received partially -> 5=Received totally -> (reopen) 4=Received partially
|
||||
|
|
@ -3099,7 +3099,7 @@ class CommandeFournisseurLigne extends CommonOrderLine
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='commande_fournisseurdet';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -37,23 +37,23 @@ class CommandeFournisseurDispatch extends CommonObject
|
|||
/**
|
||||
* @var DoliDB Database handler.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
public $db;
|
||||
|
||||
/**
|
||||
* @var string Error code (or message)
|
||||
*/
|
||||
public $error;
|
||||
|
||||
|
||||
/**
|
||||
* @var string[] Error codes (or messages)
|
||||
*/
|
||||
public $errors = array();
|
||||
|
||||
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='commandefournisseurdispatch';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ class Loan extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='loan';
|
||||
|
||||
|
||||
public $table='loan';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
/**
|
||||
* \file htdocs/loan/class/loanschedule.class.php
|
||||
* \ingroup facture
|
||||
* \ingroup loan
|
||||
* \brief File of class to manage schedule of loans
|
||||
*/
|
||||
|
||||
|
|
@ -33,11 +33,11 @@ class LoanSchedule extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='loan_schedule';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='loan_schedule';
|
||||
public $table_element='loan_schedule';
|
||||
|
||||
var $fk_loan;
|
||||
var $datec='';
|
||||
|
|
|
|||
|
|
@ -34,11 +34,11 @@ class PaymentLoan extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='payment_loan';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='payment_loan';
|
||||
public $table_element='payment_loan';
|
||||
|
||||
var $fk_loan;
|
||||
var $datec='';
|
||||
|
|
|
|||
|
|
@ -38,12 +38,12 @@ class Opensurveysondage extends CommonObject
|
|||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='opensurvey_sondage';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='opensurvey_sondage';
|
||||
|
||||
public $table_element='opensurvey_sondage';
|
||||
|
||||
public $picto = 'opensurvey';
|
||||
|
||||
public $id_sondage;
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ class Productbatch extends CommonObject
|
|||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='productbatch';
|
||||
|
||||
public $element='productbatch';
|
||||
|
||||
private static $_table_element='product_batch'; //!< Name of table without prefix where object is stored
|
||||
|
||||
var $tms='';
|
||||
|
|
|
|||
|
|
@ -31,13 +31,13 @@ class Productcustomerprice extends CommonObject
|
|||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element = 'product_customer_price';
|
||||
|
||||
public $element = 'product_customer_price';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element = 'product_customer_price';
|
||||
|
||||
public $table_element = 'product_customer_price';
|
||||
|
||||
var $entity;
|
||||
var $datec = '';
|
||||
var $tms = '';
|
||||
|
|
@ -962,7 +962,7 @@ class PriceByCustomerLine
|
|||
* @var int ID
|
||||
*/
|
||||
public $id;
|
||||
|
||||
|
||||
var $entity;
|
||||
var $datec = '';
|
||||
var $tms = '';
|
||||
|
|
|
|||
|
|
@ -34,12 +34,12 @@ class Propalmergepdfproduct extends CommonObject
|
|||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='propal_merge_pdf_product';
|
||||
|
||||
public $element='propal_merge_pdf_product';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='propal_merge_pdf_product';
|
||||
public $table_element='propal_merge_pdf_product';
|
||||
|
||||
var $fk_product;
|
||||
var $file_name;
|
||||
|
|
|
|||
|
|
@ -36,13 +36,13 @@ class Project extends CommonObject
|
|||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element = 'project';
|
||||
|
||||
public $element = 'project';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element = 'projet';
|
||||
|
||||
public $table_element = 'projet';
|
||||
|
||||
public $table_element_line = 'projet_task';
|
||||
public $fk_element = 'fk_projet';
|
||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
|
@ -732,10 +732,10 @@ class Project extends CommonObject
|
|||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Delete tasks with no children first, then task with children recursively
|
||||
*
|
||||
*
|
||||
* @param User $user User
|
||||
* @return int <0 if KO, 1 if OK
|
||||
*/
|
||||
|
|
@ -763,7 +763,7 @@ class Project extends CommonObject
|
|||
{
|
||||
if (count($this->lines)) $this->deleteTasks($this->lines);
|
||||
}
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,24 +34,24 @@ class Task extends CommonObject
|
|||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='project_task';
|
||||
|
||||
public $element='project_task';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='projet_task';
|
||||
|
||||
public $table_element='projet_task';
|
||||
|
||||
public $fk_element='fk_task';
|
||||
public $picto = 'task';
|
||||
protected $childtables=array('projet_task_time'); // To test if we can delete object
|
||||
|
||||
var $fk_task_parent;
|
||||
|
||||
|
||||
/**
|
||||
* @var string proper name for given parameter
|
||||
*/
|
||||
public $label;
|
||||
|
||||
|
||||
var $description;
|
||||
var $duration_effective; // total of time spent on this task
|
||||
var $planned_workload;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
* \file resource/class/resource.class.php
|
||||
* \ingroup resource
|
||||
* \brief Class file for resource object
|
||||
|
||||
*/
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php";
|
||||
|
|
@ -33,13 +32,13 @@ class Dolresource extends CommonObject
|
|||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='dolresource';
|
||||
|
||||
public $element='dolresource';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='resource';
|
||||
|
||||
public $table_element='resource';
|
||||
|
||||
public $picto = 'resource';
|
||||
|
||||
public $resource_id;
|
||||
|
|
|
|||
|
|
@ -36,22 +36,22 @@ class Ticketlogs// extends CommonObject
|
|||
* @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 = 'ticketlogs';
|
||||
|
||||
public $element = 'ticketlogs';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user