Changes

Line 1: Line 1:  
= Using Business objects =
 
= Using Business objects =
It is possible to use business objects Dolibarr (xxx.class.php files). Each of these files has provided a class of methods for:
  −
* recovery of an entity (the fetch method)
  −
* insertion into database of an entity (the create method or insert)
  −
* updating an entity (the update method)
  −
* deletion of an entity (the delete method) if applicable to the object
  −
* various other methods specific to the entity manipulated.
  −
  −
This technique is better than first one.
  −
  −
'''Advantages:''' It offers the advantage of passing through layers of data validation business. The interface code should normally not be rewritten when upgrading version Dolibarr.
  −
  −
'''Disadvantages:''' It is usable in PHP only. Your code must be stored on same server than Dolibarr files.
      
== Example for a third party ==
 
== Example for a third party ==