Modules/Groupware/Email/Draft/Filter/DraftResponse.php
\Conjoon_Modules_Groupware_Email_Draft_Filter_DraftResponse
An input-filter class defining all validators and filters needed when processing input data for mutating or creating feed items.
- Parent(s)
- \Conjoon_Filter_Input < \Zend_Filter_Input
- Author
- Thorsten Suckow-Homberg
- Category
- Filter
- Uses
- \Conjoon_Filter_Input
Constants
string
CONTEXT_CREATE
= 'create'- Inherited_from
- \Conjoon_Filter_Input::CONTEXT_CREATE
- string
string
CONTEXT_UPDATE
= 'update'- Inherited_from
- \Conjoon_Filter_Input::CONTEXT_UPDATE
- string
string
CONTEXT_DELETE
= 'delete'- Inherited_from
- \Conjoon_Filter_Input::CONTEXT_DELETE
- string
string
CONTEXT_RESPONSE
= 'response'- Inherited_from
- \Conjoon_Filter_Input::CONTEXT_RESPONSE
- string
Properties

string
$_context= ''''
''Details- Type
- string
- Inherited_from
- \Conjoon_Filter_Input::$$_context

array
$_dontRecurseFilter= 'array()'
array()Details- Type
- array
- Inherited_from
- \Conjoon_Filter_Input::$$_dontRecurseFilter

array
$_filters= 'array(
'name' => array(
'StringTrim'
),
'address' => array(
'StringTrim'
),
'userEmailAddresses' => array(
'Raw'
),
'contentTextPlain' => array(
),
'subject' => array(
),
'from' => array(
array('EmailRecipients', false)
),
'replyTo' => array(
array('EmailRecipients', false)
),
'to' => array(
array('EmailRecipients', false)
),
'cc' => array(
array('EmailRecipients', false)
),
'bcc' => array(
array('EmailRecipients', false)
),
'attachments' => array(
'Raw'
)
)'
array(
'name' => array(
'StringTrim'
),
'address' => array(
'StringTrim'
),
'userEmailAddresses' => array(
'Raw'
),
'contentTextPlain' => array(
),
'subject' => array(
),
'from' => array(
array('EmailRecipients', false)
),
'replyTo' => array(
array('EmailRecipients', false)
),
'to' => array(
array('EmailRecipients', false)
),
'cc' => array(
array('EmailRecipients', false)
),
'bcc' => array(
array('EmailRecipients', false)
),
'attachments' => array(
'Raw'
)
)Details- Type
- array

array
$_presence= 'array(
self::CONTEXT_NEW => array(
'name',
'address',
'subject',
'contentTextPlain',
'groupwareEmailAccountsId',
'groupwareEmailFoldersId',
'id'
),
self::CONTEXT_EDIT => array(
'id',
'date',
'subject',
'from',
'replyTo',
'to',
'cc',
'bcc',
'inReplyTo',
'references',
'contentTextPlain',
'contentTextHtml',
'groupwareEmailFoldersId',
'groupwareEmailAccountsId',
'userEmailAddresses',
'attachments'
),
self::CONTEXT_FORWARD => array(
'id',
'date',
'subject',
'from',
'replyTo',
'to',
'cc',
'bcc',
'inReplyTo',
'references',
'contentTextPlain',
'contentTextHtml',
'groupwareEmailFoldersId',
'groupwareEmailAccountsId',
'attachments'
),
self::CONTEXT_REPLY_ALL => array(
'id',
'date',
'subject',
'from',
'replyTo',
'to',
'cc',
'userEmailAddresses',
'bcc',
'inReplyTo',
'references',
'contentTextPlain',
'contentTextHtml',
'groupwareEmailFoldersId',
'groupwareEmailAccountsId',
'userEmailAddresses'
),
self::CONTEXT_REPLY => array(
'id',
'date',
'subject',
'from',
'replyTo',
'to',
'cc',
'bcc',
'inReplyTo',
'references',
'contentTextPlain',
'contentTextHtml',
'groupwareEmailFoldersId',
'groupwareEmailAccountsId',
'userEmailAddresses'
)
)'
An associative array containing all fields which need to be available for each operation. Override this to adjust your filter bahavior.
Example:
$_presence = array( 'update' => array('field1', 'field2', 'field3'), 'create' => array('field4') );
The above array would tell the filter that field1, field2 and field3 have to be available (Meta command PRESENCE) when data is updated (i.e. edited), while only field4 has to be present when data is created.
array(
self::CONTEXT_NEW => array(
'name',
'address',
'subject',
'contentTextPlain',
'groupwareEmailAccountsId',
'groupwareEmailFoldersId',
'id'
),
self::CONTEXT_EDIT => array(
'id',
'date',
'subject',
'from',
'replyTo',
'to',
'cc',
'bcc',
'inReplyTo',
'references',
'contentTextPlain',
'contentTextHtml',
'groupwareEmailFoldersId',
'groupwareEmailAccountsId',
'userEmailAddresses',
'attachments'
),
self::CONTEXT_FORWARD => array(
'id',
'date',
'subject',
'from',
'replyTo',
'to',
'cc',
'bcc',
'inReplyTo',
'references',
'contentTextPlain',
'contentTextHtml',
'groupwareEmailFoldersId',
'groupwareEmailAccountsId',
'attachments'
),
self::CONTEXT_REPLY_ALL => array(
'id',
'date',
'subject',
'from',
'replyTo',
'to',
'cc',
'userEmailAddresses',
'bcc',
'inReplyTo',
'references',
'contentTextPlain',
'contentTextHtml',
'groupwareEmailFoldersId',
'groupwareEmailAccountsId',
'userEmailAddresses'
),
self::CONTEXT_REPLY => array(
'id',
'date',
'subject',
'from',
'replyTo',
'to',
'cc',
'bcc',
'inReplyTo',
'references',
'contentTextPlain',
'contentTextHtml',
'groupwareEmailFoldersId',
'groupwareEmailAccountsId',
'userEmailAddresses'
)
)Details- Type
- array

array
$_validators= 'array(
/**
* @todo document this; write a fix(?) ZF 1.5.2
* We cannot use the Array validator, as the Zend Input will walk throgh
* each element in the given array and check if the value is valid.
* means, if you are passing a numeric array with values of type string,
* validation will fail since each value of the array is being checked agains
* the validator rule, instead of the array as a whole-
*/
//'userEmailAddresses' => array(
//'Array'
//)
'name' => array(
'allowEmpty' => true
),
'address' => array(
'allowEmpty' => true
),
'id' => array(
'allowEmpty' => false
),
'date' => array(
'allowEmpty' => false
),
'subject' => array(
'allowEmpty' => true,
'default' => ''
),
'from' => array(
'allowEmpty' => false
),
'replyTo' => array(
'allowEmpty' => true,
'default' => ''
),
'to' => array(
'allowEmpty' => true,
'default' => ''
),
'cc' => array(
'allowEmpty' => true,
'default' => ''
),
'bcc' => array(
'allowEmpty' => true,
'default' => ''
),
'inReplyTo' => array(
'allowEmpty' => true,
'default' => ''
),
'references' => array(
'allowEmpty' => true,
'default' => ''
),
'contentTextPlain' => array(
'allowEmpty' => true,
'default' => ''
),
'contentTextHtml' => array(
'allowEmpty' => true,
'default' => ''
),
'groupwareEmailFoldersId' => array(
'allowEmpty' => false
),
'groupwareEmailAccountsId' => array(
'allowEmpty' => false
),
'userEmailAddresses' => array(
'allowEmpty' => true,
'default' => ''
),
'attachments' => array(
'Array'
)
)'
array(
/**
* @todo document this; write a fix(?) ZF 1.5.2
* We cannot use the Array validator, as the Zend Input will walk throgh
* each element in the given array and check if the value is valid.
* means, if you are passing a numeric array with values of type string,
* validation will fail since each value of the array is being checked agains
* the validator rule, instead of the array as a whole-
*/
//'userEmailAddresses' => array(
//'Array'
//)
'name' => array(
'allowEmpty' => true
),
'address' => array(
'allowEmpty' => true
),
'id' => array(
'allowEmpty' => false
),
'date' => array(
'allowEmpty' => false
),
'subject' => array(
'allowEmpty' => true,
'default' => ''
),
'from' => array(
'allowEmpty' => false
),
'replyTo' => array(
'allowEmpty' => true,
'default' => ''
),
'to' => array(
'allowEmpty' => true,
'default' => ''
),
'cc' => array(
'allowEmpty' => true,
'default' => ''
),
'bcc' => array(
'allowEmpty' => true,
'default' => ''
),
'inReplyTo' => array(
'allowEmpty' => true,
'default' => ''
),
'references' => array(
'allowEmpty' => true,
'default' => ''
),
'contentTextPlain' => array(
'allowEmpty' => true,
'default' => ''
),
'contentTextHtml' => array(
'allowEmpty' => true,
'default' => ''
),
'groupwareEmailFoldersId' => array(
'allowEmpty' => false
),
'groupwareEmailAccountsId' => array(
'allowEmpty' => false
),
'userEmailAddresses' => array(
'allowEmpty' => true,
'default' => ''
),
'attachments' => array(
'Array'
)
)Details- Type
- array
Methods

__construct(
array $data, $context, array $options
=
null
)
:
void
| Name | Type | Description |
|---|---|---|
| $data | array | OPTIONAL |
| $context | ||
| $options | array | OPTIONAL |

_filterRule(
array $filterRule
)
:
voidOverride to consider _dontRecurseFilter - where field names are stored where filters should not be operated on array values.
Inherited from: \Conjoon_Filter_Input::_filterRule()| Name | Type | Description |
|---|---|---|
| $filterRule | array |

process(
)
:
\Zend_Filter_InputOverrides parent implementation by adding a call to _preProcess before the data gets processed.
Inherited from: \Conjoon_Filter_Input::process()| Type | Description |
|---|---|
| \Zend_Filter_Input |
| Exception | Description |
|---|---|
| \Zend_Filter_Exception |