contenido\includes\functions.upl.php

Show: PublicProtectedPrivateinherited
    Table of Contents
    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

    functiongenerateDisplayFilePath(string $sDisplayPath, int $iLimit) : string

    Function reduces long path names and creates a dynamic tooltipp which shows the full path name on mouseover

    Parameters
    NameTypeDescription
    $sDisplayPathstring
    • original filepath
    $iLimitint
    • limit of chars which were displayed directly. If the path string is shorter there will be no tooltipp
    Returns
    TypeDescription
    string- string, which contains short path name and tooltipp if neccessary
    Details
    Author
    Timo Trautmann (4fb)  
    functionuplCreateFriendlyName( $filename) : void

    Parameters
    NameTypeDescription
    $filename
    functionuplDirectoryListRecursive( $currentdir,  $startdir = NULL,  $files = array(),  $depth = -1,  $pathstring = "") : void

    Parameters
    NameTypeDescription
    $currentdir
    $startdir
    $files
    $depth
    $pathstring
    functionuplGetDirectoriesToExclude() : array

    Returns list of directory names to exclude e.

    g. from directory listings.

    Returns
    TypeDescription
    array
    functionuplGetFileExtension( $sFile) : void

    Parameters
    NameTypeDescription
    $sFile
    functionuplGetFileIcon( $file) : \Icon

    Returns the icon for a file type

    Parameters
    NameTypeDescription
    $file

    Filename to retrieve the extension for

    Returns
    TypeDescription
    \Iconfor the file type
    functionuplGetFileTypeDescription( $extension) : \Text

    Returns the description for a file type

    Parameters
    NameTypeDescription
    $extension

    Extension to use

    Returns
    TypeDescription
    \Textfor the file type
    functionuplGetThumbnail( $file,  $maxsize) : void

    Parameters
    NameTypeDescription
    $file
    $maxsize
    functionuplHasFiles( $dir) : void

    Parameters
    NameTypeDescription
    $dir
    functionuplHasSubdirs( $dir) : void

    Parameters
    NameTypeDescription
    $dir
    functionuplRecursiveDBDirectoryList( $directory,  $rootitem,  $level) : void

    Parameters
    NameTypeDescription
    $directory
    $rootitem
    $level
    functionuplRecursiveDirectoryList( $directory,  $rootitem,  $level,  $sParent = '',  $iRenameLevel = null) : void

    Parameters
    NameTypeDescription
    $directory
    $rootitem
    $level
    $sParent
    $iRenameLevel
    functionuplRecursiveRmDirIfEmpty( $dir) : void

    Parameters
    NameTypeDescription
    $dir
    functionuplRenameDirectory( $oldpath,  $newpath,  $parent) : void

    Parameters
    NameTypeDescription
    $oldpath
    $newpath
    $parent
    functionuplSearch( $searchfor) : void

    Parameters
    NameTypeDescription
    $searchfor
    functionuplSyncDirectory(string $sPath) : void

    uplSyncDirectory ($path) Sync database contents with directory

    Parameters
    NameTypeDescription
    $sPathstring

    Specifies the path to scan

    functionuplSyncDirectoryDBFS(string $path) : void

    uplSyncDirectoryDBFS ($path) Sync database contents with DBFS

    Parameters
    NameTypeDescription
    $pathstring

    Specifies the path to scan

    functionupldelete( $path,  $files) : void

    Parameters
    NameTypeDescription
    $path
    $files
    functionuplmkdir( $path,  $name) : void

    Parameters
    NameTypeDescription
    $path
    $name
    Documentation was generated by phpDocumentor 2.0.0a12.