1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 3/** 4 * hold PhpMyAdmin\Twig\CharsetsExtension class 5 * 6 * @package PhpMyAdmin\Twig 7 */ 8namespace PhpMyAdmin\Twig; 9 10use Twig\Extension\AbstractExtension; 11use Twig\TwigFunction; 12 13/** 14 * Class CharsetsExtension 15 * 16 * @package PhpMyAdmin\Twig 17 */ 18class CharsetsExtension extends AbstractExtension 19{ 20 /** 21 * Returns a list of functions to add to the existing list. 22 * 23 * @return TwigFunction[] 24 */ 25 public function getFunctions() 26 { 27 return array( 28 new TwigFunction( 29 'Charsets_getCollationDescr', 30 'PhpMyAdmin\Charsets::getCollationDescr' 31 ), 32 new TwigFunction( 33 'Charsets_getCharsetDropdownBox', 34 'PhpMyAdmin\Charsets::getCharsetDropdownBox', 35 array('is_safe' => array('html')) 36 ), 37 new TwigFunction( 38 'Charsets_getCollationDropdownBox', 39 'PhpMyAdmin\Charsets::getCollationDropdownBox', 40 array('is_safe' => array('html')) 41 ), 42 ); 43 } 44} 45