[HTMLUtils] Remove getHelperButtonFormat

This commit is contained in:
logmanoriginal 2016-08-15 08:01:32 +02:00
parent 5d66af7a29
commit a6da16feb7

View file

@ -1,16 +1,12 @@
<?php <?php
class HTMLUtils { class HTMLUtils {
public static function getHelperButtonFormat($value, $name){
return '<button type="submit" name="format" value="' . $value . '">' . $name . '</button>';
}
public static function getHelperButtonsFormat($formats){ public static function getHelperButtonsFormat($formats){
$buttons = ''; $buttons = '';
foreach( $formats as $name => $infos ){ foreach( $formats as $name => $infos ){
if ( isset($infos['name']) ) if ( isset($infos['name']) )
$buttons .= HTMLUtils::getHelperButtonFormat($name, $infos['name']) . PHP_EOL; $buttons .= '<button type="submit" name="format" value="' . $name . '">' . $infos['name'] . '</button>' . PHP_EOL;
} }
return $buttons; return $buttons;