protected function addZoneImpl(Zone $zone) { $zone->setId($this->nextId()); $this->getMain()->getServer()->getScheduler()->scheduleAsyncTask(new FileWriteTask($this->dir . "zones/" . $zone->getId() . ".weaz", json_encode(["Id" => $zone->getId(), "Space" => serialize($zone->getSpace()), "Type" => $zone->getType()]))); }
public function onResult(QueryResult $result) { $this->zone->setId($result->insertId); }
public function onResult(QueryResult $result) { $this->zone->setId($result->insertId); $this->dataProvider->onAddedZoneCallback($this->zone); }