2012-04-24 01:54:49 +04:00
|
|
|
<?php
|
|
|
|
|
2012-09-06 01:28:59 +04:00
|
|
|
//require_once 'files_versions/versions.php';
|
2012-07-03 20:42:51 +04:00
|
|
|
OC::$CLASSPATH['OCA_Versions\Storage'] = 'apps/files_versions/lib/versions.php';
|
|
|
|
OC::$CLASSPATH['OCA_Versions\Hooks'] = 'apps/files_versions/lib/hooks.php';
|
2012-04-24 01:54:49 +04:00
|
|
|
|
2012-05-02 02:50:26 +04:00
|
|
|
OCP\App::registerAdmin('files_versions', 'settings');
|
2012-11-04 14:10:46 +04:00
|
|
|
OCP\App::registerPersonal('files_versions', 'settings-personal');
|
2012-06-20 21:25:12 +04:00
|
|
|
|
2012-05-01 22:03:41 +04:00
|
|
|
OCP\Util::addscript('files_versions', 'versions');
|
2012-04-24 01:54:49 +04:00
|
|
|
|
|
|
|
// Listen to write signals
|
2012-12-17 00:08:18 +04:00
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'write', "OCA_Versions\Hooks", "write_hook");
|
2012-06-28 16:06:20 +04:00
|
|
|
// Listen to delete and rename signals
|
2012-07-05 13:35:08 +04:00
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA_Versions\Hooks", "remove_hook");
|
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'rename', "OCA_Versions\Hooks", "rename_hook");
|