nextcloud/lib/public/Files/Storage/INotifyStorage.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
722 B
PHP
Raw Normal View History

2016-07-14 08:46:01 -04:00
<?php
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
2016-07-14 08:46:01 -04:00
*/
namespace OCP\Files\Storage;
use OCP\Files\Notify\INotifyHandler;
2016-07-14 08:46:01 -04:00
/**
* Storage backend that support active notifications
2016-07-15 07:58:44 -04:00
*
* @since 9.1.0
2016-07-14 08:46:01 -04:00
*/
interface INotifyStorage {
/**
* @since 9.1.0
*/
public const NOTIFY_ADDED = 1;
/**
* @since 9.1.0
*/
public const NOTIFY_REMOVED = 2;
/**
* @since 9.1.0
*/
public const NOTIFY_MODIFIED = 3;
/**
* @since 9.1.0
*/
public const NOTIFY_RENAMED = 4;
2016-07-14 08:46:01 -04:00
/**
* Start the notification handler for this storage
*
* @param $path
* @return INotifyHandler
*
* @since 12.0.0
*/
public function notify($path);
2016-07-14 08:46:01 -04:00
}