Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe AlgorithmManager

Fonctions membres publiques

 __construct (array $algorithms)
 
 has (string $algorithm)
 
 list ()
 
 get (string $algorithm)
 
 add (Algorithm $algorithm)
 

Attributs privés

 $algorithms = []
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( array  $algorithms)
Paramètres
Algorithm[]$algorithms

Références AlgorithmManager\$algorithms, et AlgorithmManager\add().

Documentation des fonctions membres

◆ add()

add ( Algorithm  $algorithm)

Adds an algorithm to the manager.

Références $name, et Algorithm\name().

Référencé par AlgorithmManager\__construct().

◆ get()

get ( string  $algorithm)

Returns the algorithm if supported, otherwise throw an exception.

Paramètres
string$algorithmThe algorithm
Exceptions
InvalidArgumentExceptionif the algorithm is not supported

Références AlgorithmManager\has().

◆ has()

has ( string  $algorithm)

Returns true if the algorithm is supported.

Paramètres
string$algorithmThe algorithm

Référencé par AlgorithmManager\get().

◆ list()

list ( )

Returns the list of names of supported algorithms.

Renvoie
string[]

Documentation des champs

◆ $algorithms

$algorithms = []
private

Référencé par AlgorithmManager\__construct().


La documentation de cette classe a été générée à partir du fichier suivant :