apps/files_external/lib/config.php
/**
	 * Get backend dependency message
	 * TODO: move into AppFramework along with templates
	 *
	 * @param Backend[] $backends
	 * @return string
	 */
Get backend dependency message
TODO: move into AppFramework along with templates

@param Backend[] $backends
@return string
Get backend dependency message TODO : move into AppFramework along with templates @param Backend [] $backends @return string
public static function dependencyMessage($backends) {
		$l = \OC::$server->getL10N('files_external');
		$message = '';
		$dependencyGroups = [];
		foreach ($backends as $backend) {
			foreach ($backend->checkDependencies() as $dependency) {
				if ($message = $dependency->getMessage()) {
					$message .= '<p>' . $message . '</p>';
				} else {
					$dependencyGroups[$dependency->getDependency()][] = $backend;
				}
			}
		}
		foreach ($dependencyGroups as $module => $dependants) {
			$backends = implode(', ', array_map(function($backend) {
				return '"' . $backend->getText() . '"';
			}, $dependants));
			$message .= '<p>' . OC_Mount_Config::getSingleDependencyMessage($l, $module, $backends) . '</p>';
		}
		return $message;
	}
public static function dependencyMessage ( $ backends ) { $ l = \ OC :: $ server -> getL10N ( 'files_external' ) ; $ message = '' ; $ dependencyGroups = [ ] ; foreach ( $ backends as $ backend ) { foreach ( $ backend -> checkDependencies ( ) as $ dependency ) { if ( $ message = $ dependency -> getMessage ( ) ) { $ message .= '<p>' . $ message . '</p>' ; } else { $ dependencyGroups [ $ dependency -> getDependency ( ) ] [ ] = $ backend ; } } } foreach ( $ dependencyGroups as $ module => $ dependants ) { $ backends = implode ( ', ' , array_map ( function ( $ backend ) { return '"' . $ backend -> getText ( ) . '"' ; } , $ dependants ) ) ; $ message .= '<p>' . OC_Mount_Config :: getSingleDependencyMessage ( $ l , $ module , $ backends ) . '</p>' ; } return $ message ; }
Get backend dependency message
 TODO: move into AppFramework along with templates
Get backend dependency message TODO : move into AppFramework along with templates