/** * check dependencies */ public static function checkDependencies() { $dependencies = array(); foreach (OC_Mount_Config::$backends as $class => $backend) { if (isset($backend['has_dependencies']) and $backend['has_dependencies'] === true) { $result = $class::checkDependencies(); if ($result !== true) { if (!is_array($result)) { $result = array($result); } foreach ($result as $key => $value) { if (is_numeric($key)) { OC_Mount_Config::addDependency($dependencies, $value, $backend['backend']); } else { OC_Mount_Config::addDependency($dependencies, $key, $backend['backend'], $value); } } } } } if (count($dependencies) > 0) { return OC_Mount_Config::generateDependencyMessage($dependencies); } return ''; }