Esempio n. 1
0
 function newUpdate(\woo\domain\DomainObject $obj)
 {
     // not type checking removed
     $id = $obj->getId();
     $cond = null;
     $values['name'] = $obj->getName();
     if ($id > -1) {
         $cond['id'] = $id;
     }
     return $this->buildStatement("venue", $values, $cond);
 }
Esempio n. 2
0
 function update(\woo\domain\DomainObject $object)
 {
     $values = array($object->getstart(), $object->getduration(), $object->getname(), $object->getid(), $object->getId());
     $this->updateStmt->execute($values);
 }
Esempio n. 3
0
 function update(DomainObject $object)
 {
     $values = [$object->getName(), $object->getId(), $object->getId()];
     $this->updateStmt->execute($values);
 }
Esempio n. 4
0
 function update(\woo\domain\DomainObject $object)
 {
     print "updating\n";
     $values = array($object->getName(), $object->getId(), $object->getId());
     $this->updateStmt->execute($values);
 }