PHP 클래스 Requirement

저자: ShengHui
상속: extends XBaseModel
파일 보기 프로젝트 열기: pagekit/pagekit 1 사용 예제들

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Constructor that initializes the 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

getHelpHtml() 공개 메소드

Returns the help text formatted in HTML.
public getHelpHtml ( ) : string
리턴 string The HTML help

getHelpText() 공개 메소드

Returns the help text for resolving the problem
public getHelpText ( ) : string
리턴 string The help text

getTestMessage() 공개 메소드

Returns the message for testing the requirement.
public getTestMessage ( ) : string
리턴 string The test message

isFulfilled() 공개 메소드

Returns whether the requirement is fulfilled.
public isFulfilled ( ) : boolean
리턴 boolean true if fulfilled, otherwise false

isOptional() 공개 메소드

Returns whether this is only an optional recommendation and not a mandatory requirement.
public isOptional ( ) : boolean
리턴 boolean true if optional, false if mandatory