HumHub Documentation (unofficial)

AlgorithmManager
in package

Table of Contents

Properties

$algorithms  : array<string|int, mixed>

Methods

__construct()  : mixed
add()  : void
Adds an algorithm to the manager.
get()  : Algorithm
Returns the algorithm if supported, otherwise throw an exception.
has()  : bool
Returns true if the algorithm is supported.
list()  : array<string|int, string>
Returns the list of names of supported algorithms.

Properties

Methods

get()

Returns the algorithm if supported, otherwise throw an exception.

public get(string $algorithm) : Algorithm
Parameters
$algorithm : string

The algorithm

Tags
throws
InvalidArgumentException

if the algorithm is not supported

Return values
Algorithm

has()

Returns true if the algorithm is supported.

public has(string $algorithm) : bool
Parameters
$algorithm : string

The algorithm

Return values
bool

list()

Returns the list of names of supported algorithms.

public list() : array<string|int, string>
Return values
array<string|int, string>

        
On this page

Search results