l::get PHP 메소드

get() 정적인 공개 메소드

Gets a language value by key
static public get ( mixed $key = null, mixed $default = null ) : mixed
$key mixed The key to look for. Pass false or null to return the entire language array.
$default mixed Optional default value, which should be returned if no element has been found
리턴 mixed
    static function get($key = null, $default = null)
    {
        if (empty($key)) {
            return self::$lang;
        }
        return a::get(self::$lang, $key, $default);
    }

Usage Example

예제 #1
0
파일: user.php 프로젝트: kompuser/panel
 public function __construct()
 {
     $this->type = 'text';
     $this->icon = 'user';
     $this->label = l::get('fields.user.label', 'User');
     $this->placeholder = l::get('fields.user.placeholder', 'Username…');
 }
All Usage Examples Of l::get