dbXapp
2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Toggle main menu visibility
Loading...
Searching...
No Matches
shop-product-attribute-value.fd.php
Go to the documentation of this file.
1
<?php
2
$addField
=
function
($name,$type,$label,$rules,$tpl,$extra=array()) use (&
$fields
){
3
$field
=array(
'name'
=>$name,
'type'
=>$type,
'index'
=>
''
,
'length'
=>$extra[
'length'
] ??
''
,
'default'
=>$extra[
'default'
] ??
''
,
'label'
=>$label,
'rules'
=>$rules,
'tooltip'
=>
''
,
'errormsg'
=>
''
,
'placeholder'
=>
''
,
'convert'
=>
''
,
'protect'
=>
'0'
,
'mask'
=>
''
,
'data'
=>$extra[
'data'
] ??
''
,
'options'
=>$extra[
'options'
] ??
''
,
'tpl'
=>$tpl);
4
$fields
[]=
$field
;
5
};
6
$addField
(
'product_id'
,
'int'
,
'Artikel'
,
'int'
,
'text-label'
);
7
$addField
(
'attribute_id'
,
'int'
,
'Attribut'
,
'int'
,
'text-label'
);
8
$addField
(
'value_text'
,
'varchar'
,
'Wert'
,
'max=255'
,
'text-label'
);
9
$addField
(
'value_num'
,
'float'
,
'Zahlenwert'
,
'float'
,
'text-label'
);
10
$addField
(
'unit_override'
,
'varchar'
,
'Einheit abweichend'
,
'max=40'
,
'text-label'
);
11
$addField
(
'active'
,
'int'
,
'Aktiv'
,
'int'
,
'checkbox-label'
,array(
'default'
=>
'1'
));
12
?>
$fields
$fields[]
Definition
config.dd.php:16
$field
$field
Definition
config.dd.php:4
$addField
$addField
Definition
shop-product-attribute-value.fd.php:2
$addField
$addField
Definition
shopAttributeDefinition.dd.php:18
dbx
modules
dbxShop
fd
shop-product-attribute-value.fd.php
Generated by
1.17.0