code = $code; $this->login = $login; $this->pass = $pass; $this->email = $email; $this->type = $type; } static function &LoginDBItemFromRecord($rec) { $ret = & new LoginDBItem($rec->code, $rec->login, $rec->pass, $rec->email, $rec->type); return ($ret); } function code_get() { return $this->code; } function login_get() { return $this->login; } function pass_get() { return $this->pass; } function email_get() { return $this->email; } function type_get() { return $this->type; } } class LoginDBItemOld extends LoginDBItem { function LoginDBItemOld($login, $pass, $email, $type) { parent::LoginDBItem(-1, $login, $pass, $email, $type); } } ?>