PHP Class Horde_ActiveSync_Message_Contact, horde

Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_ActiveSync_Message_Base
Exibir arquivo Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$categories

Protected Properties

Property Type Description
$_mapping array Property mapping.
$_properties array Property values.

Public Methods

Method Description
__construct ( array $options = [] ) Const'r
getClass ( ) : string Return message type
isGhosted ( string $property, array $options = [] ) : boolean Determines if the property specified has been ghosted by the client.

Protected Methods

Method Description
_checkSendEmpty ( string $tag ) : boolean Check if we should send a specific property even if it's empty.
_formatDate ( Horde_Date $dt, integer $type ) : string Format a date string for sending to the EAS client.
_parseDate ( string $ts ) : Horde_Date | boolean Override parent class so we can normalize the Date object before returning it.

Method Details

__construct() public method

Const'r
See also: Horde_ActiveSync_Message_Base::__construct()
public __construct ( array $options = [] )
$options array

_checkSendEmpty() protected method

Check if we should send a specific property even if it's empty.
protected _checkSendEmpty ( string $tag ) : boolean
$tag string The property tag.
return boolean

_formatDate() protected method

Format a date string for sending to the EAS client.
protected _formatDate ( Horde_Date $dt, integer $type ) : string
$dt Horde_Date The Horde_Date object to format (should normally be in local tz).
$type integer The type to format as (TYPE_DATE or TYPE_DATE_DASHES)
return string The formatted date

_parseDate() protected method

Override parent class so we can normalize the Date object before returning it.
protected _parseDate ( string $ts ) : Horde_Date | boolean
$ts string The timestamp
return Horde_Date | boolean The Horde_Date object (UTC) or false if unable to parse the date.

getClass() public method

Return message type
public getClass ( ) : string
return string

isGhosted() public method

A property is ghosted if it is NOT listed in the SUPPORTED list sent by the client AND is NOT present in the request data.
public isGhosted ( string $property, array $options = [] ) : boolean
$property string The property to check
$options array An array of options: - ignoreEmptyPictureTagCheck: boolean If true, will not check for the QUIRK_INCORRECTLY_SENDS_EMPTY_PICTURE_TAG quirk. @since 2.32.0
return boolean

Property Details

$_mapping protected_oe property

Property mapping.
protected array $_mapping
return array

$_properties protected_oe property

Property values.
protected array $_properties
return array

$categories public_oe property

public $categories