MphpD
v1.0.0-rc.2 Documentation GitHub

# 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

@param \MphpD $mphpd

@param string $type

@param string $uri

#### Returns `mixed`

### get

Returns the value of the specified sticker

    Sticker::get(string $name) : mixed

#### Parameters

@param string $name

#### Returns `mixed`

false|string Returns string on success and false on failure

### set

Add a value to the specified sticker.

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

#### Parameters

@param string $name

@param string $value

#### Returns `bool`

bool

### delete

Deletes the value from the specified sticker.

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

#### Parameters

@param string $name If omitted all sticker values will be deleted.

#### Returns `bool`

bool

### list

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

    Sticker::list() : mixed

#### Parameters

None.

#### Returns `mixed`

array|false

### 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

@param string $name The sticker name

@param string $operator Optional. Can be one of `=`, `<` or `>`. Only in combination with $value.

@param string $value Optional. The value to search for. Only in combination with $operator.

#### Returns `mixed`

array|false

© 2023 Florian Faber