Location: PHPKode > projects > HERMES PHP-Based Business Mgmt > hermes-0.4.1/pam.d/pam_db_native/pam.obj.php
<?
/*  The PAM Object Model
 *  Chris Travers
 *  August 29, 2002
 *  hide@address.com
 */

class HermesCurrentUser {
	var $login;
	var $password;
	var $uid;
	var $is_admin;
	var $connection;  //array-- type => resource
	var $users_table;  //rdbms table for user info
	function HermesCurrentUser ($login, $password, $uid, $is_admin, 
			$users_table){
		$this->login=$login;
		$this->password=$password;
		$this->uid=$uid;
		$this->is_admin=$is_admin;
		$this->users_table=$users_table;
		$this->connection=array();
	}
	function NewConnection($key, $value){
		$this->connection[$key]=$value;
	}
	function GetConnection($key){
		return $this->connection[$key];
	}
}
Return current item: HERMES PHP-Based Business Mgmt