Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / libraries / plugins / AuthenticationPlugin.class.php
blob3ddf55ee2060d68cca769f2d8fd7db76c3f7807d
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Abstract class for the authentication plugins
6 * @package PhpMyAdmin
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 /* This class extends the PluginObserver class */
13 require_once 'PluginObserver.class.php';
15 /**
16 * Provides a common interface that will have to be implemented by all of the
17 * authentication plugins.
19 * @package PhpMyAdmin
21 abstract class AuthenticationPlugin extends PluginObserver
23 /**
24 * Displays authentication form
26 * @return boolean
28 abstract public function auth();
30 /**
31 * Gets advanced authentication settings
33 * @return boolean
35 abstract public function authCheck();
37 /**
38 * Set the user and password after last checkings if required
40 * @return boolean
42 abstract public function authSetUser();
44 /**
45 * User is not allowed to login to MySQL -> authentication failed
47 * @return boolean
49 abstract public function authFails();