ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
BasicCallBack.php
Go to the documentation of this file.
1<?php
2
4
18
24 protected $callBack;
25
35 function __construct(callable $callBack) {
36
37 $this->callBack = $callBack;
38
39 }
40
51 protected function validateUserPass($username, $password) {
52
53 $cb = $this->callBack;
54 return $cb($username, $password);
55
56 }
57
58}
An exception for terminatinating execution or to throw for unit testing.
HTTP Basic authentication backend class.
Extremely simply HTTP Basic auth backend.
validateUserPass($username, $password)
Validates a username and password.
__construct(callable $callBack)
Creates the backend.
$password
Definition: cron.php:14