Property | Type | Description | |
---|---|---|---|
$_clientType | string | Local override/cache of detected clientType. | |
$_dirty | array | Dirty flag | |
$_iOSVersion | string | Cache of OS version. | |
$_multiplexSet | boolean | Flag to indicate self::multiplex was set externally. | |
$_properties | array | Device properties. | |
$_state | Horde_ActiveSync_State_Base | State handler |
Method | Description | |
---|---|---|
__construct ( Horde_ActiveSync_State_Base $state, array $data = [] ) | Const'r | |
__get ( $property ) | Getter | |
__isset ( $property ) | Magic isset | |
__set ( $property, $value ) | Setter | |
enforceProvisioning ( ) : boolean | Check if we should enforce provisioning on this device. | |
getFormattedDeviceProperties ( ) : array | Return an array of DEVICEINFO data, with keys suitable for displaying. | |
getLastSyncTimestamp ( ) : integer | Return the last time the device issued a SYNC request. | |
getMajorVersion ( ) : integer | Return the major version number of the OS (or client app) as reported by the client. | |
getMinorVersion ( ) : integer | Return the minor version number of the OS (or client app) as reported by the client. | |
hasQuirk ( integer $quirk ) : boolean | Return if this client has the described quirk. | |
isNonProvisionable ( ) : boolean | Returns if the current device is an expected non-provisionable device. | |
needsVersionUpdate ( string $supported ) : boolean | Indicates if we need to announce new EAS version string to the client. | |
normalizePoomContactsDates ( Horde_Date $date, boolean $toEas = false ) : Horde_Date | Return the number of hours to offset a POOMCONTACTS:BIRTHDAY or ANNIVERSARY field in an attempt to work around a bug in the protocol - which doesn't define a standard time for birthdays to occur. | |
save ( boolean $all = true ) | Save the dirty device info data. | |
setDeviceProperties ( array $data ) | Set the device's DEVICEINFO data. |
Method | Description | |
---|---|---|
_getClientType ( ) : string | Attempt to determine the *client* application as opposed to the device, which may or may not be the client. | |
_getIosVersion ( ) | Detects the iOS version in M.m format and caches locally. | |
_isIos ( ) : boolean | Return if this client is an iOS device. Different versions require different checks. | |
_isNine ( ) : boolean | Helper method to sniff out the 9Folders client, "Nine". | |
_sniffMultiplex ( ) | Basic sniffing for determining if devices can support non-multiplexed collections. |
public __construct ( Horde_ActiveSync_State_Base $state, array $data = [] ) | ||
$state | Horde_ActiveSync_State_Base | The state driver. |
$data | array | The current device data. |
protected _getClientType ( ) : string | ||
return | string | The client name. |
protected _getIosVersion ( ) |
protected _sniffMultiplex ( ) |
public enforceProvisioning ( ) : boolean | ||
return | boolean |
public getFormattedDeviceProperties ( ) : array | ||
return | array |
public getLastSyncTimestamp ( ) : integer | ||
return | integer | The timestamp. |
public getMajorVersion ( ) : integer | ||
return | integer | The version number. |
public getMinorVersion ( ) : integer | ||
return | integer | The version number. |
public isNonProvisionable ( ) : boolean | ||
return | boolean | True if the device should be allowed to connect to a Forced provision server. False if not. |
public needsVersionUpdate ( string $supported ) : boolean | ||
$supported | string | The current EAS-Version header. |
return | boolean | True if we need to send the MS-RP header, otherwise false. |
public normalizePoomContactsDates ( Horde_Date $date, boolean $toEas = false ) : Horde_Date | ||
$date | Horde_Date | The date. This should normally be in the local timezone if encoding the date for the client. If decoding the date from the client, it will normally be in UTC. |
$toEas | boolean | Convert from local to device if true. DEFAULT: false |
return | Horde_Date | The date of the birthday/anniversary, with any fixes applied for the current device. The timezone set in the object will depend on the client detected, and whether the date is being encoding or decoding. |
public setDeviceProperties ( array $data ) | ||
$data | array | The data array sent from the device. |
protected string $_clientType | ||
return | string |
protected bool $_multiplexSet | ||
return | boolean |