Overview

Namespaces

  • MvcCore
    • Ext
      • Auth
        • Virtual
      • Debug
        • Tracy
      • Form
        • Core
        • Validators
      • Request
      • Router
        • Lang
      • View
        • Helpers
  • None

Classes

  • Controller
  • SignInForm
  • SignOutForm
  • User
  • Overview
  • Namespace
  • Class
  • Tree

Class User

Core model - reading 'db' section from system config.ini - database PDO connecting by config settings and index - instance loaded variables initializing - instance initialized values reading - virtual calls/sets and gets handling

MvcCore\Model
Extended by MvcCore\Ext\Auth\Virtual\User
Extended by MvcCore\Ext\Auth\User
Namespace: MvcCore\Ext\Auth
Located at ext-auth/src/MvcCore/Ext/Auth/User.php
Methods summary
public static MvcCore\Ext\Auth\User|null
# GetUserBySession( )

Try to get user model instance from any place by session username record if there is any or return null.

Try to get user model instance from any place by session username record if there is any or return null.

Returns

MvcCore\Ext\Auth\User|null

Overrides

MvcCore\Ext\Auth\Virtual\User::GetUserBySession()
public static MvcCore\Ext\Auth\User|null
# Authenticate( string $uniqueUserName = '', string $password = '' )

Get user instance if the username exists and hashed password is the same

Get user instance if the username exists and hashed password is the same

Parameters

$uniqueUserName
$username
$password

Returns

MvcCore\Ext\Auth\User|null

Overrides

MvcCore\Ext\Auth\Virtual\User::Authenticate()
public static
# StoreInSession( MvcCore\Ext\Auth\User $user = NULL )

Set up unique user name in session namespace

Set up unique user name in session namespace

Parameters

$user

Overrides

MvcCore\Ext\Auth\Virtual\User::StoreInSession()
public static
# ClearFromSession( )

Clear unique user name from session

Clear unique user name from session

Overrides

MvcCore\Ext\Auth\Virtual\User::ClearFromSession()
protected static MvcCore\Session &
# getSession( )

Get session to get/set/clear username, is session is not started - start the session.

Get session to get/set/clear username, is session is not started - start the session.

Returns

MvcCore\Session
Methods inherited from MvcCore\Ext\Auth\Virtual\User
GetPasswordHash()
Methods inherited from MvcCore\Model
GetCfg(), GetDb(), GetInstance(), GetResource(), GetValues(), Init(), SetUp(), __call(), __construct(), __get(), __set(), loadConfigs()
Properties summary
protected boolean $autoInit
# FALSE
protected static MvcCore\Session $session
# NULL
Properties inherited from MvcCore\Ext\Auth\Virtual\User
$FullName, $Id, $PasswordHash, $UserName
Properties inherited from MvcCore\Model
$cfg, $configs, $connectionArguments, $connectionIndex, $connections, $db, $instances, $resource
MvcCore API documentation generated by ApiGen