{$description}
CARD; // If we don't have any parameter for the bridge, we print a generic form to load it. if(count($bridgeElement->parameters) == 0) { $card .= HTMLUtils::getFormHeader($bridgeName); if ($isActive){ $card .= HTMLUtils::getHelperButtonsFormat($formats); } else { $card .= 'Inactive'; } $card .= '' . PHP_EOL; } $hasGlobalParameter = array_key_exists('global', $bridgeElement->parameters); if($hasGlobalParameter) $globalParameters = json_decode($bridgeElement->parameters['global'], true); foreach($bridgeElement->parameters as $parameterName => $parameter){ $parameter = json_decode($parameter, true); if(!is_numeric($parameterName) && $parameterName == 'global') continue; if($hasGlobalParameter) $parameter = array_merge($parameter, $globalParameters); if(!is_numeric($parameterName)) $card .= '' . $bridgeElement->maintainer . '
'; $card .= ''; return $card; } private static function getHelperButtonsFormat($formats){ $buttons = ''; foreach( $formats as $name => $infos ){ if ( isset($infos['name']) ) $buttons .= '' . PHP_EOL; } return $buttons; } private static function getFormHeader($bridge){ return <<