PHP 클래스 Ingo_Script_Sieve, horde

저자: Mike Cochrane ([email protected])
저자: Jan Schneider ([email protected])
상속: extends Ingo_Script_Base
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_actions array The list of actions allowed (implemented) for this driver.
$_categories array The categories of filtering allowed.
$_endBlocks array The blocks that have to appear at the end of the code.
$_features array A list of driver features.
$_tests array The list of tests allowed (implemented) for this driver.
$_types array The types of tests allowed (implemented) for this driver.

공개 메소드들

메소드 설명
check ( ) : boolean | string Checks if all rules are valid.
escapeString ( string $string, boolean $regexmode = false ) : string Escape a string according to Sieve RFC 3028 [2.4.2].
generate ( ) : array Generates the scripts to do the filtering specified in the rules.

보호된 메소드들

메소드 설명
_addBlacklistBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the blacklist rule.
_addForwardBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the forward rule.
_addSpamBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the spam rule.
_addVacationBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the vacation rule.
_addWhitelistBlocks ( Ingo_Rule $rule ) Adds all blocks necessary for the whitelist rule.
_generate ( ) Generates the Sieve script to do the filtering specified in the rules.

메소드 상세

_addBlacklistBlocks() 보호된 메소드

Adds all blocks necessary for the blacklist rule.
protected _addBlacklistBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_addForwardBlocks() 보호된 메소드

Adds all blocks necessary for the forward rule.
protected _addForwardBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_addSpamBlocks() 보호된 메소드

Adds all blocks necessary for the spam rule.
protected _addSpamBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_addVacationBlocks() 보호된 메소드

Adds all blocks necessary for the vacation rule.
protected _addVacationBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_addWhitelistBlocks() 보호된 메소드

Adds all blocks necessary for the whitelist rule.
protected _addWhitelistBlocks ( Ingo_Rule $rule )
$rule Ingo_Rule Rule object.

_generate() 보호된 메소드

Generates the Sieve script to do the filtering specified in the rules.
protected _generate ( )

check() 공개 메소드

Checks if all rules are valid.
public check ( ) : boolean | string
리턴 boolean | string True if all rules are valid, an error message otherwise.

escapeString() 공개 정적인 메소드

Escape a string according to Sieve RFC 3028 [2.4.2].
public static escapeString ( string $string, boolean $regexmode = false ) : string
$string string The string to escape.
$regexmode boolean Is the escaped string a regex value? Defaults to no.
리턴 string The escaped string.

generate() 공개 메소드

Generates the scripts to do the filtering specified in the rules.
public generate ( ) : array
리턴 array The scripts.

프로퍼티 상세

$_actions 보호되어 있는 프로퍼티

The list of actions allowed (implemented) for this driver.
protected array $_actions
리턴 array

$_categories 보호되어 있는 프로퍼티

The categories of filtering allowed.
protected array $_categories
리턴 array

$_endBlocks 보호되어 있는 프로퍼티

The blocks that have to appear at the end of the code.
protected array $_endBlocks
리턴 array

$_features 보호되어 있는 프로퍼티

A list of driver features.
protected array $_features
리턴 array

$_tests 보호되어 있는 프로퍼티

The list of tests allowed (implemented) for this driver.
protected array $_tests
리턴 array

$_types 보호되어 있는 프로퍼티

The types of tests allowed (implemented) for this driver.
protected array $_types
리턴 array