PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/framework/experimental/auth/AuthStorageHandlerDb.php

http://zoop.googlecode.com/
PHP | 23 lines | 20 code | 3 blank | 0 comment | 0 complexity | 2f4d4163795d67a2e4d7ae3375ea7805 MD5 | raw file
 1<?php
 2class AuthDbStorageDb implements AuthStorageHandler
 3{
 4	private $info;
 5	
 6	function __construct($dbInfo)
 7	{
 8		$this->info = $dbInfo;
 9	}
10	
11	public function getInfo($username)
12	{
13		return SqlFetchRow('select ' . $this->info['username'] . ' as username, ' . $this->info['password'] . ' as password, ' . 
14						$this->info['nonce'] . ' as nonce, ' . $this->info['password_type'] . ' as password_type from ' . 
15						$this->info['table'] . ' where ' . $this->info['username'] . ' = :username', 
16						array('username' => $username));
17	}
18	
19	public function setInfo($username, $info)
20	{
21		trigger_error('net yet implemented');
22	}
23}