Dolibarr/dolibarr — pull request #1686 by KreizIT (2014-06-25 14:56:03+00:00)
Title: Fix [ bug #1459 ] 

It's also a starting point for refactoring trigger call from within object.

If you need to call within object inherit from commonobject class just call:
$result = $this->call_trigger($triger_name, $user)
and do what you need/must do if trigger fail