Functions

Add a flagrant text message.

add_flagrant(\SHORT_TEXT $message, integer $days, \LONG_TEXT $notes, \BINARY $validated) : \AUTO_LINK

Parameters

$message

\SHORT_TEXT

The message

$days

integer

The number of days to display for

$notes

\LONG_TEXT

Notes

$validated

\BINARY

Whether the message is for immediate use

Returns

\AUTO_LINKThe ID of the newly added message

Choose a flagrant text message.

choose_flagrant(\AUTO_LINK $id) 

Parameters

$id

\AUTO_LINK

The ID of the flagrant text message to choose

Delete a flagrant text message.

delete_flagrant(\AUTO_LINK $id) 

Parameters

$id

\AUTO_LINK

The ID of the flagrant text message to delete

Edit a flagrant text message.

edit_flagrant(\AUTO_LINK $id, \SHORT_TEXT $message, \LONG_TEXT $notes, \BINARY $validated) 

Parameters

$id

\AUTO_LINK

The ID of what to edit

$message

\SHORT_TEXT

The message

$notes

\LONG_TEXT

Notes

$validated

\BINARY

Whether the message is the active message

Get a list of flagrant text messages to choose from.

nice_get_flagrant() : \tempcode

Returns

\tempcodeThe list of flagrant text messages