Class TableFolder
- TableAccess
- TableFolder
License: GNU General Public License v2.0 only **********************************************************************************************
Class:
TableFolder Diese Klasse dient dazu ein Folderobjekt zu erstellen. Ein Ordner kann ueber diese Klasse in der Datenbank verwaltet werden
Located at tablefolder.php
Methods summary
public
|
#
__construct(
Constructor that will create an object of a recordset of the table adm_folders. If the id is set than the specific folder will be loaded. |
public
|
#
addRolesOnFolder( string $rolesRightNameIntern, array $rolesArray, integer $folderId = 0 )
Add all roles of the array to the current folder and all of the subfolders. The roles will be assigned to the right that was set through parameter $rolesRightNameIntern. |
public
string[]
|
|
public
boolean
|
|
public
|
#
editLockedFlagOnFolder( boolean $lockedFlag, integer $folderId = 0 )
Setzt das Lockedflag (0 oder 1) auf einer vorhandenen Ordnerinstanz und allen darin enthaltenen Unterordnern und Dateien rekursiv |
public
|
#
editPublicFlagOnFolder( boolean $publicFlag, integer $folderId = 0 )
Set the public flag to a folder and all subfolders. |
public static
string
|
#
getRootFolderName( )
Create a unique folder name for the root folder of the download module that contains the shortname of the current organization |
public
true
|
#
getFolderForDownload( integer $folderId )
Reads the folder recordset from database table @b adm_folders and throws an AdmException if the user has no right to see the folder or the folder id doesn't exists. |
public
array[]
|
#
getFolderContentsForDownload( )
Inhalt des aktuellen Ordners, abhaengig von den Benutzerrechten, als Array zurueckliefern... |
public
string
|
|
public
string
|
#
getNavigationForDownload( integer $folderId = 0, string $currentNavigation = '' )
Gibt fuer das Downloadmodul eine HTML-Navigationsleiste fuer die Ordner zurueck |
public
int[]
|
#
getRoleViewArrayOfFolder( )
Returns an array with all roles ids that have the right to view the folder. |
public
int[]
|
#
getRoleUploadArrayOfFolder( )
Returns an array with all roles ids that have the right to upload files to the folder. |
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
protected
boolean
|
#
readData( string $sqlWhereCondition )
Reads a record out of the table in database selected by the conditions of the param @b $sqlWhereCondition out of the table. If the sql will find more than one record the method returns @b false. Per default all columns of the default table will be read and stored in the object. |
public
|
#
removeRolesOnFolder( string $rolesRightNameIntern, array $rolesArray, integer $folderId = 0 )
Remove all roles of the array from the current folder and all of the subfolders. The roles will be removed from the right that was set through parameter $rolesRightNameIntern. |
public
|
|
public
boolean
|
#
save( boolean $updateFingerPrint = true )
Save all changed columns of the recordset in table of database. Therefore the class remembers if it's a new record or if only an update is necessary. The update statement will only update the changed columns. If the table has columns for creator or editor than these column with their timestamp will be updated. For new records the user, organization and timestamp will be set per default. |
Methods inherited from TableAccess
__sleep()
,
clear()
,
connectAdditionalTable()
,
countAllRecords()
,
hasColumnsValueChanged()
,
isNewRecord()
,
readDataByColumns()
,
readDataById()
,
setArray()
,
setDatabase()
,
setValue()
Properties summary
protected
|
$folderPath
|
|
protected
|
$folderViewRolesObject
|
|
protected
|
$folderUploadRolesObject
|
Properties inherited from TableAccess
$additionalTables
,
$columnPrefix
,
$columnsInfos
,
$columnsValueChanged
,
$db
,
$dbColumns
,
$keyColumnName
,
$new_record
,
$tableName