/**
 *   @copyright Copyright (c) 2011 Quality Unit s.r.o.
 *   @author Juraj Simon
 *   @package PostAffiliatePro
 *
 *   Licensed under the Quality Unit, s.r.o. Standard End User License Agreement,
 *   Version 1.0 (the "License"); you may not use this file except in compliance
 *   with the License. You may obtain a copy of the License at
 *   http://www.qualityunit.com/licenses/license
 */
 
This plugin shows which hooks you can use to maintain user inserts/updates or deletions.

Lets imagine few possible scenarios where you can use this:
- new user signup (successfull or fail - two different possibilities)
- new user creation through API
- new user creation through application (merchant panel)
- user profile updated (through application - merchant or affiliate panel)
- user profile updated throught API
- user was deleted
 
Hooks (see plugin classes for description of current hooks) that are called on different scenarios:
1.1 new user signup - successfull
- PostAffiliate.User.beforeSave
- PostAffiliate.User.afterInsert
- PostAffiliate.signup.after

1.2 new user signup - fail
- PostAffiliate.User.beforeSave
- PostAffiliate.signup.afterFail

2. new user creation through API
- PostAffiliate.User.beforeSave
- PostAffiliate.User.afterInsert

3. new user creation through application (merchant panel)
- PostAffiliate.User.beforeSave
- PostAffiliate.User.afterInsert

4. user profile updated (through application - merchant or affiliate panel)
- PostAffiliate.User.beforeSave
- PostAffiliate.User.afterSave

5. user profile updated throught API
- PostAffiliate.User.beforeSave
- PostAffiliate.User.afterSave

6. user was deleted
- PostAffiliate.User.afterDelete 