Procedural File: tNG_defTrigg.inc.php
Source Location: /tNG3/triggers/tNG_defTrigg.inc.php
Page Details:
Trigger_Activation_Check [line 442]
Verify if the user is activated or if it can be acitvate; if so it will trigger an error;
if not, it register the Trigger_Activation_Login to the transaction on AFTER;
Tags:
Parameters
Trigger_Activation_Login [line 505]
nothing Trigger_Activation_Login(
object tNG &$tNG)
set the kt_login_redirect value in the transaction
Tags:
Parameters
Trigger_Default_FormValidation [line 49]
Default Form Validation trigger
execute the unival object and return the result Type: BEFORE
Tags:
Parameters
Trigger_Default_Insert_RollBack [line 62]
null Trigger_Default_Insert_RollBack(
object tNG &$tNG)
Default Insert RollBack trigger
Type: ERROR Delete the inserted record on an insert transaction
Tags:
Parameters
Trigger_Default_Redirect [line 33]
mix Trigger_Default_Redirect(
object tNG &$tNG, string $page)
Default Redirect trigger
Type: ERROR
Tags:
Parameters
object tNG
&$tNG
transaction object
string
$page
the url to use for redirect
Trigger_Default_RollBack [line 80]
null Trigger_Default_RollBack(
object tNG &$tNG, object reference &$obj)
Default RollBack trigger
Type: ERROR
Tags:
Parameters
object tNG
&$tNG
transaction object
object reference
&$obj
to an object that implement a Rollback method;
Trigger_Default_saveData [line 91]
Saves the SQL data to be altered in a local variable ($savedData)
Tags:
Parameters
Trigger_Default_Starter [line 17]
nothing Trigger_Default_Starter(
object tNG &$tNG, string $method, string $reference)
Default Starter trigger Verifies if additional parameters are set and if not invalidate the transaction this is usefull for verifying some global variables.
Type: STARTER
Tags:
Parameters
object tNG
&$tNG
transaction object
string
$method
method name
string
$reference
reference value
Trigger_ForgotPassword_AddDynamicFields [line 593]
nothing Trigger_ForgotPassword_AddDynamicFields(
object tNG &$tNG)
Add these fields/values to transaction: kt_login_user, kt_login_password, kt_login_page, kt_login_redirect;
Register the trigger Trigger_ForgotPassword_RemoveDynamicFields on ERROR
Tags:
Parameters
Trigger_ForgotPassword_CheckEmail [line 530]
mix Trigger_ForgotPassword_CheckEmail(
object tNG &$tNG)
Verify if the email address entered by the user exists, the account is active and then add to transaction a new password value for the password field;
if no error, register the trigger Trigger_ForgotPassword_AddDynamicFields to transaction on AFTER; if not, it register the Trigger_Activation_Login to the transaction on AFTER;
Tags:
Parameters
Trigger_ForgotPassword_RemoveDynamicFields [line 614]
nothing Trigger_ForgotPassword_RemoveDynamicFields(
object tNG &$tNG)
Unset these fields from the transaction: kt_login_user, kt_login_password, kt_login_redirect;
Tags:
Parameters
Trigger_Login_AddDynamicFields [line 174]
nothing Trigger_Login_AddDynamicFields(
object tNG &$tNG)
Add the login user related columns setted on control panel to the transaction;
Tags:
Parameters
Trigger_Login_AutoLogin [line 283]
nothing Trigger_Login_AutoLogin(
object tNG &$tNG)
Unset existent cookie related to user login and set them for future use;
Tags:
Parameters
Trigger_Login_CheckLogin [line 101]
Login trigger. Check if the user has the proper credentials or autolog on the user based on the cookie;
Tags:
Parameters
Trigger_Login_CheckUserActive [line 151]
mix Trigger_Login_CheckUserActive(
object tNG &$tNG)
Check if an user is active Trigger
Tags:
Parameters
Trigger_Login_SaveDataToSession [line 250]
nothing Trigger_Login_SaveDataToSession(
object tNG &$tNG)
Register the values set in control panel related to user login to session;
Tags:
Parameters
Trigger_Registration_AddDynamicFields [line 392]
nothing Trigger_Registration_AddDynamicFields(
object tNG &$tNG)
Add some fields to a login transaction, if they are defined in control panel;
fields could be: kt_login_user, kt_login_password, kt_login_email, kt_activation_page, kt_login_page, kt_login_redirect
Tags:
Parameters
Trigger_Registration_CheckPassword [line 332]
nothing Trigger_Registration_CheckPassword(
object tNG &$tNG)
Autogenerate a password of 6 chars if it si not already set;
Tags:
Parameters
Trigger_Registration_CheckUniqueUsername [line 317]
mix Trigger_Registration_CheckUniqueUsername(
object tNG &$tNG)
check if the username is unique;
Tags:
Parameters
Trigger_Registration_EncryptPassword [line 347]
nothing Trigger_Registration_EncryptPassword(
object tNG &$tNG)
Encript the password value;
Tags:
Parameters
Trigger_Registration_PrepareActivation [line 361]
nothing Trigger_Registration_PrepareActivation(
object tNG &$tNG)
add activation column and random key column if these are set in the control panel;
Tags:
Parameters
Trigger_Registration_RestorePassword [line 379]
nothing Trigger_Registration_RestorePassword(
object tNG &$tNG)
Put the old password value for the password column in transaction;
Tags:
Parameters
Trigger_UpdatePassword_AddPassword [line 724]
nothing Trigger_UpdatePassword_AddPassword(
object tNG &$tNG)
If the password column was removed from the transaction fields, it will set the column/value again in transaction;
Tags:
Parameters
Trigger_UpdatePassword_CheckOldPassword [line 638]
mix Trigger_UpdatePassword_CheckOldPassword(
object tNG &$tNG)
Check the old password in the database; In case of error return an error object;
If no error and the old password match the password entered by the user return null;
Tags:
Parameters
Trigger_UpdatePassword_EncryptPassword [line 689]
nothing Trigger_UpdatePassword_EncryptPassword(
object tNG &$tNG)
Verify if the password is kept encrypted in DB; if so save the value in a kt_login_password and then overwrite the value of the password from the transaction fields with the ecrypted one;
Tags:
Parameters
Trigger_UpdatePassword_RemoveOldPassword [line 756]
nothing Trigger_UpdatePassword_RemoveOldPassword(
object tNG &$tNG)
Remove is is setted the old passwoed field from transaction;
Tags:
Parameters
Trigger_UpdatePassword_RemovePassword [line 707]
nothing Trigger_UpdatePassword_RemovePassword(
object tNG &$tNG)
Save the value in a kt_login_password and remove the password field from the transaction fields;
Tags:
Parameters
Trigger_UpdatePassword_RestorePassword [line 738]
nothing Trigger_UpdatePassword_RestorePassword(
object tNG &$tNG)
Set the value for the password field from transaction to the value saved in kt_login_password;
Tags:
Parameters
Trigger_Update_RefreshSession [line 770]
nothing Trigger_Update_RefreshSession(
object tNG &$tNG)
Update in session the values related to user login;
Tags:
Parameters