/** * Wrapper method for the parent::buildSpool2Get() method * * Method is basically a wrapper for the parent::buildSpool2Get() method. This is defined to handle the special * case of the 'prerequisite' spool. All error handling should still be handled by the parent::buildSpool2Get() * method * * @access protected * @param int $spool The saved spool array * @return array The spool data array */ protected function buildSpool2Get($spool) { $parsedSpool = parent::buildSpool2Get($spool); if (isset($parsedSpool["nodeType"]) && $parsedSpool["nodeType"] == "prerequisite") { $searchData = array( "Service" => $spool["nodeData"]["Service"], "Type" => $spool["nodeData"]["Type"] ); $reference = $this->getReference($parsedSpool["nodeType"], $searchData, '', '', false); if (is_array($reference)) { $parsedSpool["referenceId"] = $reference["accountingrefid"]; $parsedSpool["referenceData"] = $reference["accountingrefvalue"]; } } return $parsedSpool; }