-
Notifications
You must be signed in to change notification settings - Fork 2
/
SilverStripe PHP Fields.xml
61 lines (61 loc) · 3.51 KB
/
SilverStripe PHP Fields.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<templateSet group="SilverStripe PHP Fields">
<template name="gf" value="GridField::create( '$NAME$', $LABEL$, $this->$DATALIST$(), GridFieldConfig_$TYPE$::create() )$END$" description="GridField" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="LABEL" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="DATALIST" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="TYPE" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="cbf" value="CheckboxField::create('$NAME$', $LABEL$)$END$" description="CheckBoxField" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="LABEL" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="df" value="DateField::create('$NAME$', $LABEL$)$END$" description="DateField" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="LABEL" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="lf" value="LiteralField::create('$NAME$', $LABEL$)$END$" description="LiteralField" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="LABEL" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="nf" value="NumericField::create('$NAME$', $LABEL$)$END$" description="NumericField" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="LABEL" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="tf" value="TextField::create('$NAME$', $LABEL$)$END$" description="TextField" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="LABEL" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="fg" value="FieldGroup::create( $LABEL$, [ $FIELDS$ ] )$END$" description="FieldGroup" toReformat="false" toShortenFQNames="true">
<variable name="LABEL" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="FIELDS" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="ddf" value="DropdownField::create( '$NAME$', $LABEL$, $DATALIST$ )$END$ " description="DropdownField" toReformat="false" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="LABEL" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="DATALIST" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
</templateSet>