Backend\Modules\FormBuilder\Engine\Model::getLocale PHP Метод

getLocale() публичный статический Метод

Used as datagridfunction.
public static getLocale ( string $name, string $type = 'label', string $application = 'Backend' ) : string
$name string Name of the locale item.
$type string Type of locale item.
$application string Name of the application.
Результат string
    public static function getLocale($name, $type = 'label', $application = 'Backend')
    {
        $name = \SpoonFilter::toCamelCase($name);
        $class = \SpoonFilter::ucfirst($application) . '\\Core\\Language\\Language';
        $function = 'get' . \SpoonFilter::ucfirst($type);
        // execute and return value
        return \SpoonFilter::ucfirst(call_user_func_array(array($class, $function), array($name)));
    }