Triggers system: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 66: Line 66:


= List of known triggers actions =
= List of known triggers actions =
List of all events that launch triggers are available in [[Table llx c action trigger]]. This is a quick list of those events, identified by value of variable '''$action''' into trigger code:
List of all events that launch triggers are available in [[Table llx c action trigger]]. This is a quick list of those events, identified by value of variable '''$action''' into trigger code and type of variable $object for each code:


* USER_CREATE
{{TemplateListOfTriggers}}
* USER_MODIFY
* USER_DISABLE
In such cases, the variable $object contains an object of type user.class.php
 
* COMPANY_CREATE
* COMPANY_MODIFY
* COMPANY_DELETE
In such cases, the variable $object contains an object of type societe.class.php
 
* PRODUCT_CREATE
* PRODUCT_MODIFY
* PRODUCT_DELETE
In such cases, the variable $object contains an object of type product.class.php
 
* ORDER_CREATE
* ORDER_VALIDATE
* ORDER_DELETE
In such cases, the variable $object contains an object of type commande.class.php
 
* ORDER_SUPPLIER_CREATE
* ORDER_SUPPLIER_VALIDATE
In such cases, the variable $object contains an object of type fournisseur.commande.class.php
 
* PROPAL_CREATE
* PROPAL_MODIFY
* PROPAL_VALIDATE
* PROPAL_CLOSE_SIGNED
* PROPAL_CLOSE_REFUSED
In such cases, the variable $object contains an object of type societe.class.php
 
* CONTRACT_CREATE
* CONTRACT_MODIFY
* CONTRACT_ACTIVATE
* CONTRACT_CANCEL
* CONTRACT_CLOSE
* CONTRACT_DELETE
In such cases, the variable $object contains an object of type contract.class.php
 
* BILL_CREATE
* BILL_MODIFY
* BILL_VALIDATE
* BILL_CANCEL
* BILL_DELETE
In such cases, the variable $object contains an object of type facture.class.php
 
* PAYMENT_CUSTOMER_CREATE
In such cases, the variable $object contains an object of type paiement.class.php
 
* PAYMENT_SUPPLIER_CREATE
In such cases, the variable $object contains an object of type paiementfourn.class.php
 
* FICHEINTER_VALIDATE
In such cases, the variable $object contains an object of type ficheinter.class.php
 
* MEMBER_CREATE
* MEMBER_VALIDATE
* MEMBER_SUBSCRIPTION
* MEMBER_MODIFY
* MEMBER_RESILIATE
* MEMBER_DELETE
In such cases, the variable $object contains an object of type adherent.class.php
 
* CATEGORY_CREATE
* CATEGORY_MODIFY
* CATEGORY_DELETE
In such cases, the variable $object contains an object of type category.class.php
 
* SHIPPING_VALIDATE
* SHIPPING_MODIFY
In such cases, the variable $object contains an object of type expedition.class.php


= Manage and create a new trigger's action =
= Manage and create a new trigger's action =

Navigation menu