Modules/Groupware/Feeds/Item/Model/Flag.php

Show: inherited
Table of Contents

\Conjoon_Modules_Groupware_Feeds_Item_Model_Flag

Package: Conjoon\Groupware\Email\Model

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

Propertyprotectedstring  $_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
Propertyprotectedstring  $_primary= 'array( 'groupware_feeds_accounts_id', 'guid' )'

The name of the column that denotes the primary key for this table

Default valuearray( 'groupware_feeds_accounts_id', 'guid' )Details
Type
string
PropertyprotectedString  $_tblPrefix= '""'
staticinherited

Default table prefix.

Inherited from: \Conjoon_Db_Table::$$_tblPrefix
Default value""Details
Type
String
Inherited_from
\Conjoon_Db_Table::$$_tblPrefix  

Methods

methodpublic__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.

Parameters
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
methodpublicaddItem( integer $accountId, string $guid ) : \1

Adds a new guid/accountid pair to the table.

Parameters
Name Type Description
$accountId integer
$guid string
Returns
Type Description
\1 if the row has been inserted, otherwise 0
methodpublicdeleteForAccountId( integer $accountId ) : integer

Removes flasg for a specific account id.

Parameters
Name Type Description
$accountId integer
Returns
Type Description
integer number of deleted rows
methodpublicgetTablePrefix( ) : String
staticinherited

Returns the table prefix.

Inherited from: \Conjoon_Db_Table::getTablePrefix()
Returns
Type Description
String
methodpublicisItemPresent( integer $accountId, string $guid ) : true

Checks wether a feed item with the specified guid was already stored.

Parameters
Name Type Description
$accountId integer
$guid string
Returns
Type Description
true if it exists, otherwise false
methodpublicsetTablePrefix( String $prefix ) : void
staticinherited

Sets the table prefix.

Inherited from: \Conjoon_Db_Table::setTablePrefix()
Parameters
Name Type Description
$prefix String
Documentation was generated by DocBlox 0.18.1.