This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Model_User

The user object deals primarily with logging users in and session-related activities.

Concrete5_Library_Object
Extended by Object
Extended by Concrete5_Model_User

Direct known subclasses

User

Package: Users
Category: Concrete
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Located at core/models/user.php

Methods summary

public static User|null
# getByUserID( integer $uID, boolean $login = false, boolean $cacheItemsOnLogin = true )

Return an User instance given its id (or null if it's not found)

protected static
public User
# loginByUserID( integer $uID )
public static
public
public
public
public
# recordView( $c )
public
# encryptPassword( $uPassword, $salt = null )
public
# legacyEncryptPassword( $uPassword )
public
# isActive( )
public
public
public
public
public
public
public
# logout( )
public static
public
public
public
# setUserDefaultLanguage( $lang )

Sets a default language for a user record

public
# getUserDefaultLanguage( )

Gets the default language for the logged-in user

public
public
public
# _getUserGroups( $disableLogin = false )
public
# enterGroup( $g, $joinType = "" )
public
# updateGroupMemberType( $g, $joinType )
public
# exitGroup( $g )
public
public
# inGroup( $g, $joinType = null )
public
# loadMasterCollectionEdit( $mcID, $ocID )
public
public
# unloadCollectionEdit( $removeCache = true )
public
# config( $cfKey )
public
# saveConfig( $cfKey, $cfValue )
public
public
public PasswordHash
# getUserPasswordHasher( )

Properties summary

public string $uID
# ''
public string $uName
# ''
public array $uGroups
# array()
public boolean $superUser
# false
public $uTimezone
# NULL
protected $uDefaultLanguage
# null
protected array $accessEntities
# array()
protected $hasher
#

Properties inherited from Concrete5_Library_Object

$error