I am registering the following Hooks
Util::connectHook(âOC_Filesystemâ, âpost_createâ, âOCA\BoxLogging\Hooks\LoggingHooksâ, âfileCreateâ);
Util::connectHook(âOC_Filesystemâ, âpost_updateâ, âOCA\BoxLogging\Hooks\LoggingHooksâ, âfileUpdateâ);
Util::connectHook(âOC_Filesystemâ, âdeleteâ, âOCA\BoxLogging\Hooks\LoggingHooksâ, âfileDeleteâ);
Util::connectHook(âOC_Filesystemâ, âpost_renameâ, âOCA\BoxLogging\Hooks\LoggingHooksâ, âfileRenameâ);
however some do not seem to work properly. Specifically the âfileCreateâ and âfileUpdateâ work fine while the rest doesnât fire when a Deletion or Renaming happens. The handling functions follow:
public static function fileCreate($path) {
self::actFile($path, âUploadâ);
}
public static function fileRename($path) {
self::actFile($path, âUploadâ);
}
public static function fileUpdate($path) {
self::actFile($path, âUpdateâ);
}
public static function fileDelete($path) {
self::actFile($path, âDeleteâ);
}
actFile is the function handling all four events. As said before, it works fine for fileCreate and fileUpdate.
Thanks again!
K