コード例 #1
0
ファイル: User.php プロジェクト: 06romix/store
 public function addUser()
 {
     $this->findUserIp();
     $this->role = 'user';
     $setField = "'" . $this->name . "', '" . md5($this->pass) . "', '" . $this->email . "', '" . $this->tel . "', '" . $this->ip . "', '" . $this->role . "'";
     DbFunctions::insertEntity('user', $setField);
 }
コード例 #2
0
ファイル: Order.php プロジェクト: 06romix/store
 public function save()
 {
     $setField = $this->product_id . ", " . $this->quantity . ", '" . $this->date . "', " . $this->user_id . ", " . $this->product_price;
     return DbFunctions::insertEntity('order', $setField);
 }