Esempio n. 1
0
 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);
 }
Esempio n. 3
0
 public function onResult(QueryResult $result)
 {
     $this->zone->setId($result->insertId);
     $this->dataProvider->onAddedZoneCallback($this->zone);
 }