Modules/Groupware/Email/Item/Model/Flag.php
\Conjoon_Modules_Groupware_Email_Item_Model_Flag
Table data gateway. Models the table <tt>groupware_email_items_flags</tt>.
- Parent(s)
- \Conjoon_Db_Table < \Zend_Db_Table
- Author
- Thorsten Suckow-Homberg
- Category
- Model
- Uses
- \Conjoon_Db_Table
Properties

string
$_name= ''groupware_email_items_flags''
The name of the table in the underlying datastore this class represents.
'groupware_email_items_flags'Details- Type
- string

string
$_primary= 'array(
'groupware_email_items_id',
'user_id'
)'
The name of the column that denotes the primary key for this table
array(
'groupware_email_items_id',
'user_id'
)Details- Type
- string

String
$_tblPrefix= '""'
""Details- Type
- String
- Inherited_from
- \Conjoon_Db_Table::$$_tblPrefix
Methods

__construct(
string | array $config
=
array(), \unknown_type $definition
=
null
)
:
void__construct() - For concrete implementation of Conjoon_Db_Table
Inherited from: \Conjoon_Db_Table::__construct()This constructor automatically prepends the prefix as defined using setTablePrefix() to this table's name.
| Name | Type | Description |
|---|---|---|
| $config | string | array | string can reference a Zend_Registry key for a db adapter OR it can refernece the name of a table |
| $definition | \unknown_type |

areItemsFlaggedAsDeleted(
integer | array $id
)
:
arrayReturns an aray keyed by the passed ids and value set to either tru or false if the ccorresponding item has an entry with is_deleted= 0.
| Name | Type | Description |
|---|---|---|
| $id | integer | array |
| Type | Description |
|---|---|
| array |

flagItemAsRead(
$groupwareEmailItemsId, $userId, $isRead
)
:
integerMarks a specified item for the specified user as either "read" or "unread"
| Name | Type | Description |
|---|---|---|
| $groupwareEmailItemsId | ||
| $userId | ||
| $isRead |
| Type | Description |
|---|---|
| integer | 1, if the data has been updated, otherwise 0 |

flagItemAsSpam(
$groupwareEmailItemsId, $userId, $isSpam
)
:
integerMarks a specified item for the specified user as either "spam" or "no spam"
| Name | Type | Description |
|---|---|---|
| $groupwareEmailItemsId | ||
| $userId | ||
| $isSpam |
| Type | Description |
|---|---|
| integer | 1, if the data has been updated, otherwise 0 |

flagItemsAsDeleted(
$groupwareEmailItemsId, $userId
)
:
integerMarks a specified item for the specified user as either "deleted"
| Name | Type | Description |
|---|---|---|
| $groupwareEmailItemsId | integer|array |
|
| $userId |
| Type | Description |
|---|---|
| integer | the number of rows updated |