Overview

Namespaces

  • CJPGDK
    • PhpHttpAuth
      • Database
      • Hash
  • PHP

Classes

  • DB
  • MySQL
  • PDODB
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class PDODB

Provides methods for PDO integration

This file is only added to show how you may added your own. PDO provides many db backends but this file only supports sqlite and mysql

CJPGDK\PhpHttpAuth\Database\DB
Extended by CJPGDK\PhpHttpAuth\Database\PDODB
Namespace: CJPGDK\PhpHttpAuth\Database
Package: CJPGDK\PhpHttpAuth
Author: Christian M. Jensen cmj@cjpg.dk
Version: 1.0.0
Since: 1.0.0
Located at src/CJPGDK/PhpHttpAuth/Database/PDODB.php
Methods summary
public
# __construct( $dsn, $username = "", $password = "" )
public boolean
# deleteUser( string $name )

Delete a user from database

Delete a user from database

Parameters

$name

Returns

boolean
public PDO
# getDb( )

Get the current PDO object

Get the current PDO object

Returns

PDO
public object[]
# getUsers( )

Get user from database

Get user from database

Returns

object[]
public object
# getUser( string $name )

Get user from database

Get user from database

Parameters

$name

Returns

object
public boolean
# saveUser( string $name, string $passwd )

Save or update a user in the database

Save or update a user in the database

Parameters

$name
$passwd

Returns

boolean
Methods inherited from CJPGDK\PhpHttpAuth\Database\DB
getConnectionDatabseName(), getConnectionHost(), getConnectionPassword(), getConnectionPort(), getConnectionSocket(), getConnectionUser(), setConnectionDatabseName(), setConnectionHost(), setConnectionPassword(), setConnectionPort(), setConnectionSocket(), setConnectionUser()
Properties summary
protected PDO $dbh
#
Properties inherited from CJPGDK\PhpHttpAuth\Database\DB
$dbConnectionSettings, $tableColumns, $usersTableName
PhpHttpAuth API documentation generated by ApiGen