| | |
| | | var $class_name = 'database_module'; |
| | | var $actions_available = array( 'database_insert', |
| | | 'database_update', |
| | | 'database_delete' |
| | | 'database_delete', |
| | | 'database_user_insert', |
| | | 'database_user_update', |
| | | 'database_user_delete' |
| | | ); |
| | | |
| | | //* This function is called during ispconfig installation to determine |
| | |
| | | */ |
| | | |
| | | $app->modules->registerTableHook('web_database','database_module','process'); |
| | | //$app->modules->registerTableHook('web_database_user','database_module','process'); |
| | | $app->modules->registerTableHook('web_database_user','database_module','process'); |
| | | |
| | | // Register service |
| | | //$app->services->registerService('httpd','web_module','restartHttpd'); |
| | |
| | | if($action == 'u') $app->plugins->raiseEvent('database_update',$data); |
| | | if($action == 'd') $app->plugins->raiseEvent('database_delete',$data); |
| | | break; |
| | | /* |
| | | |
| | | case 'web_database_user': |
| | | if($action == 'i') $app->plugins->raiseEvent('database_user_insert',$data); |
| | | if($action == 'u') $app->plugins->raiseEvent('database_user_update',$data); |
| | | if($action == 'd') $app->plugins->raiseEvent('database_user_delete',$data); |
| | | break; |
| | | */ |
| | | |
| | | } // end switch |
| | | } // end function |
| | | |