本文整理汇总了PHP中Operation::status方法的典型用法代码示例。如果您正苦于以下问题:PHP Operation::status方法的具体用法?PHP Operation::status怎么用?PHP Operation::status使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Operation
的用法示例。
在下文中一共展示了Operation::status方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add
public function add(Operation $operation)
{
$query = $this->_db->prepare('INSERT INTO t_operation (date, dateReglement, compteBancaire, observation, reference,
montant, modePaiement, idContrat, numeroCheque, status, created, createdBy)
VALUES (:date, :dateReglement, :compteBancaire, :observation, :reference, :montant,
:modePaiement,:idContrat, :numeroCheque, :status, :created, :createdBy)') or die(print_r($this->_db->errorInfo()));
$query->bindValue(':date', $operation->date());
$query->bindValue(':dateReglement', $operation->dateReglement());
$query->bindValue(':compteBancaire', $operation->compteBancaire());
$query->bindValue(':observation', $operation->observation());
$query->bindValue(':montant', $operation->montant());
$query->bindValue(':reference', $operation->reference());
$query->bindValue(':modePaiement', $operation->modePaiement());
$query->bindValue(':numeroCheque', $operation->numeroCheque());
$query->bindValue(':status', $operation->status());
$query->bindValue(':idContrat', $operation->idContrat());
$query->bindValue(':created', $operation->created());
$query->bindValue(':createdBy', $operation->createdBy());
$query->execute();
$query->closeCursor();
}
示例2: updateByReleveActionController
public function updateByReleveActionController(Operation $operation){
$query = $this->_db->prepare(
'UPDATE t_operation SET date=:date, dateReglement=:dateReglement, compteBancaire=:compteBancaire,
montant=:montant, modePaiement=:modePaiement, observation=:observation,
numeroCheque=:numeroCheque, status=:status, updated=:updated, updatedBy=:updatedBy WHERE id=:id')
or die(print_r($this->_db->errorInfo()));
$query->bindValue(':id', $operation->id());
$query->bindValue(':date', $operation->date());
$query->bindValue(':dateReglement', $operation->dateReglement());
$query->bindValue(':compteBancaire', $operation->compteBancaire());
$query->bindValue(':observation', $operation->observation());
$query->bindValue(':montant', $operation->montant());
$query->bindValue(':modePaiement', $operation->modePaiement());
$query->bindValue(':numeroCheque', $operation->numeroCheque());
$query->bindValue(':status', $operation->status());
$query->bindValue(':updated', $operation->updated());
$query->bindValue(':updatedBy', $operation->updatedBy());
$query->execute();
$query->closeCursor();
}