[ Index ]
 

Code source de Claroline 188

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/claroline/inc/lib/ -> fileManage.lib.php (sommaire)

CLAROLINE

Author: Claro Team <cvs@claroline.net>
Author: Hugues Peeters <peeters@ipm.ucl.ac.be>
Copyright: (c) 2001-2006 Universite catholique de Louvain (UCL)
License: http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
Version: 1.8 $Revision: 1.72.2.1 $
Poids: 862 lignes (26 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 18 fonctions

  check_name_exist()
  claro_delete_file()
  claro_rename_file()
  claro_move_file()
  claro_copy_file()
  claro_dirname()
  index_dir()
  index_and_sort_dir()
  form_dir_list()
  claro_mkdir()
  claro_get_file_size()
  claro_search_file()
  search_string_to_pcre()
  getInvisibleDocumentList()
  get_link_file_url()
  update_db_info()
  update_Doc_Path_in_Assets()
  get_html_body_content()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

check_name_exist($filePath)   X-Ref
Checks a file or a directory actually exist at this location

param: - filePath (string) - path of the presume existing file or dir
return: - boolean TRUE if the file or the directory exists

claro_delete_file($filePath)   X-Ref
Delete a file or a directory (and its whole content)

param: - $filePath (String) - the path of file or directory to delete
return: - boolean - true if the delete succeed

claro_rename_file($oldFilePath, $newFilePath)   X-Ref
Pas de description

claro_move_file($sourcePath, $targetPath)   X-Ref
Move a file or a directory to an other area

param: - $sourcePath (String) - the path of file or directory to move
param: - $targetPath (String) - the path of the new area
return: - boolean - true if the move succeed

claro_copy_file($sourcePath, $targetPath)   X-Ref
Copy a file or a directory and its content to an other directory

param: - $sourcePath (String) - the path of the directory or the path of the file to move
param: - $targetPath (String) - the path of the destination directory
return: - void no return !!

claro_dirname($filePath)   X-Ref
returns the dir path of a specific file or directory

param: string $filePath
return: string dir name

index_dir($path)   X-Ref
Indexes all the directories and subdirectories
contented in a given directory

param: - path (string) - directory path of the one to index
return: - an array containing the path of all the subdirectories

index_and_sort_dir($path)   X-Ref
Indexes all the directories and subdirectories
contented in a given directory, and sort them alphabetically

param: - path (string) - directory path of the one to index
return: - an array containing the path of all the subdirectories sorted

form_dir_list($file, $baseWorkDir)   X-Ref
build an html form listing all directories of a given directory and file to move

param: file        string: filename to o move
param: baseWorkDir string: complete path to root directory to prupose as target for move

claro_mkdir($pathName, $mode = 0777, $recursive = false)   X-Ref
create directories path

param: string  $pathname
param: int     $mode directory permission (optional)
param: boolean $recursive (optional)
return: boolean TRUE if succeed, false otherwise

claro_get_file_size($filePath)   X-Ref
Pas de description

claro_search_file($searchPattern , $baseDirPath,$recursive = false , $fileType = 'ALL',$excludedPathList = array()   X-Ref
search files or directory whose name fit a pattern

param: string $searchPattern - Perl compatible regex to search on file name
param: string $baseDirPath - directory path where to start the search
param: string $fileType (optional) - filter allowing to restrict search
param: array $excludedPathList (optional) - list of files or directories
return: array path list of the files fitting the search pattern

search_string_to_pcre($searchPattern)   X-Ref
convert search string coming from the user interface
to a Perl Compatible Regular Expression (PCRE)

author: Hugues Peeters <peeters@ipm.ucl.ac.be>
param: string search string
return: string Perl Compatible Regular Expression

getInvisibleDocumentList( $baseWorkDir, $cidReq = null )   X-Ref
Get the list of invisible documents of the current course

param: $baseWorkDir path document
param: $cidReq course identifier
return: list of invisible document

get_link_file_url($file)   X-Ref
get the url written in files specially created by Claroline
to redirect to a specific url

param: param string $file complete file path
return: string url

update_db_info($action, $filePath, $newParamList = array()   X-Ref
Update the file or directory path in the document db document table

param: String action    - action type require : 'delete' or 'update'
param: String filePath  - original path of the file
param: String $newParam - new param of the file, can contain

update_Doc_Path_in_Assets($type, $oldPath, $newPath)   X-Ref
Pas de description

get_html_body_content($html)   X-Ref
Pas de description



Généré le : Thu Nov 29 14:38:42 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics