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

Show: inherited
Table of Contents

\Conjoon_Modules_Groupware_Email_Item_Model_Flag

Package: Conjoon\Groupware\Email\Model

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

Propertyprotectedstring  $_name= ''groupware_email_items_flags''

The name of the table in the underlying datastore this class represents.

Default value'groupware_email_items_flags'Details
Type
string
Propertyprotectedstring  $_primary= 'array( 'groupware_email_items_id', 'user_id' )'

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

Default valuearray( 'groupware_email_items_id', 'user_id' )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
methodpublicareItemsFlaggedAsDeleted( integer | array $id ) : array

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

Parameters
Name Type Description
$id integer | array
Returns
Type Description
array
methodpublicflagItemAsRead(  $groupwareEmailItemsId,  $userId,  $isRead ) : integer

Marks a specified item for the specified user as either "read" or "unread"

Parameters
Name Type Description
$groupwareEmailItemsId
$userId
$isRead
Returns
Type Description
integer 1, if the data has been updated, otherwise 0
methodpublicflagItemAsSpam(  $groupwareEmailItemsId,  $userId,  $isSpam ) : integer

Marks a specified item for the specified user as either "spam" or "no spam"

Parameters
Name Type Description
$groupwareEmailItemsId
$userId
$isSpam
Returns
Type Description
integer 1, if the data has been updated, otherwise 0
methodpublicflagItemsAsDeleted(  $groupwareEmailItemsId,  $userId ) : integer

Marks a specified item for the specified user as either "deleted"

Parameters
Name Type Description
$groupwareEmailItemsId

integer|array

$userId
Returns
Type Description
integer the number of rows updated
methodpublicgetTablePrefix( ) : String
staticinherited

Returns the table prefix.

Inherited from: \Conjoon_Db_Table::getTablePrefix()
Returns
Type Description
String
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.