*/ class OMVModuleZFS extends OMVModuleAbstract implements OMVINotifyListener { private $pools; public function __construct() { $this->pools = array(); $this->updatePools(); } public function getName() { return "zfs"; } public function bindListeners(OMVNotifyDispatcher $dispatcher) { // Update service if configuration has been modified $dispatcher->addListener( OMV_NOTIFY_MODIFY, "org.openmediavault.services.nfs", array($this, "onUpdateNFSService")); $dispatcher->addListener( OMV_NOTIFY_CREATE, "org.openmediavault.services.nfs.shares.share", array($this, "onCreateNFSShare")); $dispatcher->addListener( OMV_NOTIFY_DELETE, "org.openmediavault.services.nfs.shares.share", array($this, "onDeleteNFSShare")); $dispatcher->addListener( OMV_NOTIFY_MODIFY, "org.openmediavault.services.nfs.shares.share", array($this, "onUpdateNFSShare")); $this->debug(sprintf("bindListeners %s", var_export($dispatcher, true))); } /** * XXX * org.openmediavault.services.nfs * * @param string event * @access public */ public function onUpdateNFSService($args) { $this->debug(sprintf("onUpdateNFSService args=%s", var_export($args, true))); } /** * XXX * org.openmediavault.services.nfs.shares.share * * @param string event * @access public */ public function onCreateNFSShare($args) { $this->debug(sprintf("onCreateNFSShare args=%s", var_export($args, true))); } /** * XXX * org.openmediavault.services.nfs.shares.share * * @param string event * @access public */ public function onDeleteNFSShare($args) { $this->debug(sprintf("onDeleteNFSShare args=%s", var_export($args, true))); } /** * XXX * org.openmediavault.services.nfs.shares.share * * @param string event * @access public */ public function onUpdateNFSShare($args) { $this->debug(sprintf("onUpdateNFSShare args=%s", var_export($args, true))); } private function updatePools() { } } // Register module. $moduleMgr = &OMVModuleMgr::getInstance(); $moduleMgr->registerModule(new OMVModuleZFS()); ?>