Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function ProcessRow($row, $parentID = -1) {
- $dataOut = array();
- foreach ($row->attributes() as $column => $value) {
- $dataOut[$column] = $value;
- }
- $dataOut['ownerID'] = $this->ownerID; // The AssetManager class is constructed to contain the character/corporation ID.
- if ($parentID != -1) $dataOut['parentItemID'] = $parentID;
- $queryString = "INSERT INTO ".$this->dbTable." (".implode(",", array_keys($dataOut)).")
- VALUES (\"".implode("\",\"", array_values($dataOut))."\")";
- $this->db->Query($queryString); // A simple DB class to encapsulate DB calls.
- if (count($row->children())) {
- foreach ($row->rowset->row as $row) {
- $this->ProcessRow($row, $dataOut['itemID']);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment