35 lines
685 B
PHP
35 lines
685 B
PHP
<?php
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
/**
|
|
* hold PhpMyAdmin\Twig\CharsetsExtension class
|
|
*
|
|
* @package PhpMyAdmin\Twig
|
|
*/
|
|
namespace PhpMyAdmin\Twig;
|
|
|
|
use Twig_Extension;
|
|
use Twig_SimpleFunction;
|
|
|
|
/**
|
|
* Class CharsetsExtension
|
|
*
|
|
* @package PhpMyAdmin\Twig
|
|
*/
|
|
class CharsetsExtension extends Twig_Extension
|
|
{
|
|
/**
|
|
* Returns a list of functions to add to the existing list.
|
|
*
|
|
* @return Twig_SimpleFunction[]
|
|
*/
|
|
public function getFunctions()
|
|
{
|
|
return array(
|
|
new Twig_SimpleFunction(
|
|
'Charsets_getCollationDescr',
|
|
'PhpMyAdmin\Charsets::getCollationDescr'
|
|
),
|
|
);
|
|
}
|
|
}
|