![]() |
CMS
Version 3.9
|
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") | |
uploadLibraryFile | ( | $field, | |
$document | |||
) |
Definition at line 92 of file upload.inc.
$allowAccessList = new CheckListFieldRenderer($form, "allow_access", "Allow Access", DocumentManager::getRoleOptions()) |
Definition at line 71 of file upload.inc.
Definition at line 52 of file upload.inc.
$document_library_id = checkNumeric($_GET["document_library_id"]) |
Definition at line 37 of file upload.inc.
$fileUpload = new FileUploadFieldRenderer($form, "file", "File", uploadLibraryFile) |
Definition at line 70 of file upload.inc.
$form = new AutoForm($document, "POST", "/action/fileshare/upload?document_library_id=$document_library_id") |
Definition at line 56 of file upload.inc.
$library = new DocumentLibrary($document_library_id) |
Definition at line 43 of file upload.inc.
$notes = $form->getRenderer("notes") |
Definition at line 64 of file upload.inc.
$notes colspan = 1 |
Definition at line 65 of file upload.inc.
$notes columns = 38 |
Definition at line 66 of file upload.inc.
$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($method=="POST") | ( | $method = = "POST" | ) |
Definition at line 73 of file upload.inc.