Interfaces from foreign systems toward Dolibarr: Difference between revisions

Jump to navigation Jump to search
m
Line 57: Line 57:
</source>
</source>
This will create objects $db, $lang and $user.
This will create objects $db, $lang and $user.
If we want that actions (create, update), are tagged with a particular user as the create/update user, you must do after the include of master.inc.php and before callong the create or update methode
If we want that actions (create, update), are tagged with a particular user as the create/update user, you must do after the include of master.inc.php and before calling the create or update method
<source lang="php">
<source lang="php">
$user->fetch('loginuser');
$user->fetch('loginuser');
</source>
</source>

Navigation menu