first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<?php
if (SF_APP == 'backend') {
$dispatcher->connect('stAdminGenerator.generateStProduct', array('smMyTabsPluginListener', 'generate'));
$dispatcher->connect('autoStProductActions.postUpdateFromRequest', array('smMyTabsPluginListener', 'addUpdateMyTabs'));
}
if (SF_APP == 'frontend') {
stPluginHelper::addEnableModule('smMyTabsFrontend', 'frontend');
}

View File

@@ -0,0 +1,26 @@
edit:
display:
"Dodatkowe zakładki": [_my_tabs]
fields:
my_tabs: {name: Dodatkowe zakładki, hide_label: true}
export:
fields:
product_tab1: {name: Zakładka 1, class: smMyTabsImportExport}
product_tab2: {name: Zakładka 2, class: smMyTabsImportExport}
product_tab3: {name: Zakładka 3, class: smMyTabsImportExport}
product_tab4: {name: Zakładka 4, class: smMyTabsImportExport}
my_tab1: {name: Nazwa zakładki 1, sample: Zakładka 1, type: string}
my_tab2: {name: Nazwa zakładki 2, sample: Zakładka 2, type: string}
my_tab3: {name: Nazwa zakładki 3, sample: Zakładka 3, type: string}
my_tab4: {name: Nazwa zakładki 4, sample: Zakładka 4, type: string}
import:
fields:
product_tab1: {class: smMyTabsImportExport}
product_tab2: {class: smMyTabsImportExport}
product_tab3: {class: smMyTabsImportExport}
product_tab4: {class: smMyTabsImportExport}
my_tab1: {name: Nazwa zakładki 1, sample: Zakładka 1, type: custom}
my_tab2: {name: Nazwa zakładki 2, sample: Zakładka 2, type: custom}
my_tab3: {name: Nazwa zakładki 3, sample: Zakładka 3, type: custom}
my_tab4: {name: Nazwa zakładki 4, sample: Zakładka 4, type: custom}

View File

@@ -0,0 +1,97 @@
---
propel:
_attributes:
defaultIdMethod: native
package: plugins.smMyTabsPlugin.lib.model
st_product_has_tab1:
_attributes:
phpName: ProductHasTab1
created_at:
type: timestamp
updated_at:
type: timestamp
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
tab1_id:
type: INTEGER
required: true
foreignTable: st_product
foreignReference: id
onDelete: cascade
product_id:
type: INTEGER
foreignTable: st_product
foreignReference: id
onDelete: cascade
st_product_has_tab2:
_attributes:
phpName: ProductHasTab2
created_at:
type: timestamp
updated_at:
type: timestamp
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
tab2_id:
type: INTEGER
required: true
foreignTable: st_product
foreignReference: id
onDelete: cascade
product_id:
type: INTEGER
foreignTable: st_product
foreignReference: id
onDelete: cascade
st_product_has_tab3:
_attributes:
phpName: ProductHasTab3
created_at:
type: timestamp
updated_at:
type: timestamp
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
tab3_id:
type: INTEGER
required: true
foreignTable: st_product
foreignReference: id
onDelete: cascade
product_id:
type: INTEGER
foreignTable: st_product
foreignReference: id
onDelete: cascade
st_product_has_tab4:
_attributes:
phpName: ProductHasTab4
created_at:
type: timestamp
updated_at:
type: timestamp
id:
type: INTEGER
primaryKey: true
required: true
autoIncrement: true
tab4_id:
type: INTEGER
required: true
foreignTable: st_product
foreignReference: id
onDelete: cascade
product_id:
type: INTEGER
foreignTable: st_product
foreignReference: id
onDelete: cascade

View File

@@ -0,0 +1,21 @@
propel:
st_product:
_attributes:
phpName: Product
isI18N: true
i18nTable: st_product_i18n
st_product_i18n:
_attributes:
phpName: ProductI18n
my_tab1:
type: VARCHAR
size: 255
my_tab2:
type: VARCHAR
size: 255
my_tab3:
type: VARCHAR
size: 255
my_tab4:
type: VARCHAR
size: 255