コード例 #1
0
ファイル: Option.php プロジェクト: PayIcam/shotgun
 public function insert()
 {
     if ($this->id !== null) {
         throw new \Exception("Cannot insert this Desc, please use update() ! ({$this->id})");
     }
     $conn = Db::conn();
     $conn->insert($this->table_name, array("user_login" => $this->user_login, "user_prenom" => $this->user_prenom, "user_nom" => $this->user_nom, "user_mail" => $this->user_mail, "user_cotisant" => $this->user_cotisant, "fk_desc_id" => $this->fk_desc_id, "fk_choice_id" => $this->fk_choice_id, "payutc_tra_id" => $this->payutc_tra_id, "payutc_tra_url" => $this->payutc_tra_url, "option_date_creation" => $this->date_creation, "option_date_paiement" => $this->date_paiement, "option_status" => $this->status));
     return $conn->lastInsertId();
 }
コード例 #2
0
ファイル: Desc.php プロジェクト: PayIcam/shotgun
 public function insert()
 {
     if ($this->id !== null) {
         throw new \Exception("Cannot insert this Desc, please use update() ! ({$this->id})");
     }
     $conn = Db::conn();
     $conn->insert($this->table_name, array("desc_titre" => $this->titre, "desc_desc" => $this->desc, "desc_is_public" => $this->is_public, "desc_quota" => $this->quota, "desc_debut" => $this->debut, "desc_fin" => $this->fin, "desc_public_cible" => json_encode($this->public_cible), "payutc_fun_id" => $this->payutc_fun_id, "payutc_cat_id" => $this->payutc_cat_id));
     return $conn->lastInsertId();
 }
コード例 #3
0
ファイル: Choice.php プロジェクト: PayIcam/shotgun
 public function insert()
 {
     if ($this->id !== null) {
         throw new \Exception("Cannot insert this Desc, please use update() ! ({$this->id})");
     }
     $conn = Db::conn();
     $conn->insert($this->table_name, array("choice_name" => $this->name, "choice_priceC" => $this->priceC, "choice_stock" => $this->stock, "fk_desc_id" => $this->descId, "payutc_art_idC" => $this->payutc_art_idC));
     return $conn->lastInsertId();
 }