final class SoaContent (View source)

Splits stored SOA content into its seven named fields for display.

Constants

FIELD_KEYS

Methods

static array|null
parse(string $content)

No description

static string|null
duration(string $seconds)

Compact duration in the largest whole units, e.g. 10800 is "3h" and 90000 is "1d 1h".

Details

static array|null parse(string $content)

No description

Parameters

string $content

Return Value

array|null

Field key to value, or null when the content is not exactly seven fields

static string|null duration(string $seconds)

Compact duration in the largest whole units, e.g. 10800 is "3h" and 90000 is "1d 1h".

assets/textareaAutoResize.js (soaDuration) must produce the same output.

Parameters

string $seconds

Return Value

string|null

Null when the value is not a plain non-negative integer