dbXapp
2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Toggle main menu visibility
Loading...
Searching...
No Matches
shop-attribute-definition.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
(
'group_id'
,
'int'
,
'Artikelgruppe'
,
'int'
,
'text-label'
);
7
$addField
(
'attr_key'
,
'varchar'
,
'Attribut-Key'
,
'*|max=80'
,
'text-label'
);
8
$addField
(
'title'
,
'varchar'
,
'Titel'
,
'*|max=160'
,
'text-label'
);
9
$addField
(
'input_type'
,
'varchar'
,
'Typ'
,
'*|max=30'
,
'text-label'
,array(
'default'
=>
'text'
));
10
$addField
(
'unit'
,
'varchar'
,
'Einheit'
,
'max=40'
,
'text-label'
);
11
$addField
(
'options'
,
'text'
,
'Optionen'
,
'max=4000'
,
'textarea-label'
);
12
$addField
(
'required'
,
'int'
,
'Pflicht'
,
'int'
,
'checkbox-label'
);
13
$addField
(
'filterable'
,
'int'
,
'Filterbar'
,
'int'
,
'checkbox-label'
,array(
'default'
=>
'1'
));
14
$addField
(
'comparable'
,
'int'
,
'Vergleichbar'
,
'int'
,
'checkbox-label'
);
15
$addField
(
'active'
,
'int'
,
'Aktiv'
,
'int'
,
'checkbox-label'
,array(
'default'
=>
'1'
));
16
$addField
(
'sorter'
,
'int'
,
'Sortierung'
,
'int'
,
'text-label'
,array(
'default'
=>
'100'
));
17
?>
$fields
$fields[]
Definition
config.dd.php:16
$field
$field
Definition
config.dd.php:4
$addField
$addField
Definition
shop-attribute-definition.fd.php:2
$addField
$addField
Definition
shopAttributeDefinition.dd.php:18
dbx
modules
dbxShop
fd
shop-attribute-definition.fd.php
Generated by
1.17.0