concrete/src/User/User.php
public function setUserDefaultLanguage($lang)
    {
        $app = Application::getFacadeApplication();
        $db = $app['database']->connection();
        $session = $app['session'];

        $this->uDefaultLanguage = $lang;
        $session->set('uDefaultLanguage', $lang);
        $db->Execute('update Users set uDefaultLanguage = ? where uID = ?', array($lang, $this->getUserID()));
    }
public function setUserDefaultLanguage($lang)
    {
        $app = Application::getFacadeApplication();
        $db = $app['database']->connection();
        $session = $app['session'];

        $this->uDefaultLanguage = $lang;
        $session->set('uDefaultLanguage', $lang);
        $db->Execute('update Users set uDefaultLanguage = ? where uID = ?', array($lang, $this->getUserID()));
    }
public function setUserDefaultLanguage ( $ lang ) { $ app = Application :: getFacadeApplication ( ) ; $ db = $ app [ 'database' ] -> connection ( ) ; $ session = $ app [ 'session' ] ; $ this -> uDefaultLanguage = $ lang ; $ session -> set ( 'uDefaultLanguage' , $ lang ) ; $ db -> Execute ( 'update Users set uDefaultLanguage = ? where uID = ?' , array ( $ lang , $ this -> getUserID ( ) ) ) ; }
Sets a default language for a user record.

@param string $lang
Sets a default language for a user record .