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

Procedural File: document.inc.php

Source Location: /main/document/document.inc.php



Page Details:



Tags:

filesource:  Source Code for this file








build_directory_selector [line 46]

string build_directory_selector( array $folders, string $curdirpath, [string $group_dir = ''], [boolean $changeRenderer = false])

Builds the form thats enables the user to select a directory to browse/upload in



Tags:

return:  html form


Parameters

array   $folders   An array containing the folders we want to be able to select
string   $curdirpath   The current folder (path inside of the "document" directory, including the prefix "/")
string   $group_dir   Group directory, if empty, prevents documents to be uploaded (because group documents cannot be uploaded in root)
boolean   $changeRenderer   Whether to change the renderer (this will add a template <span> to the QuickForm object displaying the form)
[ Top ]



build_document_icon_tag [line 204]

string build_document_icon_tag( string $type, string $path)

Builds an img html tag for the filetype



Tags:

return:  img html tag


Parameters

string   $type   (file/folder)
string   $path  
[ Top ]



build_edit_icons [line 224]

string build_edit_icons( string $curdirpath, string $type, string $path, int $visibility, int $id, $is_template, [ $is_read_only = 0])

Creates the row of edit icons for a file/folder



Tags:

return:  html img tags with hyperlinks


Parameters

string   $curdirpath   current path (cfr open folder)
string   $type   (file/folder)
string   $path   dbase path of file/folder
int   $visibility   (1/0)
int   $id   dbase id of the document
   $is_template  
   $is_read_only  
[ Top ]



build_move_to_selector [line 288]

void build_move_to_selector( $folders, $curdirpath, $move_file, [ $group_dir = ''])



Parameters

   $folders  
   $curdirpath  
   $move_file  
   $group_dir  
[ Top ]



create_document_link [line 144]

string create_document_link( string $www, string $title, string $path, string $filetype, $size, int $visibility)

Create a html hyperlink depending on if it's a folder or a file



Tags:

return:  url


Parameters

string   $www  
string   $title  
string   $path  
string   $filetype   (file/folder)
int   $visibility   (1/0)
   $size  
[ Top ]



display_document_options [line 126]

void display_document_options( )



[ Top ]



get_titles_of_path [line 355]

the get_titles_of_path( string $path)

get the path translated with title of docs and folders



Tags:

return:  path which should be displayed


Parameters

string   $path   the real path
[ Top ]



Documentation generated on Thu, 12 Jun 2008 13:19:06 -0500 by phpDocumentor 1.4.1