PHP 클래스 DMS\Filter\Rules\Rule

파일 보기 프로젝트 열기: rdohms/dms-filter 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( mixed $options = null ) Initializes the filter rule with its options
getDefaultOption ( ) : string Returns the name of the default option
getFilter ( ) : string Retrieves the Filter class that is responsible for executing this filter It may also be a service name. By default it loads a class with the same name from the Filters namespace.
getRequiredOptions ( ) : array Returns the name of the required options

비공개 메소드들

메소드 설명
parseOptions ( mixed $options ) : stdClass Parses provided options into their properties and returns results for the parsing process
parseOptionsArray ( array $options, stdClass $result ) Parses Options in the array format
parseSingleOption ( string $options, stdClass $result ) Parses single option received

메소드 상세

__construct() 공개 메소드

Initializes the filter rule with its options
public __construct ( mixed $options = null )
$options mixed The options (as associative array) or the value for the default option (any other type)

getDefaultOption() 공개 메소드

Override this method to define a default option.
또한 보기: __construct()
public getDefaultOption ( ) : string
리턴 string

getFilter() 공개 메소드

Retrieves the Filter class that is responsible for executing this filter It may also be a service name. By default it loads a class with the same name from the Filters namespace.
public getFilter ( ) : string
리턴 string

getRequiredOptions() 공개 메소드

Override this method if you want to define required options.
또한 보기: __construct()
public getRequiredOptions ( ) : array
리턴 array