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)
filesource:  Source Code for this file


Includes:

include(fileUpload.lib.php) [line 84]
include(fileManage.lib.php) [line 83]
include(events.lib.inc.php) [line 85]
include('../inc/global.inc.php') [line 60]
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)
filesource:  Source Code for this file
include(document.lib.php) [line 86]
include_once(groupmanager.lib.php) [line 88]
require_once(api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php') [line 89]






change_name [line 207]

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



Parameters

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



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