*/ /** * Włączanie modułów */ stPluginHelper::addEnableModule('stInvoiceFrontend', 'frontend'); stPluginHelper::addEnableModule('stInvoiceBackend', 'backend'); stPluginHelper::addEnableModule('stInvoicePdf', 'frontend'); stPluginHelper::addEnableModule('stInvoicePdf', 'backend'); /** * Routingi */ stPluginHelper::addRouting('stInvoicePlugin', '/invoice/:action/*', 'stInvoiceFrontend', 'index', 'frontend'); stPluginHelper::addRouting('stInvoicePlugin', '/invoice/:action/*', 'stInvoiceBackend', 'list', 'backend'); stPluginHelper::addRouting('stInvoicePluginPdf', '/invoicePdf/*', 'stInvoicePdf', 'show', 'frontend'); stPluginHelper::addRouting('stInvoicePluginPdf', '/invoicePdf/*', 'stInvoicePdf', 'show', 'backend'); /** * Dodawanie socketów */ stSocketView::addComponent('stInvoiceBackend.configCustom.Content','stInvoiceBackend','configContent'); stSocketView::addComponent('stInvoiceBackend.viewCustom.Content','stInvoiceBackend','viewContent'); stSocketView::addComponent('stInvoiceBackend.viewEditCustom.Content','stInvoiceBackend','viewEditContent'); stSocketView::addComponent('under_basket_socket','stInvoiceFrontend','requestInvoice'); stEventDispatcher::getInstance()->connect('stOrderActions.postExecuteSave', array('stInvoiceListener', 'postExecuteOrderSave', 'last'));