]>
git.datanom.net - omvzfs.git/blob - src/NotifyListener.php
2 require_once('openmediavault/object.inc');
3 require_once('openmediavault/module.inc');
4 require_once("Exception.php");
7 * Class containing information about the pool
9 * @author Michael Rasmussen
11 * @copyright Michael Rasmussen <mir@datanom.net>
13 class OMVModuleZFS
extends OMVModuleAbstract
14 implements OMVINotifyListener
{
18 public function __construct() {
19 $this->pools
= array();
23 public function getName() {
27 public function bindListeners(OMVNotifyDispatcher
$dispatcher) {
28 // Update service if configuration has been modified
29 $dispatcher->addListener(
31 "org.openmediavault.services.nfs",
32 array($this, "onUpdateNFSService"));
33 $dispatcher->addListener(
35 "org.openmediavault.services.nfs.shares.share",
36 array($this, "onCreateNFSShare"));
37 $dispatcher->addListener(
39 "org.openmediavault.services.nfs.shares.share",
40 array($this, "onDeleteNFSShare"));
41 $dispatcher->addListener(
43 "org.openmediavault.services.nfs.shares.share",
44 array($this, "onUpdateNFSShare"));
45 $this->debug(sprintf("bindListeners %s", var_export($dispatcher, true)));
50 * org.openmediavault.services.nfs
55 public function onUpdateNFSService($args) {
56 $this->debug(sprintf("onUpdateNFSService args=%s", var_export($args, true)));
61 * org.openmediavault.services.nfs.shares.share
66 public function onCreateNFSShare($args) {
67 $this->debug(sprintf("onCreateNFSShare args=%s", var_export($args, true)));
72 * org.openmediavault.services.nfs.shares.share
77 public function onDeleteNFSShare($args) {
78 $this->debug(sprintf("onDeleteNFSShare args=%s", var_export($args, true)));
83 * org.openmediavault.services.nfs.shares.share
88 public function onUpdateNFSShare($args) {
89 $this->debug(sprintf("onUpdateNFSShare args=%s", var_export($args, true)));
92 private function updatePools() {
98 $moduleMgr = &OMVModuleMgr
::getInstance();
99 $moduleMgr->registerModule(new OMVModuleZFS());
This page took 0.064226 seconds and 6 git commands to generate.