Horde_ActiveSync_Message_Task
extends Horde_ActiveSync_Message_Base
in package
Horde_ActiveSync_Message_Task::
Tags
Table of Contents
- IMPORTANCE_HIGH = 2
- IMPORTANCE_LOW = 0
- IMPORTANCE_NORMAL = 1
- KEY_ATTRIBUTE = 1
- KEY_PROPERTY = 4
- KEY_TYPE = 3
- KEY_VALUES = 2
- POOMTASKS_BODY = 'POOMTASKS:Body'
- POOMTASKS_BODYSIZE = 'POOMTASKS:BodySize'
- POOMTASKS_BODYTRUNCATED = 'POOMTASKS:BodyTruncated'
- POOMTASKS_CALENDARTYPE = 'POOMTASKS:CalendarType'
- POOMTASKS_CATEGORIES = 'POOMTASKS:Categories'
- POOMTASKS_CATEGORY = 'POOMTASKS:Category'
- POOMTASKS_COMPLETE = 'POOMTASKS:Complete'
- POOMTASKS_DATECOMPLETED = 'POOMTASKS:DateCompleted'
- POOMTASKS_DAYOFMONTH = 'POOMTASKS:DayOfMonth'
- POOMTASKS_DAYOFWEEK = 'POOMTASKS:DayOfWeek'
- POOMTASKS_DEADOCCUR = 'POOMTASKS:DeadOccur'
- POOMTASKS_DUEDATE = 'POOMTASKS:DueDate'
- POOMTASKS_FIRSTDAYOFWEEK = 'POOMTASKS:FirstDayOfWeek'
- POOMTASKS_IMPORTANCE = 'POOMTASKS:Importance'
- POOMTASKS_INTERVAL = 'POOMTASKS:Interval'
- POOMTASKS_ISLEAPMONTH = 'POOMTASKS:IsLeapMonth'
- POOMTASKS_MONTHOFYEAR = 'POOMTASKS:MonthOfYear'
- POOMTASKS_OCCURRENCES = 'POOMTASKS:Occurrences'
- POOMTASKS_ORDINALDATE = 'POOMTASKS:OrdinalDate'
- POOMTASKS_RECURRENCE = 'POOMTASKS:Recurrence'
- POOMTASKS_REGENERATE = 'POOMTASKS:Regenerate'
- POOMTASKS_REMINDERSET = 'POOMTASKS:ReminderSet'
- POOMTASKS_REMINDERTIME = 'POOMTASKS:ReminderTime'
- POOMTASKS_RTF = 'POOMTASKS:Rtf'
- POOMTASKS_SENSITIVITY = 'POOMTASKS:Sensitivity'
- POOMTASKS_START = 'POOMTASKS:Start'
- POOMTASKS_STARTDATE = 'POOMTASKS:StartDate'
- POOMTASKS_SUBJECT = 'POOMTASKS:Subject'
- POOMTASKS_SUBORDINALDATE = 'POOMTASKS:SubOrdinalDate'
- POOMTASKS_TYPE = 'POOMTASKS:Type'
- POOMTASKS_UNTIL = 'POOMTASKS:Until'
- POOMTASKS_UTCDUEDATE = 'POOMTASKS:UtcDueDate'
- POOMTASKS_UTCSTARTDATE = 'POOMTASKS:UtcStartDate'
- POOMTASKS_WEEKOFMONTH = 'POOMTASKS:WeekOfMonth'
- PROPERTY_NO_CONTAINER = 7
- REMINDER_SET_FALSE = 0
- REMINDER_SET_TRUE = 1
- TASK_COMPLETE_FALSE = 0
- TASK_COMPLETE_TRUE = 1
- TYPE_DATE = 1
- TYPE_DATE_DASHES = 3
- TYPE_DATE_LOCAL = 6
- TYPE_HEX = 2
- TYPE_MAPI_GOID = 5
- TYPE_MAPI_STREAM = 4
- $airsyncbasebody : Horde_ActiveSync_Message_AirSyncBaseBody
- $body : string
- $bodytruncated : bool
- $categories : array<string|int, mixed>
- $commandType : string
- Request type. One of: Horde_ActiveSync::SYNC_ADD, SYNC_MODIFY, SYNC_REMOVE, or SYNC_FETCH. Used internally for enforcing various protocol rules depending on request.
- $complete : bool
- $datecompleted : Horde_Date
- $flags : mixed
- Message flags
- $importance : int
- $recurrence : Horde_ActiveSync_Message_TaskRecurrence
- $sensitivity : int
- $subject : string
- $utcduedate : Horde_Date
- $utcstartdate : Horde_Date
- $_dayOfWeekMap : array<string|int, mixed>
- DOW mapping for DATE to MASK
- $_device : Horde_ActiveSync_Device
- The device object
- $_exists : array<string|int, mixed>
- Existence cache, used for working with ghosted properties.
- $_logger : Horde_Log_Logger
- Logger
- $_mapping : array<string|int, mixed>
- Property mapping
- $_properties : array<string|int, mixed>
- Property values.
- $_streamFilters : array<string|int, mixed>
- Cache of current stream filters.
- $_supported : array<string|int, mixed>
- An array describing the non-ghosted elements this message supports.
- $_version : float
- The version of EAS we are to support.
- __call() : mixed
- Magic caller method.
- __construct() : Horde_ActiveSync_Message_Base
- Const'r
- __destruct() : mixed
- __get() : mixed
- Accessor
- __isset() : mixed
- Magic method.
- __set() : mixed
- Setter
- decodeStream() : mixed
- Recursively decodes the WBXML from input stream. This means that if this message contains complex types (like Appointment.Recuurence for example) the sub-objects are auto-instantiated and decoded as well. Places the decoded objects in the local properties array.
- encodeStream() : mixed
- Encodes this object (and any sub-objects) as wbxml to the output stream.
- getClass() : string
- Return this object's folder class
- getImportance() : int
- Get the task importance level
- getProtocolVersion() : float
- Return the EAS version this object supports.
- getRecurrence() : Horde_Date_Recurrence
- Obtain a recurrence object. Note this returns a Horde_Date_Recurrence object, not Horde_ActiveSync_Message_Recurrence.
- getReminder() : Horde_Date
- Get the reminder time.
- getSupported() : array<string|int, mixed>
- Get the list of non-ghosted properties for this message.
- isEmpty() : bool
- Returns whether or not this message actually contains any data to send.
- isGhosted() : bool
- Determines if the property specified has been ghosted by the client.
- propertyExists() : bool
- Check the existence of a property in this message.
- setImportance() : mixed
- Set the importance
- setRecurrence() : mixed
- Set recurrence information for this task
- setReminder() : mixed
- Set the reminder datetime
- setSupported() : mixed
- Set the list of non-ghosted fields for this message.
- _checkEncoding() : mixed
- Checks if the data needs to be encoded like e.g., when outputing binary data in-line during ITEMOPERATIONS requests. Concrete classes should override this if needed.
- _checkSendEmpty() : bool
- Check if a field should be sent to the device even if it is empty.
- _formatDate() : string
- Oh yeah. This is beautiful. Exchange outputs date fields differently in calendar items and emails. We could just always send one or the other, but unfortunately nokia's 'Mail for exchange' depends on this quirk.
- _getAttribute() : mixed
- Helper method to allow default values for unset properties.
- _parseDate() : Horde_Date|bool
- Get a Horde_Date from a timestamp, ensuring it's in the correct format.
- _preEncodeValidation() : bool
- Give concrete classes the chance to enforce rules before encoding messages to send to the client.
- _validateDecodedValues() : bool
- Give concrete classes the chance to enforce rules.
- _hex2bin() : string
- Function which converts a hex entryid to a binary entryid.
Constants
IMPORTANCE_HIGH
public
mixed
IMPORTANCE_HIGH
= 2
IMPORTANCE_LOW
public
mixed
IMPORTANCE_LOW
= 0
IMPORTANCE_NORMAL
public
mixed
IMPORTANCE_NORMAL
= 1
KEY_ATTRIBUTE
public
mixed
KEY_ATTRIBUTE
= 1
KEY_PROPERTY
public
mixed
KEY_PROPERTY
= 4
KEY_TYPE
public
mixed
KEY_TYPE
= 3
KEY_VALUES
public
mixed
KEY_VALUES
= 2
POOMTASKS_BODY
public
mixed
POOMTASKS_BODY
= 'POOMTASKS:Body'
POOMTASKS_BODYSIZE
public
mixed
POOMTASKS_BODYSIZE
= 'POOMTASKS:BodySize'
POOMTASKS_BODYTRUNCATED
public
mixed
POOMTASKS_BODYTRUNCATED
= 'POOMTASKS:BodyTruncated'
POOMTASKS_CALENDARTYPE
public
mixed
POOMTASKS_CALENDARTYPE
= 'POOMTASKS:CalendarType'
POOMTASKS_CATEGORIES
public
mixed
POOMTASKS_CATEGORIES
= 'POOMTASKS:Categories'
POOMTASKS_CATEGORY
public
mixed
POOMTASKS_CATEGORY
= 'POOMTASKS:Category'
POOMTASKS_COMPLETE
public
mixed
POOMTASKS_COMPLETE
= 'POOMTASKS:Complete'
POOMTASKS_DATECOMPLETED
public
mixed
POOMTASKS_DATECOMPLETED
= 'POOMTASKS:DateCompleted'
POOMTASKS_DAYOFMONTH
public
mixed
POOMTASKS_DAYOFMONTH
= 'POOMTASKS:DayOfMonth'
POOMTASKS_DAYOFWEEK
public
mixed
POOMTASKS_DAYOFWEEK
= 'POOMTASKS:DayOfWeek'
POOMTASKS_DEADOCCUR
public
mixed
POOMTASKS_DEADOCCUR
= 'POOMTASKS:DeadOccur'
POOMTASKS_DUEDATE
public
mixed
POOMTASKS_DUEDATE
= 'POOMTASKS:DueDate'
POOMTASKS_FIRSTDAYOFWEEK
public
mixed
POOMTASKS_FIRSTDAYOFWEEK
= 'POOMTASKS:FirstDayOfWeek'
POOMTASKS_IMPORTANCE
public
mixed
POOMTASKS_IMPORTANCE
= 'POOMTASKS:Importance'
POOMTASKS_INTERVAL
public
mixed
POOMTASKS_INTERVAL
= 'POOMTASKS:Interval'
POOMTASKS_ISLEAPMONTH
public
mixed
POOMTASKS_ISLEAPMONTH
= 'POOMTASKS:IsLeapMonth'
POOMTASKS_MONTHOFYEAR
public
mixed
POOMTASKS_MONTHOFYEAR
= 'POOMTASKS:MonthOfYear'
POOMTASKS_OCCURRENCES
public
mixed
POOMTASKS_OCCURRENCES
= 'POOMTASKS:Occurrences'
POOMTASKS_ORDINALDATE
public
mixed
POOMTASKS_ORDINALDATE
= 'POOMTASKS:OrdinalDate'
POOMTASKS_RECURRENCE
public
mixed
POOMTASKS_RECURRENCE
= 'POOMTASKS:Recurrence'
POOMTASKS_REGENERATE
public
mixed
POOMTASKS_REGENERATE
= 'POOMTASKS:Regenerate'
POOMTASKS_REMINDERSET
public
mixed
POOMTASKS_REMINDERSET
= 'POOMTASKS:ReminderSet'
POOMTASKS_REMINDERTIME
public
mixed
POOMTASKS_REMINDERTIME
= 'POOMTASKS:ReminderTime'
POOMTASKS_RTF
public
mixed
POOMTASKS_RTF
= 'POOMTASKS:Rtf'
POOMTASKS_SENSITIVITY
public
mixed
POOMTASKS_SENSITIVITY
= 'POOMTASKS:Sensitivity'
POOMTASKS_START
public
mixed
POOMTASKS_START
= 'POOMTASKS:Start'
POOMTASKS_STARTDATE
public
mixed
POOMTASKS_STARTDATE
= 'POOMTASKS:StartDate'
POOMTASKS_SUBJECT
public
mixed
POOMTASKS_SUBJECT
= 'POOMTASKS:Subject'
POOMTASKS_SUBORDINALDATE
public
mixed
POOMTASKS_SUBORDINALDATE
= 'POOMTASKS:SubOrdinalDate'
POOMTASKS_TYPE
public
mixed
POOMTASKS_TYPE
= 'POOMTASKS:Type'
POOMTASKS_UNTIL
public
mixed
POOMTASKS_UNTIL
= 'POOMTASKS:Until'
POOMTASKS_UTCDUEDATE
public
mixed
POOMTASKS_UTCDUEDATE
= 'POOMTASKS:UtcDueDate'
POOMTASKS_UTCSTARTDATE
public
mixed
POOMTASKS_UTCSTARTDATE
= 'POOMTASKS:UtcStartDate'
POOMTASKS_WEEKOFMONTH
public
mixed
POOMTASKS_WEEKOFMONTH
= 'POOMTASKS:WeekOfMonth'
PROPERTY_NO_CONTAINER
public
mixed
PROPERTY_NO_CONTAINER
= 7
REMINDER_SET_FALSE
public
mixed
REMINDER_SET_FALSE
= 0
REMINDER_SET_TRUE
public
mixed
REMINDER_SET_TRUE
= 1
TASK_COMPLETE_FALSE
public
mixed
TASK_COMPLETE_FALSE
= 0
TASK_COMPLETE_TRUE
public
mixed
TASK_COMPLETE_TRUE
= 1
TYPE_DATE
public
mixed
TYPE_DATE
= 1
TYPE_DATE_DASHES
public
mixed
TYPE_DATE_DASHES
= 3
TYPE_DATE_LOCAL
public
mixed
TYPE_DATE_LOCAL
= 6
TYPE_HEX
public
mixed
TYPE_HEX
= 2
TYPE_MAPI_GOID
public
mixed
TYPE_MAPI_GOID
= 5
TYPE_MAPI_STREAM
public
mixed
TYPE_MAPI_STREAM
= 4
Properties
$airsyncbasebody
public
Horde_ActiveSync_Message_AirSyncBaseBody
$airsyncbasebody
The task body (EAS Version >= 12.0)
$body
public
string
$body
The task body (EAS Version < 12.0)
$bodytruncated
public
bool
$bodytruncated
Truncation flag (EAS Version < 12.0)
$categories
public
array<string|int, mixed>
$categories
An array of categories.
$commandType
Request type. One of: Horde_ActiveSync::SYNC_ADD, SYNC_MODIFY, SYNC_REMOVE, or SYNC_FETCH. Used internally for enforcing various protocol rules depending on request.
public
string
$commandType
@since 2.31.0
$complete
public
bool
$complete
Completion flag
$datecompleted
public
Horde_Date
$datecompleted
The date the task was completed, in UTC.
$flags
Message flags
public
mixed
$flags
= \false
Horde_ActiveSync::FLAG_* constant
$importance
public
int
$importance
The importance flag.
$recurrence
public
Horde_ActiveSync_Message_TaskRecurrence
$recurrence
The recurrence object.
$sensitivity
public
int
$sensitivity
The sensitivity flag.
$subject
public
string
$subject
The task subject.
$utcduedate
public
Horde_Date
$utcduedate
The date this task is due, in UTC.
$utcstartdate
public
Horde_Date
$utcstartdate
The date this task starts, in UTC.
$_dayOfWeekMap
DOW mapping for DATE to MASK
protected
array<string|int, mixed>
$_dayOfWeekMap
= array(\Horde_Date::DATE_SUNDAY => \Horde_Date::MASK_SUNDAY, \Horde_Date::DATE_MONDAY => \Horde_Date::MASK_MONDAY, \Horde_Date::DATE_TUESDAY => \Horde_Date::MASK_TUESDAY, \Horde_Date::DATE_WEDNESDAY => \Horde_Date::MASK_WEDNESDAY, \Horde_Date::DATE_THURSDAY => \Horde_Date::MASK_THURSDAY, \Horde_Date::DATE_FRIDAY => \Horde_Date::MASK_FRIDAY, \Horde_Date::DATE_SATURDAY => \Horde_Date::MASK_SATURDAY)
$_device
The device object
protected
Horde_ActiveSync_Device
$_device
Tags
$_exists
Existence cache, used for working with ghosted properties.
protected
array<string|int, mixed>
$_exists
= array()
$_logger
Logger
protected
Horde_Log_Logger
$_logger
$_mapping
Property mapping
protected
array<string|int, mixed>
$_mapping
= array(self::POOMTASKS_COMPLETE => array(self::KEY_ATTRIBUTE => 'complete'), self::POOMTASKS_DATECOMPLETED => array(self::KEY_ATTRIBUTE => 'datecompleted', self::KEY_TYPE => self::TYPE_DATE_DASHES), self::POOMTASKS_DUEDATE => array(self::KEY_ATTRIBUTE => 'duedate', self::KEY_TYPE => self::TYPE_DATE_LOCAL), self::POOMTASKS_UTCDUEDATE => array(self::KEY_ATTRIBUTE => 'utcduedate', self::KEY_TYPE => self::TYPE_DATE_DASHES), self::POOMTASKS_IMPORTANCE => array(self::KEY_ATTRIBUTE => 'importance'), self::POOMTASKS_RECURRENCE => array(self::KEY_ATTRIBUTE => 'recurrence', self::KEY_TYPE => 'Horde_ActiveSync_Message_TaskRecurrence'), self::POOMTASKS_REMINDERSET => array(self::KEY_ATTRIBUTE => 'reminderset'), self::POOMTASKS_REMINDERTIME => array(self::KEY_ATTRIBUTE => 'remindertime', self::KEY_TYPE => self::TYPE_DATE_DASHES), self::POOMTASKS_SENSITIVITY => array(self::KEY_ATTRIBUTE => 'sensitiviy'), self::POOMTASKS_STARTDATE => array(self::KEY_ATTRIBUTE => 'startdate', self::KEY_TYPE => self::TYPE_DATE_LOCAL), self::POOMTASKS_UTCSTARTDATE => array(self::KEY_ATTRIBUTE => 'utcstartdate', self::KEY_TYPE => self::TYPE_DATE_DASHES), self::POOMTASKS_SUBJECT => array(self::KEY_ATTRIBUTE => 'subject'), self::POOMTASKS_CATEGORIES => array(self::KEY_ATTRIBUTE => 'categories', self::KEY_VALUES => self::POOMTASKS_CATEGORY))
$_properties
Property values.
protected
array<string|int, mixed>
$_properties
= array('subject' => \false, 'importance' => \false, 'categories' => array(), 'startdate' => \false, 'duedate' => \false, 'utcduedate' => \false, 'complete' => \false, 'datecompleted' => \false, 'remindertime' => \false, 'sensitiviy' => \false, 'reminderset' => \false, 'deadoccur' => \false, 'recurrence' => \false, 'regenerate' => \false, 'sensitiviy' => \false, 'utcstartdate' => \false)
$_streamFilters
Cache of current stream filters.
protected
array<string|int, mixed>
$_streamFilters
= array()
$_supported
An array describing the non-ghosted elements this message supports.
protected
array<string|int, mixed>
$_supported
= array()
$_version
The version of EAS we are to support.
protected
float
$_version
= \Horde_ActiveSync::VERSION_TWOFIVE
Methods
__call()
Magic caller method.
public
__call(mixed $method, array<string|int, mixed> $arg) : mixed
Parameters
- $method : mixed
-
The method to call.
- $arg : array<string|int, mixed>
-
Method arguments.
Return values
mixed —__construct()
Const'r
public
__construct([array<string|int, mixed> $options = array() ]) : Horde_ActiveSync_Message_Base
Parameters
- $options : array<string|int, mixed> = array()
-
Configuration options for the message:
- logger: (Horde_Log_Logger) A logger instance DEFAULT: none (No logging).
- protocolversion: (float) The version of EAS to support. DEFAULT: Horde_ActiveSync::VERSION_TWOFIVE (2.5)
- device: (Horde_ActiveSync_Device) The device object. @since 2.9.2
Tags
Return values
Horde_ActiveSync_Message_Base —__destruct()
public
__destruct() : mixed
Return values
mixed —__get()
Accessor
public
& __get(string $property) : mixed
Parameters
- $property : string
-
Property to get.
Tags
Return values
mixed —The value of the requested property.
__isset()
Magic method.
public
__isset(string $property) : mixed
Parameters
- $property : string
-
The property name to check.
Return values
mixed —__set()
Setter
public
__set(string $property, mixed $value) : mixed
Parameters
- $property : string
-
The property to set.
- $value : mixed
-
The value to set it to.
Tags
Return values
mixed —decodeStream()
Recursively decodes the WBXML from input stream. This means that if this message contains complex types (like Appointment.Recuurence for example) the sub-objects are auto-instantiated and decoded as well. Places the decoded objects in the local properties array.
public
decodeStream(Horde_ActiveSync_Wbxml_Decoder &$decoder) : mixed
Parameters
- $decoder : Horde_ActiveSync_Wbxml_Decoder
Tags
Return values
mixed —encodeStream()
Encodes this object (and any sub-objects) as wbxml to the output stream.
public
encodeStream(Horde_ActiveSync_Wbxml_Encoder &$encoder) : mixed
Output is ordered according to $_mapping
Parameters
- $encoder : Horde_ActiveSync_Wbxml_Encoder
-
The wbxml stream encoder
Tags
Return values
mixed —getClass()
Return this object's folder class
public
getClass() : string
Return values
string —getImportance()
Get the task importance level
public
getImportance() : int
Return values
int —A IMPORTANCE_* constant
getProtocolVersion()
Return the EAS version this object supports.
public
getProtocolVersion() : float
Return values
float —A Horde_ActiveSync::VERSION_* constant.
getRecurrence()
Obtain a recurrence object. Note this returns a Horde_Date_Recurrence object, not Horde_ActiveSync_Message_Recurrence.
public
getRecurrence() : Horde_Date_Recurrence
Return values
Horde_Date_Recurrence —getReminder()
Get the reminder time.
public
getReminder() : Horde_Date
Return values
Horde_Date —in local tz
getSupported()
Get the list of non-ghosted properties for this message.
public
getSupported() : array<string|int, mixed>
Return values
array<string|int, mixed> —The array of non-ghosted properties
isEmpty()
Returns whether or not this message actually contains any data to send.
public
isEmpty() : bool
Tags
Return values
bool —True if message is empty, otherwise false.
isGhosted()
Determines if the property specified has been ghosted by the client.
public
isGhosted(string $property) : bool
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.
Parameters
- $property : string
-
The property to check
Return values
bool —propertyExists()
Check the existence of a property in this message.
public
propertyExists(string $property) : bool
Parameters
- $property : string
-
The property name
Return values
bool —setImportance()
Set the importance
public
setImportance(int $importance) : mixed
Parameters
- $importance : int
-
A IMPORTANCE_* flag
Return values
mixed —setRecurrence()
Set recurrence information for this task
public
setRecurrence(Horde_Date_Recurrence $recurrence) : mixed
Parameters
- $recurrence : Horde_Date_Recurrence
Return values
mixed —setReminder()
Set the reminder datetime
public
setReminder(Horde_Date $datetime) : mixed
Parameters
- $datetime : Horde_Date
-
The time to trigger the alarm in local tz.
Return values
mixed —setSupported()
Set the list of non-ghosted fields for this message.
public
setSupported(array<string|int, mixed> $fields) : mixed
Parameters
- $fields : array<string|int, mixed>
-
The array of fields, keyed by the fully qualified property name i.e., POOMCONTACTS:Anniversary. To signify an empty SUPPORTED container $fields should contain a single element equal to Horde_ActiveSync::ALL_GHOSTED.
Return values
mixed —_checkEncoding()
Checks if the data needs to be encoded like e.g., when outputing binary data in-line during ITEMOPERATIONS requests. Concrete classes should override this if needed.
protected
_checkEncoding(mixed $data, string $tag) : mixed
Parameters
- $data : mixed
-
The data to check. A string or stream resource.
- $tag : string
-
The tag we are outputing.
Return values
mixed —The encoded data. A string or stream resource with a filter attached.
_checkSendEmpty()
Check if a field should be sent to the device even if it is empty.
protected
_checkSendEmpty(string $tag) : bool
Parameters
- $tag : string
-
The field tag.
Return values
bool —_formatDate()
Oh yeah. This is beautiful. Exchange outputs date fields differently in calendar items and emails. We could just always send one or the other, but unfortunately nokia's 'Mail for exchange' depends on this quirk.
protected
_formatDate(Horde_Date $dt, int $type) : string
So we have to send a different date type depending on where it's used. Used when encoding a date value to send to the client.
Parameters
- $dt : Horde_Date
-
The Horde_Date object to format (should normally be in local tz).
- $type : int
-
The type to format as: One of TYPE_DATE or TYPE_DATE_DASHES, TYPE_DATE_LOCAL
Tags
Return values
string —The formatted date
_getAttribute()
Helper method to allow default values for unset properties.
protected
_getAttribute(string $name[, stting $default = null ]) : mixed
Parameters
- $name : string
-
The property name
- $default : stting = null
-
The default value to return if $property is empty
Return values
mixed —_parseDate()
Get a Horde_Date from a timestamp, ensuring it's in the correct format.
protected
_parseDate(string $ts) : Horde_Date|bool
Used when decoding an incoming date value from the client.
Parameters
- $ts : string
-
The timestamp
Return values
Horde_Date|bool —The Horde_Date or false if unable to decode.
_preEncodeValidation()
Give concrete classes the chance to enforce rules before encoding messages to send to the client.
protected
_preEncodeValidation() : bool
Tags
Return values
bool —True if values were valid (or could be made valid). False if values are unable to be validated.
_validateDecodedValues()
Give concrete classes the chance to enforce rules.
protected
_validateDecodedValues() : bool
Tags
Return values
bool —True on success, otherwise false.
_hex2bin()
Function which converts a hex entryid to a binary entryid.
private
static _hex2bin(string $data) : string
Parameters
- $data : string
-
The hexadecimal string
Return values
string —The binary data