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

Procedural File: work.php

Source Location: /main/work/work.php



Page Details:



Tags:

author:  Thomas, Hugues, Christophe - original version
author:  Frederic Vauthier, directories management
author:  Patrick Cool <patrick.cool@UGent.be>, Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default.
author:  Roan Embrechts, code refactoring and virtual course support
version:  $Id: work.php 12582 2007-06-11 14:55:14Z elixir_julian $
todo:  refactor more code into functions, use quickforms, coding standards, ...


Includes:

include(reduced_header.inc.php) [line 281]
include_once(api_get_path(INCLUDE_PATH)."lib/fileDisplay.lib.php") [line 232]
include_once(api_get_path(INCLUDE_PATH)."lib/fileUpload.lib.php") [line 231]
include_once(fileUpload.lib.php) [line 446]
include_once(api_get_path(LIBRARY_PATH)."/fileManage.lib.php") [line 484]
require('../inc/global.inc.php') [line 101]
STUDENT PUBLICATIONS MODULE

Note: for a more advanced module, see the dropbox tool. This one is easier with less options. This tool is better used for publishing things, sending in assignments is better in the dropbox.

GOALS ***** Allow student to quickly send documents immediately visible on the course website.

The script does 5 things:

  1. Upload documents
  2. Give them a name
  3. Modify data about documents
  4. Delete link to documents and simultaneously remove them
  5. Show documents list to students and visitors
On the long run, the idea is to allow sending realvideo . Which means only establish a correspondence between RealServer Content Path and the user's documents path.

All documents are sent to the address /$_configuration['root_sys']/$currentCourseID/document/ where $currentCourseID is the web directory for the course and $_configuration['root_sys'] usually /var/www/html

Modified by Patrick Cool, february 2004: Allow course managers to specify wether newly uploaded documents should be visible or unvisible by default This is ideal for reviewing the uploaded documents before the document is available for everyone.

note: maybe the form to change the behaviour should go into the course properties page? note 2: maybe a new field should be created in the course table for this behaviour.

We now use the show_score field since this is not used.


require_once('work.lib.php') [line 106]
require_once(debug.lib.inc.php) [line 103]
require_once(security.lib.php) [line 105]
require_once(api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php') [line 821]
require_once(fileDisplay.lib.php) [line 822]
require_once(course.lib.php) [line 102]
require_once(events.lib.inc.php) [line 104]






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