[HTMLUtils] Change getHelperButtonsFormat to private scope

This commit is contained in:
logmanoriginal 2016-08-15 08:13:11 +02:00
parent a6da16feb7
commit 646ae57326

View file

@ -1,17 +1,6 @@
<?php <?php
class HTMLUtils { class HTMLUtils {
public static function getHelperButtonsFormat($formats){
$buttons = '';
foreach( $formats as $name => $infos ){
if ( isset($infos['name']) )
$buttons .= '<button type="submit" name="format" value="' . $name . '">' . $infos['name'] . '</button>' . PHP_EOL;
}
return $buttons;
}
public static function displayBridgeCard($bridgeName, $formats, $isActive = true){ public static function displayBridgeCard($bridgeName, $formats, $isActive = true){
$bridgeElement = Bridge::create($bridgeName); $bridgeElement = Bridge::create($bridgeName);
@ -126,6 +115,17 @@ CARD;
return $card; return $card;
} }
private static function getHelperButtonsFormat($formats){
$buttons = '';
foreach( $formats as $name => $infos ){
if ( isset($infos['name']) )
$buttons .= '<button type="submit" name="format" value="' . $name . '">' . $infos['name'] . '</button>' . PHP_EOL;
}
return $buttons;
}
private static function getFormHeader($bridge){ private static function getFormHeader($bridge){
return <<<EOD return <<<EOD
<form method="GET" action="?"> <form method="GET" action="?">