ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
PDO.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\DAV\Auth\Backend
;
4
12
class
PDO
extends
AbstractDigest
{
13
19
protected
$pdo
;
20
26
public
$tableName
=
'users'
;
27
28
36
function
__construct
(\
PDO
$pdo
) {
37
38
$this->pdo =
$pdo
;
39
40
}
41
49
function
getDigestHash
(
$realm
, $username) {
50
51
$stmt
= $this->pdo->prepare(
'SELECT digesta1 FROM '
. $this->tableName .
' WHERE username = ?'
);
52
$stmt
->execute([$username]);
53
return
$stmt
->fetchColumn() ?: null;
54
55
}
56
57
}
$stmt
$stmt
Definition:
migrateto20.php:441
Sabre\DAV\Auth\Backend\PDO\__construct
__construct(\PDO $pdo)
Creates the backend object.
Definition:
PDO.php:36
Sabre\DAV\Auth\Backend\PDO\$pdo
$pdo
Definition:
PDO.php:19
Sabre\DAV\Auth\Backend
Definition:
AbstractBasic.php:3
PDO
Sabre\DAV\Auth\Backend\AbstractDigest\$realm
$realm
Definition:
AbstractDigest.php:31
Sabre\DAV\Auth\Backend\AbstractDigest
HTTP Digest authentication backend class.
Definition:
AbstractDigest.php:21
Sabre\DAV\Auth\Backend\PDO\getDigestHash
getDigestHash($realm, $username)
Returns the digest hash for a user.
Definition:
PDO.php:49
Sabre\DAV\Auth\Backend\PDO\$tableName
$tableName
Definition:
PDO.php:26
php
libs
composer
vendor
sabre
dav
lib
DAV
Auth
Backend
PDO.php
Generated on Thu Jan 16 2025 19:01:49 for ILIAS by
1.8.13 (using
Doxyfile
)