Overview

Namespaces

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

Classes

  • Controller
  • Form
  • 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

Direct known subclasses

MvcCore\Ext\Auth\User
Namespace: MvcCore\Ext\Auth\Virtual
Located at ext-auth/src/MvcCore/Ext/Auth/Virtual/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
public static MvcCore\Ext\Auth\User|null
# Authenticate( string $username = '', 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

$username
$password

Returns

MvcCore\Ext\Auth\User|null
public static
# StoreInSession( string $uniqueUserName = '' )

Set up unique user name in session namespace

Set up unique user name in session namespace

Parameters

$uniqueUserName
public static
# ClearFromSession( )

Clear unique user name from session

Clear unique user name from session

public static string
# GetPasswordHash( string $password = '' )

Get any password hash with salt by Auth extension configuration

Get any password hash with salt by Auth extension configuration

Parameters

$password

Returns

string
Methods inherited from MvcCore\Model
GetCfg(), GetDb(), GetInstance(), GetResource(), GetValues(), Init(), SetUp(), __call(), __construct(), __get(), __set(), loadConfigs()
Properties summary
public integer $Id
# NULL
public string $UserName
# ''
public string $FullName
# ''
public string $PasswordHash
# ''
Properties inherited from MvcCore\Model
$autoInit, $cfg, $configs, $connectionArguments, $connectionIndex, $connections, $db, $instances, $resource
MvcCore API documentation generated by ApiGen