HumHub Documentation (unofficial)

ClaimCheckerManager
in package

This manager handles as many claim checkers as needed.

Table of Contents

Properties

$checkers  : array<string|int, ClaimChecker>

Methods

__construct()  : mixed
check()  : array<string|int, mixed>
This method checks all the claims passed as argument.
getCheckers()  : array<string|int, ClaimChecker>
This method returns all checkers handled by this manager.
add()  : void
checkMandatoryClaims()  : void

Properties

Methods

check()

This method checks all the claims passed as argument.

public check(array<string|int, mixed> $claims[, array<string|int, string> $mandatoryClaims = [] ]) : array<string|int, mixed>

All claims are checked against the claim checkers. If one fails, the InvalidClaimException is thrown.

This method returns an array with all checked claims. It is up to the implementor to decide use the claims that have not been checked.

Parameters
$claims : array<string|int, mixed>
$mandatoryClaims : array<string|int, string> = []
Tags
throws
InvalidClaimException
throws
MissingMandatoryClaimException
Return values
array<string|int, mixed>

checkMandatoryClaims()

private checkMandatoryClaims(array<string|int, string> $mandatoryClaims, array<string|int, mixed> $claims) : void
Parameters
$mandatoryClaims : array<string|int, string>
$claims : array<string|int, mixed>
Tags
throws
MissingMandatoryClaimException

        
On this page

Search results