I m 运行Eclipse Indigo, with PDT and Xdebugger (all recent edition) and a LAMP服务器 on Hugo 11.04.
物体功能(见下面的代码)在分解时赢得了拖拉;变相的只是违约——变数窗口完全空白,只是冻结。 该网页既能赢得装货,也只能停留在装货国。
一切都罚款,直到我开始在物体上任职。
建议
该法典:
<?php
require_once user.php ;
require_once fetcher.php ;
require_once inscriber.php ;
$uname=$_POST[ regname ];
$upass=$_POST[ regpass ];
$ufirst=$_POST[ regfirst ];
$ulast=$_POST[ reglast ];
$uemail=$_POST[ regemail ];
$uphone=$_POST[ regphone ];
$user = new User();
$user->setUsername($uname); // THIS IS WHERE IT FREEZES UP
$user->setPassword($upass);
$user->setFirstname($ufirst);
$user->setLastname($ulast);
$user->setEmail($uemail);
$user->setPhone($uphone);
$inscriber = Inscriber::getInscriberInstance();
$success = $inscriber->inscribeUser($user);
?>
<?php
class User{
private $username;
private $password;
private $userID;
private $firstname;
private $lastname;
private $phone;
private $email;
public function getUsername(){
return $username;
}
public function setUsername($var){
$this->$username = $var;
}
///
public function getPassword(){
return $password;
}
public function setPassword($var){
$this->$password = $var;
}
///
public function getUserID(){
return $userID;
}
public function setUserID($var){
$this->$userID = $var;
}
///
public function getFirstname(){
return $firstname;
}
public function setFirstname($var){
$this->$firstname = $var;
}
///
public function getLastname(){
return $lastname;
}
public function setLastname($var){
$this->$lastname = $var;
}
///
public function getPhone(){
return $phone;
}
public function setPhone($var){
$this->$phone = $var;
}
///
public function getEmail(){
return $email;
}
public function setEmail($var){
$this->$email = $var;
}
}