function pbuUser($userID) { $s = microtime(true); // TODO: transaction support? $pbu = PBU::create($userID, $coordChanges); $pbu->close(); echo "<br>\nPBU for user " . $userID . " completed in " . (microtime(true) - $s) . "-<br>\n"; }
/** * @see WOTAPIAction::execute() */ public function execute() { var_dump($this->coordChanges); $this->pbuObj = PBU::create($this->userID, $this->coordChanges); $this->pbuObj->close(); $this->pbuStr = file_get_contents($this->pbuObj->getFileName()); parent::execute(); }