private function save($bestelling) { $id = $bestelling->id; $retid = OpslagMedium::updateObject(TABLE_BEST, $bestelling->id, $bestelling->changedProperties); if ($retid != 0) { $query = $bestelling->getDatafieldname('id') . '=' . $bestelling->id . ' '; $this->convertdata(OpslagMedium::getObjectdataOnQuery(TABLE_BEST, $query)); $retobj->result = true; } }
private function save($orderid) { $id = $this->id; $retid = OpslagMedium::updateObject(TABLE_ASSIGNEDBOOKS, $this->id, $this->changedProperties); if ($retid != 0) { $query = $this->getDatafieldname('id') . '=' . $this->id . ' '; $this->convertdata(OpslagMedium::getObjectdataOnQuery(TABLE_ASSIGNEDBOOKS, $query)); $retobj->result = true; } }
function getbooksids($orderid) { $query = ' orderid=' . $orderid; $data = OpslagMedium::getObjectdataOnQuery('bestelling_boek', $query); return $data; }
/** * @param1 is the book I want to save * @return the saved object **/ public function save(Boek $book) { $properties = $book->giveAllPropertiesArray(); // gets all the properties in the form of a array foreach ($properties as $key => $value) { $this->valtodata($key, $value); } $id = $book->id; if ($book->id == 0) { $retid = OpslagMedium::storeObject($this::tablename, $properties); } else { $retid = OpslagMedium::updateObject($this::tablename, $book->id, $book->changedProperties); } if ($retid != 0) { $query = $this->getDatafieldname('id') . '=' . $retid . ' '; $this->convertdata(OpslagMedium::getObjectdataOnQuery($this::tablename, $query)); $retobj->result = true; return $this->GetBookObject(); } }