-
Notifications
You must be signed in to change notification settings - Fork 1
/
SilverStripe PHP Static Variables.xml
70 lines (70 loc) · 4.04 KB
/
SilverStripe PHP Static Variables.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
62
63
64
65
66
67
68
69
70
<templateSet group="SilverStripe PHP Static Variables">
<template name="hm" value="/** * @var array */ private static $has_many = [ '$VAR$' => '$END$' ];" description="Has many relation" toReformat="true" toShortenFQNames="true">
<variable name="VAR" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="db" value="/** * @var array */ private static $db = [ '$VAR$' => '$END$' ];" description="DB fields" toReformat="false" toShortenFQNames="true">
<variable name="VAR" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="ho" value="/** * @var array */ private static $has_one = [ '$VAR$' => '$END$' ];" description="Has one relation" toReformat="false" toShortenFQNames="true">
<variable name="VAR" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="mm" value="/** * @var array */ private static $many_many = [ '$VAR$' => '$END$' ];" description="Many-many relation" toReformat="false" toShortenFQNames="true">
<variable name="VAR" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="aa" value="/** * @var array */ private static $allowed_actions = [ '$END$' ];" description="Allowed actions" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="bmm" value="/** * @var array */ private static $belongs_many_many = [ '$VAR$' => '$END$' ];" description="Belongs many many" toReformat="false" toShortenFQNames="true">
<variable name="VAR" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="sef" value="/** * @var array */ private static $searchable_fields = [ $END$ ];" description="Searchable fields" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="suf" value="/** * @var array */ private static $summary_fields = [ $END$ ];" description="Summary fields" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="mmef" value="/** * @var array */ private static $many_many_extraFields = [ '$RELATION$' => [ '$NAME$' => '$TYPE$' ] ]; " description="Many-many extra fields" toReformat="false" toShortenFQNames="true">
<variable name="RELATION" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="TYPE" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="d" value="/** * @var array */ private static $defaults = [ $END$ ]; " description="Defaults" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="ds" value="/** * @var string */ private static $default_sort = '$END$';" description="Default sort" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
<template name="owns" value="/** * @var array */ private static $owns = [ '$END$' ];" description="Owns" toReformat="false" toShortenFQNames="true">
<context>
<option name="PHP" value="true" />
</context>
</template>
</templateSet>