1 | <?php |
||
11 | class DX_Auth_Event |
||
12 | { |
||
13 | |||
14 | var $ci; |
||
15 | |||
16 | public function __construct() { |
||
19 | |||
20 | // If DX_email_activation in config is TRUE, |
||
21 | // this event occurs after user succesfully activated using specified key in their email. |
||
22 | // If DX_email_activation in config is FALSE, |
||
23 | // this event occurs right after user succesfully registered. |
||
24 | |||
25 | public function user_activated($user_id) { |
||
32 | |||
33 | // This event occurs right after user login |
||
34 | |||
35 | public function user_logged_in($user_id) { |
||
38 | |||
39 | // This event occurs right before user logout |
||
40 | |||
41 | public function user_logging_out($user_id) { |
||
44 | |||
45 | // This event occurs right after user change password |
||
46 | |||
47 | public function user_changed_password($user_id, $new_password) { |
||
50 | |||
51 | // This event occurs right before user account is canceled |
||
52 | |||
53 | public function user_canceling_account($user_id) { |
||
60 | |||
61 | // This event occurs when check_uri_permissions() function in DX_Auth is called |
||
62 | // after checking if user role is allowed or not to access URI, this event will be triggered |
||
63 | // $allowed is result of the check before, it's possible to alter the value since it's passed by reference |
||
64 | |||
65 | public function checked_uri_permissions($user_id, &$allowed) { |
||
68 | |||
69 | // This event occurs when get_permission_value() function in DX_Auth is called |
||
70 | |||
71 | public function got_permission_value($user_id, $key) { |
||
74 | |||
75 | // This event occurs when get_permissions_value() function in DX_Auth is called |
||
76 | |||
77 | public function got_permissions_value($user_id, $key) { |
||
80 | |||
81 | // This event occurs right before dx auth send email with account details |
||
82 | // $data is an array, containing username, password, email and last ip |
||
83 | // $content is email content, passed by reference |
||
84 | // You can customize email content here |
||
85 | |||
86 | public function sending_account_email($data, &$content) { |
||
93 | |||
94 | // This event occurs right before dx auth send activation email |
||
95 | // $data is an array, containing username, password, email, last ip, activation_key, activate_url |
||
96 | // $content is email content, passed by reference |
||
97 | // You can customize email content here |
||
98 | |||
99 | public function sending_activation_email($data, &$content) { |
||
103 | |||
104 | // This event occurs right before dx auth send forgot password request email |
||
105 | // $data is an array, containing password, key, and reset_password_uri |
||
106 | // $content is email content, passed by reference |
||
107 | // You can customize email content here |
||
108 | |||
109 | public function sending_forgot_password_email($data, &$content) { |
||
125 | |||
126 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.