dokeos-library
[ class tree: dokeos-library ] [ index: dokeos-library ] [ all elements ]

Class: FileManager

Source Location: /main/inc/lib/fileManage.lib.php

Class Overview




Methods



Class Details

[line 649]


[ Top ]


Class Methods


method compat_load_file [line 733]

void compat_load_file( $file_name)



Parameters:

   $file_name  

[ Top ]

method list_all_directories [line 663]

void list_all_directories( $path)



Parameters:

   $path  

[ Top ]

method list_all_files [line 703]

void list_all_files( $dirArray)



Parameters:

   $dirArray  

[ Top ]

method mkdirs [line 808]

boolean mkdirs( string $path, [string $mode = '0770'])

Like in Java, creates the directory named by this abstract pathname, including any necessary but nonexistent parent directories.



Tags:

return:  TRUE if succeeds FALSE otherwise
author:  Hugues Peeters <peeters@ipm.ucl.ac.be>
author:  Christophe Gesche <gesche@ipm.ucl.ac.be>


Parameters:

string   $path   - path to create
string   $mode   - directory permission (default is '770')

[ Top ]

method set_default_settings [line 760]

void set_default_settings( path, $upload_path, $filename, [ $filetype = "file"], $glued_table, [ $default_visibility = 'v'])

Adds file/folder to document table in database

improvement from set_default_settings (see below): take all info from function parameters no global variables needed

NOTE $glued_table should already have backticks around it (get it from the database library, and it is done automatically)




Tags:

author:  Roan Embrechts
author:  Olivier Cauberghe <olivier.cauberghe@ugent.be>
version:  1.2


Parameters:

path,   $upload_path   filename, filetype,
   $filename  
   $filetype  
   $glued_table  
   $default_visibility  

[ Top ]


Documentation generated on Thu, 12 Jun 2008 13:28:53 -0500 by phpDocumentor 1.4.1