Unofficial SMF API Documentation

./Sources/ManageSmileys.php

ManageSmileys

function ManageSmileys(): void

This is the dispatcher of smileys administration.

Integration hooks
integrate_manage_smileys

EditSmileySettings

function EditSmileySettings(bool $return_config = false): void|array

Handles modifying smileys settings.

Type Parameter Description
bool $return_config Whether or not to return the config_vars array (used for admin search)
Integration hooks
integrate_modify_smiley_settings
integrate_save_smiley_settings

EditSmileySets

function EditSmileySets(): void

List, add, remove, modify smileys sets.

list_getSmileySets

function list_getSmileySets(int $start, int $items_per_page, string $sort): array

Callback function for createList().

Type Parameter Description
int $start The item to start with (not used here)
int $items_per_page The number of items to show per page (not used here)
string $sort A string indicating how to sort the results

list_getNumSmileySets

function list_getNumSmileySets(): int

Callback function for createList().

AddSmiley

function AddSmiley(): void

Add a smiley, that’s right.

EditSmileys

function EditSmileys(): void

Add, remove, edit smileys.

list_getSmileys

function list_getSmileys(int $start, int $items_per_page, string $sort): array

Callback function for createList().

Type Parameter Description
int $start The item to start with (not used here)
int $items_per_page The number of items to show per page (not used here)
string $sort A string indicating how to sort the results

list_getNumSmileys

function list_getNumSmileys(): int

Callback function for createList().

EditSmileyOrder

function EditSmileyOrder(): void

Allows to edit smileys order.

InstallSmileySet

function InstallSmileySet(): void

Install a smiley set.

ImportSmileys

function ImportSmileys(string $smileyPath, bool $create = false): void

A function to import new smileys from an existing directory into the database.

Type Parameter Description
string $smileyPath The path to the directory to import smileys from
bool $create Whether or not to make brand new smileys for files that don’t match any existing smileys

EditMessageIcons

function EditMessageIcons(): void

Handles editing message icons

list_getMessageIcons

function list_getMessageIcons(int $start, int $items_per_page, string $sort): array

Callback function for createList().

Type Parameter Description
int $start The item to start with (not used here)
int $items_per_page The number of items to display per page (not used here)
string $sort A string indicating how to sort the items (not used here)

Suggest an edit to this page on GitHub