CMS  Version 3.9
upload.inc File Reference

Go to the source code of this file.

Functions

 uploadLibraryFile ($field, $document)
 

Variables

 $document_library_id = checkNumeric($_GET["document_library_id"])
 
if(! $document_library_id) global $library = new DocumentLibrary($document_library_id)
 
if(!checkRole($library->allow_access) &&! $library->allowAccess()) $document = new Document()
 
$document filter = new InclusionFilter("document_id", "title", "notes", "keywords", "file", "author", "publication_date", "document_library_id", "owner_id", "allow_access")
 
 $form = new AutoForm($document, "POST", "/action/fileshare/upload?document_library_id=$document_library_id")
 
 $notes = $form->getRenderer("notes")
 
$notes colspan = 1
 
$notes columns = 38
 
 $fileUpload = new FileUploadFieldRenderer($form, "file", "File", uploadLibraryFile)
 
 $allowAccessList = new CheckListFieldRenderer($form, "allow_access", "Allow Access", DocumentManager::getRoleOptions())
 
 if ( $method=="POST")
 

Function Documentation

◆ uploadLibraryFile()

uploadLibraryFile (   $field,
  $document 
)

Definition at line 92 of file upload.inc.

93 {
94  global $library;
95  global $form;
96 
98  $document->file = $mgr->uploadFile($field, "");
99 }
The DocumentManager class provides the core API and management functions for uploading documents and ...
$form
Definition: upload.inc:59
if(!checkRole($library->allow_access) &&! $library->allowAccess()) $document
Definition: upload.inc:55
if(! $document_library_id) global $library
Definition: upload.inc:41
$mgr
Definition: upload.inc:39

Variable Documentation

◆ $allowAccessList

$allowAccessList = new CheckListFieldRenderer($form, "allow_access", "Allow Access", DocumentManager::getRoleOptions())

Definition at line 71 of file upload.inc.

◆ $document

if (!checkRole( $library->allow_access) &&! $library->allowAccess()) $document = new Document()

Definition at line 52 of file upload.inc.

◆ $document_library_id

$document_library_id = checkNumeric($_GET["document_library_id"])

Definition at line 37 of file upload.inc.

◆ $fileUpload

$fileUpload = new FileUploadFieldRenderer($form, "file", "File", uploadLibraryFile)

Definition at line 70 of file upload.inc.

◆ $form

$form = new AutoForm($document, "POST", "/action/fileshare/upload?document_library_id=$document_library_id")

Definition at line 56 of file upload.inc.

◆ $library

$library = new DocumentLibrary($document_library_id)

Definition at line 43 of file upload.inc.

◆ $notes

$notes = $form->getRenderer("notes")

Definition at line 64 of file upload.inc.

◆ colspan

$notes colspan = 1

Definition at line 65 of file upload.inc.

◆ columns

$notes columns = 38

Definition at line 66 of file upload.inc.

◆ filter

$document filter = new InclusionFilter("document_id", "title", "notes", "keywords", "file", "author", "publication_date", "document_library_id", "owner_id", "allow_access")

Definition at line 54 of file upload.inc.

◆ if

if($method=="POST") (   $method = = "POST")

Definition at line 73 of file upload.inc.