Beispiel #1
0
 public function setGatheringItemTemplate(GatheringItemTemplateType $type, GatheringItemTemplate $template)
 {
     $db = Database::connection();
     $db->Execute('delete from GatheringItemSelectedTemplates where gaiID = ? and gatTypeID = ?', array($this->gaiID, $type->getGatheringItemTemplateTypeID()));
     $db->Execute('insert into GatheringItemSelectedTemplates (gatTypeID, gaiID, gatID) values (?, ?, ?)', array($type->getGatheringItemTemplateTypeID(), $this->gaiID, $template->getGatheringItemTemplateID()));
     $this->loadGatheringItemTemplates();
 }