Sticker

Subclass for Stickers.

MphpD::sticker(string $type, string $uri) : Sticker

Methods

__construct

This class is not intended for direct usage. Use MphpD::sticker() instead to retrieve an instance of this class.

Sticker::__construct(FloFaber\MphpD\MphpD $mphpd, string $type, string $uri) : mixed

Parameters

Returns mixed

get

Returns the value of the specified sticker

Sticker::get(string $name) : mixed

Parameters

Returns mixed

false|string string on success or false on failure.

set

Add a value to the specified sticker.

Sticker::set(string $name, string $value) : bool

Parameters

Returns bool

bool true on success or false on failure.

delete

Deletes the value from the specified sticker.

Sticker::delete(string $name = '') : bool

Parameters

Returns bool

bool true on success or false on failure.

list

Returns an associative array containing sticker names and values of the specified object.

Sticker::list() : mixed

Parameters

Returns mixed

array|false array on success or false on failure.

find

Search the sticker database for sticker with the specified name and/or value in the specified $uri

Sticker::find(string $name, string $operator = '', string $value = '') : mixed

Parameters

Returns mixed

array|false array on success or false on failure.

© 2023 Florian Faber