Skip to content

Commit dd579a6

Browse files
authored
Merge pull request #9788 from mendix/yl-apply-code-styling-to-function-names
Apply code styling to function names
2 parents aeb832b + 30a83a7 commit dd579a6

18 files changed

+123
-123
lines changed

content/en/docs/refguide/modeling/application-logic/expressions/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ This way the first statement gets evaluated.
6363

6464
Mendix provides you with a number of system items which describe the current user's session. You can use these in the same way as any other named item.
6565

66-
### $currentUser
66+
### `$currentUser`
6767

6868
This is an object of type `System.User` which contains the attributes for the currently signed-in user.
6969

7070
{{% alert color="warning" %}}
7171
For performance reasons, this information is cached. If you need the current value of attributes which might have changed during the session, you should retrieve the latest data from the database.
7272
{{% /alert %}}
7373

74-
### $currentSession
74+
### `$currentSession`
7575

7676
This is an object of type `System.Session` which contains the attributes for the current user session.
7777

content/en/docs/refguide/modeling/application-logic/expressions/add-date-function-calls.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The first parameter can be an attribute of a domain model entity of type **Date
1212

1313
You can also subtract a time period from the specified date. For more information, see [Subtract Date Function Calls](/refguide/subtract-date-function-calls/).
1414

15-
## addMilliseconds {#addMilliseconds}
15+
## `addMilliseconds` {#addMilliseconds}
1616

1717
The `addMilliseconds` function adds a specified number of milliseconds to a date.
1818

@@ -47,7 +47,7 @@ The output is:
4747
"Mon Jan 01 01:01:02:400 CET 2007"
4848
```
4949

50-
## addSeconds {#addSeconds}
50+
## `addSeconds` {#addSeconds}
5151

5252
The `addSeconds` function adds a specified number of seconds to a date.
5353

@@ -82,7 +82,7 @@ The output is:
8282
"Mon Jan 01 01:01:03 CET 2007"
8383
```
8484

85-
## addMinutes {#addMinutes}
85+
## `addMinutes` {#addMinutes}
8686

8787
The `addMinutes` function adds a number of minutes to a date.
8888

@@ -117,7 +117,7 @@ The output is:
117117
"Mon Jan 01 01:04:01 CET 2007"
118118
```
119119

120-
## addHours {#addHours}
120+
## `addHours` {#addHours}
121121

122122
The `addHours` function adds a number of hours to a date.
123123

@@ -152,7 +152,7 @@ The output is:
152152
"Mon Jan 02 02:01:01 CET 2007"
153153
```
154154

155-
## addDays[UTC] {#addDays}
155+
## `addDays[UTC]` {#addDays}
156156

157157
The `addDaysUTC` function adds a number of days to a date. `addDays` uses the server's calendar and `addDaysUTC` uses the UTC calendar.
158158

@@ -187,7 +187,7 @@ The output is:
187187
"Mon Jan 04 01:01:01 CET 2007"
188188
```
189189

190-
## addWeeks[UTC] {#addWeeks}
190+
## `addWeeks[UTC]` {#addWeeks}
191191

192192
The `addWeeksUTC` function adds a number of weeks to a date using the UTC calendar as opposed to `addWeeks` which uses the server's one.
193193

@@ -222,7 +222,7 @@ The output is:
222222
"Mon Jan 15 01:01:01 CET 2007"
223223
```
224224

225-
## addMonths[UTC] {#addMonths}
225+
## `addMonths[UTC]` {#addMonths}
226226

227227
The `addMonthsUTC` function adds a number of months to a date using the UTC calendar as opposed to `addMonths` which uses the server's one.
228228

@@ -257,7 +257,7 @@ The output is:
257257
"Mon Feb 01 01:01:01 CET 2008"
258258
```
259259

260-
## addQuarters[UTC] {#addQuarters}
260+
## `addQuarters[UTC]` {#addQuarters}
261261

262262
The `addQuartersUTC` function adds a number of quarters to a date using the UTC calendar as opposed to `addQuarters` which uses the server's one.
263263

@@ -292,7 +292,7 @@ The output is:
292292
Mon Apr 01 01:01:01 CET 2007
293293
```
294294

295-
## addYears[UTC] {#addYears}
295+
## `addYears[UTC]` {#addYears}
296296

297297
The `addYearsUTC` function adds a number of years to a date using the UTC calendar as opposed to `addYears` which uses the server's one.
298298

content/en/docs/refguide/modeling/application-logic/expressions/arithmetic-expressions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 20
88

99
This document describes the arithmetic operators which are supported in expressions. These all work on numeric data types (Integer/Long and Decimal).
1010

11-
## Multiplication (*) {#multiplication}
11+
## Multiplication (`*`) {#multiplication}
1212

