本文整理汇总了PHP中Contrat::imageNote方法的典型用法代码示例。如果您正苦于以下问题:PHP Contrat::imageNote方法的具体用法?PHP Contrat::imageNote怎么用?PHP Contrat::imageNote使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Contrat
的用法示例。
在下文中一共展示了Contrat::imageNote方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add
public function add(Contrat $contrat){
$query = $this->_db->prepare('
INSERT INTO t_contrat (reference, numero, dateCreation, prixVente, prixVenteArabe,
avance, avanceArabe, modePaiement, dureePaiement, nombreMois, echeance, note, imageNote,
idClient, idProjet, idBien, typeBien, code, status, revendre, numeroCheque, societeArabe,
etatBienArabe, facadeArabe, articlesArabes, created, createdBy)
VALUES (:reference, :numero, :dateCreation, :prixVente, :prixVenteArabe,
:avance, :avanceArabe, :modePaiement, :dureePaiement, :nombreMois, :echeance, :note, :imageNote,
:idClient, :idProjet, :idBien, :typeBien, :code, :status, :revendre, :numeroCheque,
:societeArabe, :etatBienArabe, :facadeArabe, :articlesArabes, :created, :createdBy)')
or die(print_r($this->_db->errorInfo()));
$query->bindValue(':reference', $contrat->reference());
$query->bindValue(':numero', $contrat->numero());
$query->bindValue(':dateCreation', $contrat->dateCreation());
$query->bindValue(':prixVente', $contrat->prixVente());
$query->bindValue(':prixVenteArabe', $contrat->prixVenteArabe());
$query->bindValue(':avance', $contrat->avance());
$query->bindValue(':avanceArabe', $contrat->avanceArabe());
$query->bindValue(':modePaiement', $contrat->modePaiement());
$query->bindValue(':dureePaiement', $contrat->dureePaiement());
$query->bindValue(':nombreMois', $contrat->nombreMois());
$query->bindValue(':echeance', $contrat->echeance());
$query->bindValue(':note', $contrat->note());
$query->bindValue(':imageNote', $contrat->imageNote());
$query->bindValue(':idClient', $contrat->idClient());
$query->bindValue(':idProjet', $contrat->idProjet());
$query->bindValue(':idBien', $contrat->idBien());
$query->bindValue(':typeBien', $contrat->typeBien());
$query->bindValue(':code', $contrat->code());
$query->bindValue(':status', 'actif');
$query->bindValue(':revendre', 0);
$query->bindValue(':numeroCheque', $contrat->numeroCheque());
$query->bindValue(':societeArabe', $contrat->societeArabe());
$query->bindValue(':etatBienArabe', $contrat->etatBienArabe());
$query->bindValue(':facadeArabe', $contrat->facadeArabe());
$query->bindValue(':articlesArabes', $contrat->articlesArabes());
$query->bindValue(':created', $contrat->created());
$query->bindValue(':createdBy', $contrat->createdBy());
$query->execute();
$query->closeCursor();
}