Modules/Groupware/Files/Folder/Model/FoldersUsers.php

Show: inherited
Table of Contents

\Conjoon_Modules_Groupware_Files_Folder_Model_FoldersUsers

Package: Conjoon\Groupware\Files\Model

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

Constant  OWNER = 'owner'

Const
OWNER  

Properties

Propertyprotectedstring  $_name= ''groupware_files_folders_users''

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

Default value'groupware_files_folders_users'Details
Type
string
Propertyprotectedstring  $_primary= 'array( 'groupware_files_folders_id', 'users_id' )'

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

Default valuearray( 'groupware_files_folders_id', 'users_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
methodprotected_checkRelationshipType(  $type ) : void

Parameters
Name Type Description
$type
methodpublicaddRelationship( Array $folderIds, integer $userId, string $relationshipType ) : integer

Ads a relationship for the specified folder ids and the $userId to this table.

Parameters
Name Type Description
$folderIds Array
$userId integer
$relationshipType string
Returns
Type Description
integer The total number of added data
methodpublicgetTablePrefix( ) : String
staticinherited

Returns the table prefix.

Inherited from: \Conjoon_Db_Table::getTablePrefix()
Returns
Type Description
String
methodpublicinheritFromParentIdForFolderId( integer $parentId, integer $id ) : integer

Reads out the user ids mapped to the folder with the parent id and writes this information into the table under the new $id.

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

Returns
Type Description
integer The total number of new entires added
Throws
Exception Description
\InvalidArgumentException
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.