mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
parent
999d6687ca
commit
ed09f6c0b7
3 changed files with 15 additions and 0 deletions
|
|
@ -150,4 +150,11 @@ interface IShare {
|
||||||
* @return INotifyHandler
|
* @return INotifyHandler
|
||||||
*/
|
*/
|
||||||
public function notify($path);
|
public function notify($path);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the IServer instance for this share
|
||||||
|
*
|
||||||
|
* @return IServer
|
||||||
|
*/
|
||||||
|
public function getServer(): IServer;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,10 @@ class NativeShare extends AbstractShare {
|
||||||
return $share->notify($path);
|
return $share->notify($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getServer(): IServer {
|
||||||
|
return $this->server;
|
||||||
|
}
|
||||||
|
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
unset($this->state);
|
unset($this->state);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -552,6 +552,10 @@ class Share extends AbstractShare {
|
||||||
return $acls;
|
return $acls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getServer(): IServer {
|
||||||
|
return $this->server;
|
||||||
|
}
|
||||||
|
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
unset($this->connection);
|
unset($this->connection);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue