MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

MMO\client

MMO\client · 5 symbols · generated 27 Oct 2026

function

extractSASSConfig

functions.php:85

Extract sass configuration from a sass file

function extractSASSConfig(string $filename, ?string &$theme = null): array
Namespace
MMO\client
$filenamestringthe sass file
$theme = nullnull | stringa reference on a string that tells which theme is configured. It stays null when the configuration is not for a theme.
returnsarraythe sass map
Call graph
function

mode

functions.php:160

The display modes of the application: its level and its layers (Modes). Not called modes(): php's names are not case sensitive, and the configuration would take that function for the class Modes.

function mode(): MMO\client\Modes
Namespace
MMO\client
returnsModes
if (\MMO\client\mode()->has('dev')) {echo $developerCues;}\MMO\client\mode()->atLeast('expert'); // the expert level is shown
Call graph
function

notify

functions.php:174

Give a notification to users, shown under the bell of their top bar until they read it (Notifications).

function notify(Traversable|array|string $recipients, string $title, array $data = []): int
Namespace
MMO\client
$recipientsTraversable | array | stringusers' uids
$titlestringtext
$data = []arraykind, body, url, icon, from, data
returnsinthow many were given
\MMO\client\notify($uids, 'New ticket #175: the save button', ['kind' => 'dev.ticket', 'url' => 'developer/boards', 'icon' => 'bug']);
Call graph
function

parseSassArray

functions.php:107

Converts sass string to an array

function parseSassArray(string $content): array
Namespace
MMO\client
$contentstringthe sass string
returnsarraynewly created array
Call graph
function

SVGSprite

functions.php:23

Compile a list of svg files into a svg sprite.

function SVGSprite(string $filename, array $files, string $extension = 'svg'): void
Namespace
MMO\client
All svgs are defined as symbols and can be reused as such: <svg class="icon icon--red"> <use xlink:href="/path/to/sprite.svg#icon-star"></use> </svg>
$filenamestringthe output filename
$filesarraythe svg files to include
$extension = 'svg'string
returnsvoid
Call graph