public static function getLanguageForSession()
    {
        $cookieName = Config::getInstance()->General['language_cookie_name'];
        $cookie = new Cookie($cookieName);
        if ($cookie->isCookieFound()) {
            return $cookie->get('language');
        }
        return null;
    }
public static function getLanguageForSession()
    {
        $cookieName = Config::getInstance()->General['language_cookie_name'];
        $cookie = new Cookie($cookieName);
        if ($cookie->isCookieFound()) {
            return $cookie->get('language');
        }
        return null;
    }
public static function getLanguageForSession ( ) { $ cookieName = Config :: getInstance ( ) -> General [ 'language_cookie_name' ] ; $ cookie = new Cookie ( $ cookieName ) ; if ( $ cookie -> isCookieFound ( ) ) { return $ cookie -> get ( 'language' ) ; } return null ; }
Returns the language for the session

@return string|null
Returns the language for the session