1
0
Fork 0
forked from blallo/rss-bridge

[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
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){
$bridgeElement = Bridge::create($bridgeName);
@ -126,6 +115,17 @@ 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){
return <<<EOD
<form method="GET" action="?">