Modules/Groupware/Feeds/Item/Model/Flag.php
\Conjoon_Modules_Groupware_Feeds_Item_Model_Flag
Package: Conjoon\Groupware\Email\Model
Parameters
Table data gateway. Models the table <tt>groupware_feeds_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_feeds_items_flags''
The name of the table in the underlying datastore this class represents.
Default value
'groupware_feeds_items_flags'Details- Type
- string

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

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

__construct(
string | array $config
=
array(), \unknown_type $definition
=
null
)
:
void
inherited
__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 |

addItem(
integer $accountId, string $guid
)
:
\1Adds a new guid/accountid pair to the table.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $accountId | integer | |
| $guid | string |
| Type | Description |
|---|---|
| \1 | if the row has been inserted, otherwise 0 |

deleteForAccountId(
integer $accountId
)
:
integerRemoves flasg for a specific account id.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $accountId | integer |
| Type | Description |
|---|---|
| integer | number of deleted rows |

isItemPresent(
integer $accountId, string $guid
)
:
trueChecks wether a feed item with the specified guid was already stored.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $accountId | integer | |
| $guid | string |
| Type | Description |
|---|---|
| true | if it exists, otherwise false |