PHP 클래스 Horde_ActiveSync_Policies, horde

저자: Michael J Rubinsky ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_defaults array Default policy values used in both 12.0 and 12.1
$_defaults_twelve array Deafaults for 12.0 policies.
$_defaults_twelveone array Defaults used only in 12.1
$_encoder Horde_ActiveSync_Wbxml_Encoder Output stream
$_overrides array Explicitly set policies.
$_policies array Local cache of all policies to send.
$_version long EAS version to support.

공개 메소드들

메소드 설명
__construct ( Horde_ActiveSync_Wbxml_Encoder $encoder = null, float $version = Horde_ActiveSync::VERSION_TWELVEONE, array $policies = [] ) Const'r
getAvailablePolicies ( ) : array Return a list of all configurable policy names.
toWbxml ( ) Output the policies as WBXML. Used in EAS Versions >= 12.0
toXml ( ) Output the policies as XML. Only used in EAS Version 2.5. This method only outputs the 2.5 compatible policies.
validatePolicyVersion ( ) : boolean Determine if the requested policy settings are available for the current version being used.

보호된 메소드들

메소드 설명
_getPolicies ( )
_sendPolicy ( string $policy, mixed $value, boolean $nodefault = false ) Output a single policy value

메소드 상세

__construct() 공개 메소드

Const'r
public __construct ( Horde_ActiveSync_Wbxml_Encoder $encoder = null, float $version = Horde_ActiveSync::VERSION_TWELVEONE, array $policies = [] )
$encoder Horde_ActiveSync_Wbxml_Encoder The output stream encoder
$version float The EAS Version.
$policies array The policy array.

_getPolicies() 보호된 메소드

protected _getPolicies ( )

_sendPolicy() 보호된 메소드

Output a single policy value
protected _sendPolicy ( string $policy, mixed $value, boolean $nodefault = false )
$policy string The policy name
$value mixed The policy value
$nodefault boolean Don't send the policy if the value is default.

getAvailablePolicies() 공개 메소드

Return a list of all configurable policy names.
public getAvailablePolicies ( ) : array
리턴 array

toWbxml() 공개 메소드

Output the policies as WBXML. Used in EAS Versions >= 12.0
public toWbxml ( )

toXml() 공개 메소드

Output the policies as XML. Only used in EAS Version 2.5. This method only outputs the 2.5 compatible policies.
public toXml ( )

validatePolicyVersion() 공개 메소드

Determine if the requested policy settings are available for the current version being used.
public validatePolicyVersion ( ) : boolean
리턴 boolean True if policies are available in current version, false otherwise.

프로퍼티 상세

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

Default policy values used in both 12.0 and 12.1
protected array $_defaults
리턴 array

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

Deafaults for 12.0 policies.
protected array $_defaults_twelve
리턴 array

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

Defaults used only in 12.1
protected array $_defaults_twelveone
리턴 array

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

Output stream
protected Horde_ActiveSync_Wbxml_Encoder $_encoder
리턴 Horde_ActiveSync_Wbxml_Encoder

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

Explicitly set policies.
protected array $_overrides
리턴 array

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

Local cache of all policies to send.
protected array $_policies
리턴 array

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

EAS version to support.
protected long $_version
리턴 long