com-tecnick-tcexam-admin
[ class tree: com-tecnick-tcexam-admin ] [ index: com-tecnick-tcexam-admin ] [ all elements ]

Procedural File: tce_functions_filemanager.php

Source Location: /admin/code/tce_functions_filemanager.php



Page Details:

Functions for TCExam file manager.



Tags:

author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
since:  2010-09-20
license:  GNU Affero General Public License








F_createMediaDir [line 119]

true F_createMediaDir( string $dirname)

Create a new media directory inside the cache



Tags:

return:  in case of success, false otherwise
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $dirname   the directory name
[ Top ]



F_deleteMediaDir [line 140]

true F_deleteMediaDir( string $dirname)

Delete the specified media directory



Tags:

return:  in case of success, false otherwise
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $dirname   the directory name
[ Top ]



F_deleteMediaFile [line 61]

true F_deleteMediaFile( string $filename)

Delete the selected media file



Tags:

return:  in case of success, false otherwise
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $filename   the file name
[ Top ]



F_formatFileSize [line 204]

string F_formatFileSize( int $size)

Return a formatted file size



Tags:

return:  formatted size
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

int   $size   size in bytes
[ Top ]



F_getDirFiles [line 259]

an F_getDirFiles( string $dir)

Get an associative array of directories and folder inside the specified dir.



Tags:

return:  associative array containing sorted 'dirs' and 'files'
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $dir   the starting directory path
[ Top ]



F_getDirTable [line 329]

html F_getDirTable( string $dir, [string $selected = ''], [string $params = ''])

Get an html table containing files and subdirs



Tags:

return:  table
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $dir   the starting directory path
string   $selected   the selected file
string   $params   additional parameters to add on links
[ Top ]



F_getDirVisualTable [line 388]

html F_getDirVisualTable( string $dir, [string $selected = ''], [string $params = ''])

Get an html visual list of files and subdirs



Tags:

return:  table
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $dir   the starting directory path
string   $selected   the selected file
string   $params   additional parameters to add on links
[ Top ]



F_getFileInfo [line 161]

associative F_getFileInfo( string $file)

Get file information



Tags:

return:  array containing file info or false in case of error
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $file   the file name
[ Top ]



F_getMediaDirPathLink [line 227]

an F_getMediaDirPathLink( string $dirpath, [boolean $viewmode = true])

Get an html string containing active path of the specified directory with links to subdirectories.



Tags:

return:  html string
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $dirpath   the directory path
boolean   $viewmode   true=table, false=visual
[ Top ]



F_isUsedMediaFile [line 292]

true F_isUsedMediaFile( string $file)

Return true if the file is used on question or answer descriptions



Tags:

return:  if the file is used, false otherwise
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $file   the fiel to search
[ Top ]



F_renameMediaFile [line 88]

true F_renameMediaFile( string $filename, string $newname)

Rename the selected media file



Tags:

return:  in case of success, false otherwise
author:  Nicola Asuni
copyright:  Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
license:  GNU Affero General Public License


Parameters

string   $filename   old file name
string   $newname   new file name
[ Top ]



Documentation generated on Mon, 06 Dec 2010 12:03:04 +0100 by phpDocumentor 1.4.3