public function __construct() { // Setup the required variables for the module parent::__construct(); $this->_id = 'accounting_stoneedge'; $this->_name = GetLang('StoneEdgeName'); $this->_description = GetLang('StoneEdgeDesc'); $this->_help = sprintf(GetLang('StoneEdgeHelp'),$GLOBALS['ShopPathSSL']); }
/** * Set the spool return * * Method will set the stored executed spool return * * @access public * @param int $spoolId The spool ID to set the return to * @param string $return The spool return * @return bool TRUE if the spool exists and the return was set, FALSE otherwise */ public function setAccountingSpoolReturn($spoolId, $return) { if (!isId($spoolId)) { return false; } if (is_object($return) && method_exists($return, 'asXML')) { $return = $return->asXML(); } return parent::setAccountingSpoolReturn($this->getid(), $spoolId, $return); }
/** * 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; }