예제 #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);
 }
예제 #2
0
 function update(\woo\domain\DomainObject $object)
 {
     $values = array($object->getstart(), $object->getduration(), $object->getname(), $object->getid(), $object->getId());
     $this->updateStmt->execute($values);
 }
예제 #3
0
 function update(DomainObject $object)
 {
     $values = [$object->getName(), $object->getId(), $object->getId()];
     $this->updateStmt->execute($values);
 }
예제 #4
0
 function update(\woo\domain\DomainObject $object)
 {
     print "updating\n";
     $values = array($object->getName(), $object->getId(), $object->getId());
     $this->updateStmt->execute($values);
 }