Modules/Groupware/Files/Folder/Model/FoldersUsers.php
\Conjoon_Modules_Groupware_Files_Folder_Model_FoldersUsers
Table data gateway. Models the table <tt>groupware_files_folders_users</tt>.
- Parent(s)
- \Conjoon_Db_Table < \Zend_Db_Table
- Author
- Thorsten Suckow-Homberg
- Category
- Model
- Uses
- \Zend_Db_Table
Constants
Properties

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

string
$_primary= 'array(
'groupware_files_folders_id',
'users_id'
)'
The name of the column that denotes the primary key for this table
array(
'groupware_files_folders_id',
'users_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 |

addRelationship(
Array $folderIds, integer $userId, string $relationshipType
)
:
integerAds a relationship for the specified folder ids and the $userId to this table.
| Name | Type | Description |
|---|---|---|
| $folderIds | Array | |
| $userId | integer | |
| $relationshipType | string |
| Type | Description |
|---|---|
| integer | The total number of added data |

inheritFromParentIdForFolderId(
integer $parentId, integer $id
)
:
integerReads out the user ids mapped to the folder with the parent id and writes this information into the table under the new $id.
| Name | Type | Description |
|---|---|---|
| $parentId | integer | The parent's folder information |
| $id | integer | The new id under which all information previously fetched from $parentId should be written. |
| Type | Description |
|---|---|
| integer | The total number of new entires added |
| Exception | Description |
|---|---|
| \InvalidArgumentException |