/** * Parse * * @param DOMNode $contribNode */ protected function parseSpecificContributions(&$contribNode) { parent::parseSpecificContributions($contribNode); if ($contribNode->nodeName != "actions") { return; } // Cannot use zip features on FTP ! // Remove "compress" action $actionXpath = new DOMXPath($contribNode->ownerDocument); $compressNodeList = $actionXpath->query('action[@name="compress"]', $contribNode); if (!$compressNodeList->length) { return; } unset($this->actions["compress"]); $compressNode = $compressNodeList->item(0); $contribNode->removeChild($compressNode); // Disable "download" if selection is multiple $nodeList = $actionXpath->query('action[@name="download"]/gui/selectionContext', $contribNode); $selectionNode = $nodeList->item(0); $values = array("dir" => "false", "unique" => "true"); foreach ($selectionNode->attributes as $attribute) { if (isset($values[$attribute->name])) { $attribute->value = $values[$attribute->name]; } } $nodeList = $actionXpath->query('action[@name="download"]/processing/clientListener[@name="selectionChange"]', $contribNode); $listener = $nodeList->item(0); $listener->parentNode->removeChild($listener); }
/** * Parse * @param DOMNode $contribNode */ protected function parseSpecificContributions(&$contribNode) { parent::parseSpecificContributions($contribNode); if ($contribNode->nodeName != "actions") { return; } $this->disableArchiveBrowsingContributions($contribNode); }
/** * Parse * @param DOMNode $contribNode */ protected function parseSpecificContributions(&$contribNode) { parent::parseSpecificContributions($contribNode); if ($contribNode->nodeName != "actions" || isset($this->pluginConf["SMB_ENABLE_ZIP"]) && $this->pluginConf["SMB_ENABLE_ZIP"] == true) { return; } $this->disableArchiveBrowsingContributions($contribNode); }
/** * Parse * @param DOMNode $contribNode */ protected function parseSpecificContributions(&$contribNode) { parent::parseSpecificContributions($contribNode); if ($contribNode->nodeName != "actions") { return; } $this->disableArchiveBrowsingContributions($contribNode); $this->redirectActionsToMethod($contribNode, array("upload", "next_to_remote", "trigger_remote_copy"), "uploadActions"); }