Recipe functions: server and client — part 3
Generated from brezel/api@ddd04f543e0fecc433a351dcaab24d39087b24be — do not edit by hand.
publicWebhook
Section titled “publicWebhook”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
publicWebhook | yes | no | Server: publicWebhook(event) | Builds a public webhook URL. |
| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
rand | yes | no | Server: rand(int min, int max) | Generates a random integer. |
random.numberBetween
Section titled “random.numberBetween”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
random.numberBetween | yes | no | Server: random.numberBetween(int1 = 0, int2 = 2147483647) | Generates a random number within bounds. |
random.password
Section titled “random.password”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
random.password | yes | no | Server: random.password(int minLength = 6, int maxLength = 20) | Generates a random password. |
random.token
Section titled “random.token”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
random.token | yes | no | Server: random.token(int length = 20) | Generates a random token. |
random.uuid
Section titled “random.uuid”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
random.uuid | yes | no | Server: random.uuid() | Generates a UUID. |
| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
range | yes | no | Server: range(string|int|float start, string|int|float end, int|float step = 1) | Builds a range of values. |
| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
raw | yes | no | Server: raw(string value) | Creates a raw query expression. |
regex.match
Section titled “regex.match”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
regex.match | yes | no | Server: regex.match(string pattern, string subject) | Returns the first regular expression match. |
regex.matchAll
Section titled “regex.matchAll”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
regex.matchAll | yes | no | Server: regex.matchAll(string pattern, string subject) | Returns all regular expression matches. |
regex.quote
Section titled “regex.quote”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
regex.quote | yes | no | Server: regex.quote(string str, ?string delimiter = null) | Escapes text for a regular expression. |
regex.replace
Section titled “regex.replace”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
regex.replace | yes | no | Server: regex.replace(string pattern, string replacement, string subject) | Replaces regular expression matches. |
relation
Section titled “relation”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
relation | yes | yes | Server: relation(obj); Client: relation(obj) | Creates an id/module_id relation object. |
replace
Section titled “replace”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
replace | yes | yes | Server: replace(array|string search, array|string replace, array|string subject, count = null); Client: replace(search, replace, subject) | Replaces text; client uses JavaScript String.replace. |
rotateBase64
Section titled “rotateBase64”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
rotateBase64 | yes | no | Server: rotateBase64(...args) | Rotates a Base64-encoded image. |
| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
round | yes | yes | Server: round(int|float num, int precision = 0, RoundingMode|int mode = ); Client: round(x, decimals?) | Rounds a number. |
| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
rrule | yes | yes | Server: rrule(array options = []); Client: rrule(options?: Partial<RRuleOptions>) | Creates a recurrence rule. |
rruleSet
Section titled “rruleSet”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
rruleSet | yes | no | Server: rruleSet(?string string = null, default_dtstart = null) | Creates a recurrence rule set. |
| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
rtrim | yes | no | Server: rtrim(...args) | Trims characters from the end of a string. |
setState
Section titled “setState”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
setState | no | yes | Client: setState(key: string, value: any) | Writes temporary client state. |
simplexml_load_string
Section titled “simplexml_load_string”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
simplexml_load_string | yes | no | Server: simplexml_load_string(...args) | Parses XML. |
| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
sin | yes | yes | Server: sin(float num); Client: sin(x) | Sine. |
slugify
Section titled “slugify”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
slugify | yes | yes | Server: slugify(string value, string separator = "-"); Client: slugify(text, separator?) | Converts text to a URL slug. |
| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
split | yes | yes | Server: split(string separator, string); Client: split(separator, value) | Splits text at a separator. |
sprintf
Section titled “sprintf”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
sprintf | yes | no | Server: sprintf(...args) | Formats a string. |
| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
sqrt | yes | yes | Server: sqrt(float num); Client: sqrt(x) | Square root. |
startsWith
Section titled “startsWith”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
startsWith | yes | no | Server: startsWith(...args) | Checks a string prefix. |
str_pad
Section titled “str_pad”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
str_pad | yes | no | Server: str_pad(...args) | Pads a string. |
string
Section titled “string”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
string | yes | no | Server: string(value) | Converts a value to a string. |
stripTags
Section titled “stripTags”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
stripTags | yes | no | Server: stripTags(value) | Removes HTML and PHP tags. |
stripslashes
Section titled “stripslashes”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
stripslashes | yes | no | Server: stripslashes(...args) | Removes backslash escaping. |
strpos
Section titled “strpos”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
strpos | yes | no | Server: strpos(...args) | Finds the position of a substring. |
strtotime
Section titled “strtotime”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
strtotime | yes | no | Server: strtotime(...input) | Parses a date/time string as a timestamp. |
substr
Section titled “substr”| Function | Server | Client | Signature | Short description |
|---|---|---|---|---|
substr | yes | no | Server: substr(...args) | Extracts a substring. |