Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     $this->factory = new Student_passwdDomainFactory();
     $this->selectStmt = self::$pdo->prepare("SELECT * FROM student_password WHERE open_id=?");
     $this->insertStmt = self::$pdo->prepare("INSERT INTO student_password (open_id,student_id,zhxy_psw,jwxt_psw,tsg_psw,aolan_psw) VALUES(?,?,?,?,?,?)");
     $this->deleteStmt = self::$pdo->prepare("DELETE FROM student_password WHERE open_id=?");
     $this->updateStmt = self::$pdo->prepare("UPDATE student_password set zhxy_psw=?,jwxt_psw=?,tsg_psw=?,aolan_psw=? WHERE open_id=?");
     $this->updateAllStmt = self::$pdo->prepare("UPDATE student_password set student_id=?,zhxy_psw=?,jwxt_psw=?,tsg_psw=?,aolan_psw=? WHERE open_id=?");
 }