Modules/Groupware/Contact/Item/Model/Item.php
\Conjoon_Modules_Groupware_Contact_Item_Model_Item
Package: Conjoon\Groupware\Email\Model
Parameters
Table data gateway. Models the table <tt>groupware_contact_items</tt>.
- Parent(s)
- \Conjoon_BeanContext_Decoratable < ?\Zend_Db_Table
- Author
- Thorsten Suckow-Homberg
- Category
- Model
- Uses
- \Conjoon_Db_Table
Properties

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

string
$_primary= ''id''
The name of the column that denotes the primary key for this table
Default value
'id'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 |

getContactsByNameOrEmailAddress(
integer $userId, string $query
)
:
ArrayReturns all contact items which first/lastname or email address matches a part of the submitted query-string for the specified user.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $userId | integer | The id of the user to get the contacts for |
| $query | string | The part the name/email-address should contain |
| Type | Description |
|---|---|
| Array |