/** * Build the spool data record * * Method will build the spool record for saving * * @access protected * @param int $spoolId The spool ID * @param string $type The node type (customer, product, order, etc) * @param string $service The node service. This is module dependent * @param mixed $node The node ID/record array * @param int $parentSpoolId The optional parent node ID. Default is 0 (no parent) * @return array The spool data array */ final protected function buildSpool2Set($spoolId, $type, $service, $node, $parentSpoolId=0) { $spool = parent::buildSpool2Set($spoolId, $type, $service, $node, $parentSpoolId); if (!is_array($spool)) { return false; } $spool["realService"] = $this->findRealService($type, $service, $node); $spool["storeService"] = $type . $service; return $spool; }