first commit
This commit is contained in:
35
plugins/stEcardPlugin/config/config.php
Normal file
35
plugins/stEcardPlugin/config/config.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* SOTESHOP/stEcardPlugin
|
||||
*
|
||||
* Ten plik należy do aplikacji stEcardPlugin opartej na licencji (Professional License SOTE).
|
||||
* Nie zmieniaj tego pliku, jeśli chcesz korzystać z automatycznych aktualizacji oprogramowania.
|
||||
* Jeśli chcesz wprowadzać swoje modyfikacje do programu, zapoznaj się z dokumentacją, jak zmieniać
|
||||
* oprogramowanie bez zmiany kodu bazowego http://www.sote.pl/modifications
|
||||
*
|
||||
* @package stEcardPlugin
|
||||
* @subpackage configs
|
||||
* @copyright SOTE (www.sote.pl)
|
||||
* @license http://www.sote.pl/license/sote (Professional License SOTE)
|
||||
* @version $Id: config.php 8027 2010-08-31 12:22:15Z michal $
|
||||
* @author Michal Prochowski <michal.prochowski@sote.pl>
|
||||
*/
|
||||
|
||||
/**
|
||||
* Dodanie informacji o istnieniu płatności
|
||||
*/
|
||||
stPluginHelper::addConfigValue('stPaymentType', 'stEcardPlugin', array('name' => 'stEcard', 'description' => 'Płatność przez serwis ecard.pl'));
|
||||
|
||||
|
||||
if (SF_APP == 'backend'){
|
||||
stPluginHelper::addEnableModule('stEcardBackend', 'backend');
|
||||
stPluginHelper::addRouting('stEcardPlugin', '/ecard', 'stEcardBackend', 'index', 'backend');
|
||||
stConfiguration::addModule('stEcardPlugin', 'group_3', 1);
|
||||
}
|
||||
|
||||
if (SF_APP == 'frontend'){
|
||||
stPluginHelper::addEnableModule('stEcardFrontend', 'frontend');
|
||||
stPluginHelper::addRouting('stEcardPlugin', '/ecard/:action/*', 'stEcardFrontend', 'config', 'frontend');
|
||||
stPluginHelper::addRouting('stEcardSecure', '/ecard/statusReport/:hash', 'stEcardFrontend', 'statusReport', 'frontend');
|
||||
stSecurity::addCSPException('*.ecard.pl');
|
||||
}
|
||||
16
plugins/stEcardPlugin/config/schema.yml
Normal file
16
plugins/stEcardPlugin/config/schema.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
propel:
|
||||
_attributes:
|
||||
defaultIdMethod: native
|
||||
package: plugins.stEcardPlugin.lib.model
|
||||
st_ecard_transaction:
|
||||
_attributes:
|
||||
phpName: EcardTransaction
|
||||
id:
|
||||
type: INTEGER
|
||||
primaryKey: true
|
||||
required: true
|
||||
autoIncrement: true
|
||||
order_id:
|
||||
type: INTEGER
|
||||
required: true
|
||||
Reference in New Issue
Block a user