\Requirement
Represents a single PHP requirement, e.g. an installed extension.
It can be a mandatory requirement or an optional recommendation.
There is a special subclass, named PhpIniRequirement, to check a php.ini configuration.
- Author: Tobias Schultze <http://tobion.de>
Synopsis
class Requirement
{
- // members
- private $fulfilled;
- private $testMessage;
- private $helpText;
- private $helpHtml;
- private $optional;
- // methods
- public void __construct()
- public Boolean isFulfilled()
- public string getTestMessage()
- public string getHelpText()
- public string getHelpHtml()
- public Boolean isOptional()
Hierarchy
Extended by
Members
private
- $fulfilled
- $helpHtml
- $helpText
- $optional
- $testMessage
Methods
public
- __construct() — Constructor that initializes the requirement.
- getHelpHtml() — Returns the help text formatted in HTML.
- getHelpText() — Returns the help text for resolving the problem
- getTestMessage() — Returns the message for testing the requirement.
- isFulfilled() — Returns whether the requirement is fulfilled.
- isOptional() — Returns whether this is only an optional recommendation and not a mandatory requirement.