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

Procedural File: edit_document.php

Source Location: /main/document/edit_document.php



Page Details:

This file allows editing documents.

Based on create_document, this file allows

  • edit name
  • edit comments
  • edit metadata (requires a document table entry)
  • edit html content (only for htm/html files)
For all files
  • show editable name field
  • show editable comments field
Additionally, for html and text files
  • show RTE
Remember, all files and folders must always have an entry in the database, regardless of wether they are visible/invisible, have comments or not.




Tags:

todo:  improve script structure (FormValidator is used to display form, but not for validation at the moment)


Includes:

include(fileUpload.lib.php) [line 65]
include(fileManage.lib.php) [line 64]
include(events.lib.inc.php) [line 66]
include('../inc/global.inc.php') [line 61]
This file allows editing documents.

Based on create_document, this file allows

  • edit name
  • edit comments
  • edit metadata (requires a document table entry)
  • edit html content (only for htm/html files)
For all files
  • show editable name field
  • show editable comments field
Additionally, for html and text files
  • show RTE
Remember, all files and folders must always have an entry in the database, regardless of wether they are visible/invisible, have comments or not.




Tags:

todo:  improve script structure (FormValidator is used to display form, but not for validation at the moment)
include(document.lib.php) [line 67]
require_once(api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php') [line 68]






change_name [line 189]

void change_name( $baseWorkDir, $sourceFile, $renameTo, $dir, $doc)



Parameters

   $baseWorkDir  
   $sourceFile  
   $renameTo  
   $dir  
   $doc  
[ Top ]



Documentation generated on Wed, 05 Sep 2007 06:14:38 +0200 by phpDocumentor 1.4.0