1313
Multiplies two numbers.
1414

@@ -41,7 +41,7 @@ The output is:
4141
6
4242
```
4343

44-
## Division (div or :) {#division}
44+
## Division (`div` or `:`) {#division}
4545

4646
Divides two numbers. You can use either the `div` or colon ( `:` ) syntax, as can be seen below in the examples. The colon ( `:` ) syntax is inspired by the divide symbol `÷`. We cannot use the more conventional slash ( / ) syntax because that would conflict with the slash which is used for separating objects and members.
4747

@@ -128,7 +128,7 @@ The result of a division is only an approximation if it has an infinite decimal
128128

129129
Therefore, it is recommended to do division operations last.
130130

131-
## Modulo (mod) {#modulo}
131+
## Modulo (`mod`) {#modulo}
132132

133133
Calculates the remainder of the division of one number by another. In other words, `m` modulo `n` corresponds to: `m = p + k*n`, where `p` is the result of the operation `m` modulo `n`.
134134

@@ -161,7 +161,7 @@ the output is:
161161
3
162162
```
163163

164-
## Addition (+) {#addition}
164+
## Addition (`+`) {#addition}
165165

166166
Adds two numbers.
167167

@@ -196,7 +196,7 @@ the output is:
196196
1
197197
```
198198

199-
## Subtraction (-) {#subtraction}
199+
## Subtraction (`-`) {#subtraction}
200200

201201
Subtracts the second input from the first.
202202

content/en/docs/refguide/modeling/application-logic/expressions/begin-of-date-function-calls.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The first parameter can be an attribute of an entity of type **Date and time**,
1313

1414
You can also calculate the end of a time period from the specified date. For more information, see [End-of Date Function Calls](/refguide/end-of-date-function-calls/).
1515

16-
## beginOfDay {#beginOfDay}
16+
## `beginOfDay` {#beginOfDay}
1717

1818
The `beginOfDay` function calculates the beginning of the day compared to the initial date.
1919

@@ -47,7 +47,7 @@ The output is:
4747
"Wed Feb 07 00:00 CET 2007"
4848
```
4949

50-
## beginOfWeek {#beginOfWeek}
50+
## `beginOfWeek` {#beginOfWeek}
5151

5252
The `beginOfWeek` function calculates the beginning of the week compared to the initial date. The beginning and the end of the week are based on the user's locale. In the case of an anonymous user, the browser's locale is used instead.
5353

@@ -81,7 +81,7 @@ The output is:
8181
"Sun Feb 04 00:00 CET 2007"
8282
```
8383

84-
## beginOfMonth {#beginOfMonth}
84+
## `beginOfMonth` {#beginOfMonth}
8585

8686
The `beginOfMonth` function calculates the beginning of the month compared to the initial date.
8787

@@ -115,7 +115,7 @@ The output is:
115115
"Thu Feb 01 00:00 CET 2007"
116116
```
117117

118-
## beginOfYear {#beginOfYear}
118+
## `beginOfYear` {#beginOfYear}
119119

120120
The `beginOfYear` function calculates the beginning of the year compared to the initial date.
121121

content/en/docs/refguide/modeling/application-logic/expressions/between-date-function-calls.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 100
88

99
Between date function calls calculate the absolute difference between two dates. The difference will always be zero or a positive number.
1010

11-
## millisecondsBetween {#millisecondsBetween}
11+
## `millisecondsBetween` {#millisecondsBetween}
1212

1313
The `millisecondsBetween` function calculates the absolute difference between the input values in milliseconds.
1414

@@ -43,7 +43,7 @@ The output is:
4343
2000
4444
```
4545

46-
## secondsBetween {#secondsBetween}
46+
## `secondsBetween` {#secondsBetween}
4747

4848
The `secondsBetween` function calculates the absolute difference between the input values in seconds.
4949

@@ -78,7 +78,7 @@ The output is:
7878
62
7979
```
8080

81-
## minutesBetween {#minutesBetween}
81+
## `minutesBetween` {#minutesBetween}
8282

8383
The `minutesBetween` function calculates the absolute difference between the input values in minutes.
8484

@@ -113,7 +113,7 @@ The output is:
113113
1
114114
```
115115

116-
## hoursBetween {#hoursBetween}
116+
## `hoursBetween` {#hoursBetween}
117117

118118
The `hoursBetween` function calculates the absolute difference between the input values in hours.
119119

@@ -148,7 +148,7 @@ The output is:
148148
2.5
149149
```
150150

151-
## daysBetween {#daysBetween}
151+
## `daysBetween` {#daysBetween}
152152

153153
The `daysBetween` function calculates the absolute difference between the input values in days.
154154

