Solutions Open Source

Référence de la classe fileList

Graphe d'héritage de fileList:

Inheritance graph
[légende]
Graphe de collaboration de fileList:

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 start ($path, $pointer, $sort, $sortRev, $clipBoard=0)
 generateList ()
 writeTop ($path)
 linkClipboardHeaderIcon ($string, $table, $cmd, $warning='')
 getTable ($files, $dirs, $rowlist)
 formatDirList ($items)
 linkWrapDir ($code, $path)
 linkWrapFile ($code, $path)
 listURL ()
 dirData ($theFile)
 formatFileList ($items)
 isImage ($ext)
 linkWrapSort ($code, $path, $col)
 readDirectory ($path, $type, $extList='')
 makeClip ($theData)
 makeRef ($theData)

Attributs publics

 $iLimit = 40
 $thumbs = 0
 $widthGif = '<img src="clear.gif" width="1" height="1" hspace="165" alt="" />'
 $fixedL = 30
 $script = 'file_list.php'
 $clickMenus = 1
 $sort = ''
 $sortRev = 1
 $firstElementNumber = 0
 $clipBoard = 0
 $JScode = ''
 $HTMLcode = ''
 $totalbytes = 0
 $dirs = Array()
 $files = Array()
 $path = ''
 $eCounter = 0
 $totalItems = ''
 $CBnames = array()


Documentation des fonctions membres

fileList::start ( path,
pointer,
sort,
sortRev,
clipBoard = 0 
)

Initialization of class

Paramètres:
string The path to list
integer Pointer
boolean Sorting column
boolean Sorting direction
boolean Show clipboard flag
Renvoie:
void

fileList::generateList (  ) 

Reading files and directories, counting elements and generating the list in ->HTMLcode

Renvoie:
void

fileList::writeTop ( path  ) 

Make the top of the list

Paramètres:
string The path to list.
Renvoie:
void

fileList::linkClipboardHeaderIcon ( string,
table,
cmd,
warning = '' 
)

Wrapping input string in a link with clipboard command.

Paramètres:
string String to be linked - must be htmlspecialchar'ed / prepared before.
string table - NOT USED
string "cmd" value
string Warning for JS confirm message
Renvoie:
string Linked string

fileList::getTable ( files,
dirs,
rowlist 
)

Returns a table with directories and files listed.

Paramètres:
array Array of files from path
array Array of directories from path
string List of rows to display horizontallyh
Renvoie:
string HTML-table

fileList::formatDirList ( items  ) 

This returns tablerows for the directories in the array $items['sorting'].

Paramètres:
array Directory items
Renvoie:
string HTML table rows.

fileList::linkWrapDir ( code,
path 
)

Wraps the directory-titles

Paramètres:
string String to be wrapped in links
string ID (path)
Renvoie:
string HTML

fileList::linkWrapFile ( code,
path 
)

Wraps filenames in links which opens them in a window IF they are in web-path.

Paramètres:
string String to be wrapped in links
string ID (path)
Renvoie:
string HTML

fileList::listURL (  ) 

Returns list URL; This is the URL of the current script with id and imagemode parameters, thats all.

Renvoie:
string URL

fileList::dirData ( theFile  ) 

Returns some data specific for the directories...

Paramètres:
array File information array
Renvoie:
array (title, icon, path)

fileList::formatFileList ( items  ) 

This returns tablerows for the files in the array $items['sorting'].

Paramètres:
array File items
Renvoie:
string HTML table rows.

fileList::isImage ( ext  ) 

Returns true if $ext is an image-extension according to $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']

Paramètres:
string file extension
Renvoie:
boolean

fileList::linkWrapSort ( code,
path,
col 
)

Wraps the directory-titles ($code) in a link to file_list.php (id=$path) and sorting commands...

Paramètres:
string String to be wrapped
string ID (path)
string Sorting column
Renvoie:
string HTML

fileList::readDirectory ( path,
type,
extList = '' 
)

Returns an array with file/dir items + an array with the sorted items

Paramètres:
string Path (absolute) to read
string $type is the technical type; file,dir,link. empty is all kinds of stuff.
string $extList: List of fileextensions to select. If empty, all are selected.
Renvoie:
array Array('files'=>array(), 'sorting'=>array());

fileList::makeClip ( theData  ) 

Creates the clipboard control pad

Paramètres:
array Array with information about the file/directory for which to make the clipboard panel for the listing.
Renvoie:
string HTML-table

fileList::makeRef ( theData  ) 

Make reference count

Paramètres:
array Array with information about the file/directory for which to make the clipboard panel for the listing.
Renvoie:
string HTML


Documentation des données membres

fileList::$iLimit = 40

Réimplémentée à partir de t3lib_recordList.

fileList::$thumbs = 0

fileList::$widthGif = '<img src="clear.gif" width="1" height="1" hspace="165" alt="" />'

fileList::$fixedL = 30

Réimplémentée à partir de t3lib_recordList.

fileList::$script = 'file_list.php'

Réimplémentée à partir de t3lib_recordList.

fileList::$clickMenus = 1

fileList::$sort = ''

fileList::$sortRev = 1

fileList::$firstElementNumber = 0

Réimplémentée à partir de t3lib_recordList.

fileList::$clipBoard = 0

fileList::$JScode = ''

fileList::$HTMLcode = ''

Réimplémentée à partir de t3lib_recordList.

fileList::$totalbytes = 0

fileList::$dirs = Array()

fileList::$files = Array()

fileList::$path = ''

fileList::$eCounter = 0

Réimplémentée à partir de t3lib_recordList.

fileList::$totalItems = ''

Réimplémentée à partir de t3lib_recordList.

fileList::$CBnames = array()


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:40:58 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3