dbXapp 2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Loading...
Searching...
No Matches
workflow-module-bind.fd.php
Go to the documentation of this file.
1<?php
2
3$addField = function($name, $type, $label, $rules, $tpl, $extra = array()) use (&$fields) {
4 $field=array();
5 $field['name']=$name;
6 $field['type']=$type;
7 $field['index']='';
8 $field['length']=$extra['length'] ?? '';
9 $field['default']=$extra['default'] ?? '';
10 $field['label']=$label;
11 $field['rules']=$rules;
12 $field['tooltip']=$extra['tooltip'] ?? '';
13 $field['errormsg']=$extra['errormsg'] ?? '';
14 $field['placeholder']=$extra['placeholder'] ?? '';
15 $field['convert']='';
16 $field['protect']='0';
17 $field['mask']='';
18 $field['data']=$extra['data'] ?? '';
19 $field['options']=$extra['options'] ?? '';
20 $field['tpl']=$tpl;
22};
23
24$addField('modul','varchar','Modul','parameter|min=2|max=80','text-label',array('placeholder'=>'dbxContact'));
25$addField('bind_key','varchar','Bind Key','parameter|min=2|max=80','text-label',array('placeholder'=>'contact_reply'));
26$addField('title','varchar','Titel','*|min=2|max=160','text-label');
27$addField('description','mediumtext','Beschreibung','*|max=3000','textarea-label',array('data'=>'rows=3'));
28$addField('bind_json','mediumtext','Binding JSON','*|min=2|max=30000','textarea-label',array('data'=>'rows=18'));
29$addField('active','int','Aktiv','int','checkbox-label',array('default'=>'1'));
30
31?>
$fields[]
Definition config.dd.php:16
$field
Definition config.dd.php:4