Méthode | Description | |
---|---|---|
__construct ( boolean $fulfilled, string $testMessage, string $helpHtml, string | null $helpText = null, boolean $optional = false ) | Constructor that initializes the requirement. | |
getHelpHtml ( ) : string | Returns the help text formatted in HTML. | |
getHelpText ( ) : string | Returns the help text for resolving the problem | |
getTestMessage ( ) : string | Returns the message for testing the requirement. | |
isFulfilled ( ) : boolean | Returns whether the requirement is fulfilled. | |
isOptional ( ) : boolean | Returns whether this is only an optional recommendation and not a mandatory requirement. |
public __construct ( boolean $fulfilled, string $testMessage, string $helpHtml, string | null $helpText = null, boolean $optional = false ) | ||
$fulfilled | boolean | Whether the requirement is fulfilled |
$testMessage | string | The message for testing the requirement |
$helpHtml | string | The help text formatted in HTML for resolving the problem |
$helpText | string | null | The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) |
$optional | boolean | Whether this is only an optional recommendation not a mandatory requirement |
public getHelpHtml ( ) : string | ||
Résultat | string | The HTML help |
public getHelpText ( ) : string | ||
Résultat | string | The help text |
public getTestMessage ( ) : string | ||
Résultat | string | The test message |
public isFulfilled ( ) : boolean | ||
Résultat | boolean | true if fulfilled, otherwise false |
public isOptional ( ) : boolean | ||
Résultat | boolean | true if optional, false if mandatory |