contenido\includes\functions.upl.php
Project:
Contenido Content Management System
Description:
Upload functions
Requirements:
- Author
- Jan Lengowski
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- Contenido Backend includes
- Since
- file available since contenido release <= 4.6
{@internal
created 2003-12-28
modified 2008-06-26, Frederic Schneider, add security fix
modified 2008-11-27, Andreas Lindner, add possibility to define additional chars as allowed in file / dir names
modified 2009-03-16, Ingo van Peeren, fixed some sql-statements and a missing parameter in uplRenameDirectory()
modified 2009-10-22, OliverL, fixed uplHasFiles is only one file in directory you can delete Directory
modified 2009-10-29, Murat Purc, replaced deprecated functions (PHP 5.3 ready) and usage of is_dbfs()
$Id: functions.upl.php 1094 2009-11-06 01:22:13Z xmurrix $:
}}
- Version
- 1.3.3
Functions


generateDisplayFilePath(string $sDisplayPath, int $iLimit) : string
Function reduces long path names and creates a dynamic tooltipp which shows
the full path name on mouseover
ParametersName | Type | Description |
---|
$sDisplayPath | string |
|
---|
$iLimit | int |
- limit of chars which were displayed directly. If the path
string is shorter there will be no tooltipp
|
---|
ReturnsType | Description |
---|
string | - string, which contains short path name and tooltipp if neccessary |
Details- Author
- Timo Trautmann (4fb)


uplGetDirectoriesToExclude() : array
Returns list of directory names to exclude e.
g. from directory listings.
Returns

uplGetFileIcon( $file) : \Icon
Returns the icon for a file type
ParametersName | Type | Description |
---|
$file | | Filename to retrieve the extension for |
---|
ReturnsType | Description |
---|
\Icon | for the file type |


uplGetFileTypeDescription( $extension) : \Text
Returns the description for a file type
ParametersName | Type | Description |
---|
$extension | | Extension to use |
---|
ReturnsType | Description |
---|
\Text | for the file type |


uplSyncDirectory(string $sPath) : void
uplSyncDirectory ($path)
Sync database contents with directory
ParametersName | Type | Description |
---|
$sPath | string | Specifies the path to scan |
---|


uplSyncDirectoryDBFS(string $path) : void
uplSyncDirectoryDBFS ($path)
Sync database contents with DBFS
ParametersName | Type | Description |
---|
$path | string | Specifies the path to scan |
---|