/framework/experimental/auth/AuthStorageHandlerDb.php
http://zoop.googlecode.com/ · PHP · 23 lines · 20 code · 3 blank · 0 comment · 0 complexity · 2f4d4163795d67a2e4d7ae3375ea7805 MD5 · raw file
- <?php
- class AuthDbStorageDb implements AuthStorageHandler
- {
- private $info;
-
- function __construct($dbInfo)
- {
- $this->info = $dbInfo;
- }
-
- public function getInfo($username)
- {
- return SqlFetchRow('select ' . $this->info['username'] . ' as username, ' . $this->info['password'] . ' as password, ' .
- $this->info['nonce'] . ' as nonce, ' . $this->info['password_type'] . ' as password_type from ' .
- $this->info['table'] . ' where ' . $this->info['username'] . ' = :username',
- array('username' => $username));
- }
-
- public function setInfo($username, $info)
- {
- trigger_error('net yet implemented');
- }
- }