@@ -183,7 +183,7 @@ The output is:
183183
43
184184
```
185185

186-
## weeksBetween {#weeksBetween}
186+
## `weeksBetween` {#weeksBetween}
187187

188188
The `weeksBetween` function calculates the absolute difference between the input values in weeks.
189189

@@ -218,7 +218,7 @@ The output results in 8 days divided by 7 days in a week:
218218
1.1428571428571428
219219
```
220220

221-
## calendarMonthsBetween {#calendarMonthsBetween}
221+
## `calendarMonthsBetween` {#calendarMonthsBetween}
222222

223223
The `calendarMonthsBetween` function calculates the absolute difference between the input values in months. Time will be ignored. The dates are assumed to be in the end-user's local time zone.
224224

@@ -253,7 +253,7 @@ The output results in the amount of months between the two dates:
253253
7
254254
```
255255

256-
## calendarYearsBetween {#calendarYearsBetween}
256+
## `calendarYearsBetween` {#calendarYearsBetween}
257257

258258
The `calendarYearsBetween` function calculates the absolute difference between the input values in years. Time will be ignored. The dates are assumed to be in the end-user's local time zone.
259259

content/en/docs/refguide/modeling/application-logic/expressions/boolean-expressions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 50
88

99
Boolean expressions can be used to perform logical operations that return either true or false.
1010

11-
## and {#and}
11+
## `and` {#and}
1212

1313
The `and` operator checks two Boolean expressions and only returns `true` if both of the expressions are true.
1414

@@ -32,7 +32,7 @@ The examples below illustrate which value the expression returns:
3232

3333
The output is `false`, because only the second expression is `true`.
3434

35-
## or {#or}
35+
## `or` {#or}
3636

3737
The `or` operator combines two Boolean expressions, and returns `true` if at least one of the expressions is true.
3838

@@ -58,7 +58,7 @@ The examples below illustrate which value the expression returns:
5858

5959
The expression will return `false`, because both expressions are false.
6060

61-
## not {#not}
61+
## `not` {#not}
6262

6363
The `not` operator negates the specified Boolean expression.
6464

content/en/docs/refguide/modeling/application-logic/expressions/end-of-date-function-calls.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The first parameter can be an attribute of an entity of type **Date and time**,
1313

1414
You can also calculate the end of a time period from the specified date. For more information, see [Begin-of Date Function Calls](/refguide/begin-of-date-function-calls/).
1515

16-
## endOfDay {#endOfDay}
16+
## `endOfDay` {#endOfDay}
1717

1818
The `endOfDay` function calculates the end of the day compared to the initial date.
1919

@@ -45,7 +45,7 @@ The output is:
4545
"Wed Feb 07 23:59 CET 2007"
4646
```
4747

48-
## endOfWeek {#endOfWeek}
48+
## `endOfWeek` {#endOfWeek}
4949

5050
The `endOfWeek` function calculates the end of the week compared to the initial date. The beginning and the end of the week are based on the user's locale. In the case of an anonymous user, the browser's locale is used instead.
5151

@@ -77,7 +77,7 @@ The output is:
7777
"Sat Feb 10 23:59 CET 2007"
7878
```
7979

80-
## endOfMonth {#endOfMonth}
80+
## `endOfMonth` {#endOfMonth}
8181

8282
The `endOfMonth` function calculates the end of the month compared to the initial date.
8383

@@ -109,7 +109,7 @@ The output is:
109109
"Wed Feb 28 23:59 CET 2007"
110110
```
111111

112-
## endOfYear {#endOfYear}
112+
## `endOfYear` {#endOfYear}
113113

114114
The `endOfYear` function calculates the end of the year compared to the initial date.
115115

content/en/docs/refguide/modeling/application-logic/expressions/enumerations-in-expressions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else
3434
false
3535
```
3636

37-
## getCaption {#getCaption}
37+
## `getCaption` {#getCaption}
3838

3939
The `getCaption` function takes an enumeration value and returns the caption of this value. The *caption* is a translatable string and the result of this function depends on the current language.
4040

@@ -64,7 +64,7 @@ The output can be:
6464
Gouden
6565
```
6666

67-
## getKey {#getKey}
67+
## `getKey` {#getKey}
6868

6969
The `getKey` function takes an enumeration value and returns the key (called *Name* in Studio Pro) of this value. The key is the technical name for the enumeration value and is language independent. For more information, see [Enumerations](/refguide/enumerations/).
7070

content/en/docs/refguide/modeling/application-logic/expressions/length.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 135
88

99
Basic function to determine the length of a string or a list.
1010

11-
## length
11+
## `length`
1212

1313
Determines the length of a string or a list and outputs the value as an integer.
1414

0 commit comments

Comments
 (0)