Standardize code
This commit is contained in:
parent
d110292a1b
commit
b0f0285137
@ -494,6 +494,21 @@ class Orders extends DolibarrApi
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clean sensible object datas
|
||||||
|
*
|
||||||
|
* @param object $object Object to clean
|
||||||
|
* @return array Array of cleaned object properties
|
||||||
|
*/
|
||||||
|
function _cleanObjectDatas($object) {
|
||||||
|
|
||||||
|
$object = parent::_cleanObjectDatas($object);
|
||||||
|
|
||||||
|
unset($object->address);
|
||||||
|
|
||||||
|
return $object;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate fields before create or update object
|
* Validate fields before create or update object
|
||||||
*
|
*
|
||||||
|
|||||||
@ -116,7 +116,6 @@ class Commande extends CommonOrder
|
|||||||
|
|
||||||
public $demand_reason_id; // Source reason. Why we receive order (after a phone campaign, ...)
|
public $demand_reason_id; // Source reason. Why we receive order (after a phone campaign, ...)
|
||||||
public $demand_reason_code;
|
public $demand_reason_code;
|
||||||
public $address;
|
|
||||||
public $date; // Date commande
|
public $date; // Date commande
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
|
|||||||
@ -272,6 +272,23 @@ class Users extends DolibarrApi
|
|||||||
return $this->useraccount->delete($id);
|
return $this->useraccount->delete($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clean sensible object datas
|
||||||
|
*
|
||||||
|
* @param object $object Object to clean
|
||||||
|
* @return array Array of cleaned object properties
|
||||||
|
*/
|
||||||
|
function _cleanObjectDatas($object) {
|
||||||
|
|
||||||
|
$object = parent::_cleanObjectDatas($object);
|
||||||
|
|
||||||
|
unset($object->default_values);
|
||||||
|
unset($object->lastsearch_values);
|
||||||
|
unset($object->lastsearch_values_tmp);
|
||||||
|
|
||||||
|
return $object;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate fields before create or update object
|
* Validate fields before create or update object
|
||||||
*
|
*
|
||||||
|
|||||||
@ -110,6 +110,8 @@ class User extends CommonObject
|
|||||||
|
|
||||||
public $conf; // To store personal config
|
public $conf; // To store personal config
|
||||||
public $default_values; // To store default values for user
|
public $default_values; // To store default values for user
|
||||||
|
public $lastsearch_values_tmp; // To store current search criterias for user
|
||||||
|
public $lastsearch_values; // To store last saved search criterias for user
|
||||||
|
|
||||||
public $users; // To store all tree of users hierarchy
|
public $users; // To store all tree of users hierarchy
|
||||||
public $parentof; // To store an array of all parents for all ids.
|
public $parentof; // To store an array of all parents for all ids.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user