2012-04-24 01:54:49 +04:00
|
|
|
<?php
|
|
|
|
|
2012-09-06 01:28:59 +04:00
|
|
|
//require_once 'files_versions/versions.php';
|
2013-03-02 15:26:13 +04:00
|
|
|
OC::$CLASSPATH['OCA\Files_Versions\Storage'] = 'files_versions/lib/versions.php';
|
|
|
|
OC::$CLASSPATH['OCA\Files_Versions\Hooks'] = 'files_versions/lib/hooks.php';
|
2013-03-09 04:04:33 +04:00
|
|
|
OC::$CLASSPATH['OCA\Files_Versions\Capabilities'] = 'files_versions/lib/capabilities.php';
|
2012-04-24 01:54:49 +04:00
|
|
|
|
2012-05-01 22:03:41 +04:00
|
|
|
OCP\Util::addscript('files_versions', 'versions');
|
2013-07-25 12:35:19 +04:00
|
|
|
OCP\Util::addStyle('files_versions', 'versions');
|
2012-04-24 01:54:49 +04:00
|
|
|
|
|
|
|
// Listen to write signals
|
2012-09-19 22:59:57 +04:00
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'write', "OCA\Files_Versions\Hooks", "write_hook");
|
2012-06-28 16:06:20 +04:00
|
|
|
// Listen to delete and rename signals
|
2013-02-18 14:19:40 +04:00
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'post_delete', "OCA\Files_Versions\Hooks", "remove_hook");
|
2013-11-28 16:17:19 +04:00
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA\Files_Versions\Hooks", "pre_remove_hook");
|
2012-09-19 22:59:57 +04:00
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'rename', "OCA\Files_Versions\Hooks", "rename_hook");
|
2013-04-11 14:36:08 +04:00
|
|
|
//Listen to delete user signal
|
|
|
|
OCP\Util::connectHook('OC_User', 'pre_deleteUser', "OCA\Files_Versions\Hooks", "deleteUser_hook");
|