@@ -21,7 +22,7 @@ class HTMLUtils {
CARD;
// If we don't have any parameter for the bridge, we print a generic form to load it.
- if(count($bridgeElement->parameters) == 0) {
+ if(count($bridgeClass::PARAMETERS) == 0) {
$card .= HTMLUtils::getFormHeader($bridgeName);
@@ -40,13 +41,13 @@ CARD;
$card .= '' . PHP_EOL;
}
- $hasGlobalParameter = array_key_exists('global', $bridgeElement->parameters);
+ $hasGlobalParameter = array_key_exists('global', $bridgeClass::PARAMETERS);
if($hasGlobalParameter){
- $globalParameters = $bridgeElement->parameters['global'];
+ $globalParameters = $bridgeClass::PARAMETERS['global'];
}
- foreach($bridgeElement->parameters as $parameterName => $parameter){
+ foreach($bridgeClass::PARAMETERS as $parameterName => $parameter){
if(!is_numeric($parameterName) && $parameterName == 'global')
continue;
@@ -129,7 +130,7 @@ CARD;
}
$card .= '';
- $card .= '' . $bridgeElement->maintainer . '
';
+ $card .= '' . $bridgeClass::MAINTAINER . '
';
$card .= '';
return $card;