/** * Set an accountingspool record data * * Method will set an accountingspool record data * * @access public * @param string $type The node type (customer, product, order, etc) * @param string $service The node service. This is module dependent * @param mixed $nodeid The node ID OR an array containing information about the node * @param int $parentSpoolId The optional parent node ID. Default is null (no parent) * @param bool $assignCurrentLock TRUE to also assign the current lock, FALSE to leave as default. Default is FALSE * @return int The spool ID if the data was successfully written, FASLE othereise */ public function setAccountingSpool($type, $service, $nodeid, $parentSpoolId = null, $assignCurrentLock = false) { $lock = ''; if ($assignCurrentLock) { $lock = $this->getAccountingSessionKey('UUID'); if (!$lock || $lock == '') { return false; } } return parent::setAccountingSpool($this->getid(), $type, $service, $nodeid, $parentSpoolId, $lock); }