Class TableFile
- TableAccess
- TableFile
License: GNU General Public License v2.0 only **********************************************************************************************
Class:
TableFile Diese Klasse dient dazu ein Fileobjekt zu erstellen. Eine Datei kann ueber diese Klasse in der Datenbank verwaltet werden
Beside the methods of the parent class there are the following additional methods:
getFileForDownload($fileId) - File mit der uebergebenen ID aus der Datenbank auslesen fuer das Downloadmodul. Hier wird auch direkt ueberprueft ob die Datei oder der Ordner gesperrt ist. getCompletePathOfFile() - Gibt den kompletten Pfad der Datei zurueck
Located at tablefile.php
Methods summary
public
|
#
__construct(
Constructor that will create an object of a recordset of the table adm_files. If the id is set than the specific files will be loaded. |
public
boolean
|
|
public
string
|
|
public
true
|
#
getFileForDownload( integer $fileId )
Reads the file recordset from database table @b adm_folders and throws an AdmException if the user has no right to see the corresponding folder or the file id doesn't exists. |
public
integer|string|boolean
|
|
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 and timestamp will be set per default. |
Methods inherited from TableAccess
__sleep()
,
clear()
,
connectAdditionalTable()
,
countAllRecords()
,
hasColumnsValueChanged()
,
isNewRecord()
,
readData()
,
readDataByColumns()
,
readDataById()
,
setArray()
,
setDatabase()
,
setValue()
Properties summary
Properties inherited from TableAccess
$additionalTables
,
$columnPrefix
,
$columnsInfos
,
$columnsValueChanged
,
$db
,
$dbColumns
,
$keyColumnName
,
$new_record
,
$tableName