server/apps/files_versions/appinfo/app.php

16 lines
708 B
PHP
Raw Normal View History

<?php
2012-09-05 21:28:59 +00:00
//require_once 'files_versions/versions.php';
OC::$CLASSPATH['OCA_Versions\Storage'] = 'apps/files_versions/lib/versions.php';
OC::$CLASSPATH['OCA_Versions\Hooks'] = 'apps/files_versions/lib/hooks.php';
2012-05-01 22:50:26 +00:00
OCP\App::registerAdmin('files_versions', 'settings');
2012-11-04 10:10:46 +00:00
OCP\App::registerPersonal('files_versions', 'settings-personal');
2012-05-01 18:03:41 +00:00
OCP\Util::addscript('files_versions', 'versions');
// Listen to write signals
OCP\Util::connectHook('OC_Filesystem', 'write', "OCA_Versions\Hooks", "write_hook");
// Listen to delete and rename signals
OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA_Versions\Hooks", "remove_hook");
OCP\Util::connectHook('OC_Filesystem', 'rename', "OCA_Versions\Hooks", "rename_hook");