![]() |
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"]) | |
$folder_select = checkNumeric($_GET["folder_select"]) | |
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/document/upload?document_library_id=$document_library_id") | |
$notes = $form->getRenderer("notes") | |
$notes | colspan = 1 |
$notes | columns = 38 |
if($folder_select) | $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 101 of file upload.inc.
$allowAccessList = new CheckListFieldRenderer($form, "allow_access", "Allow Access", DocumentManager::getRoleOptions()) |
Definition at line 80 of file upload.inc.
Definition at line 55 of file upload.inc.
$document_library_id = checkNumeric($_GET["document_library_id"]) |
Definition at line 37 of file upload.inc.
if ( $folder_select) $fileUpload = new FileUploadFieldRenderer($form, "file", "File", uploadLibraryFile) |
Definition at line 79 of file upload.inc.
$folder_select = checkNumeric($_GET["folder_select"]) |
Definition at line 38 of file upload.inc.
$form = new AutoForm($document, "POST", "/action/document/upload?document_library_id=$document_library_id") |
Definition at line 59 of file upload.inc.
$library = new DocumentLibrary($document_library_id) |
Definition at line 46 of file upload.inc.
$notes = $form->getRenderer("notes") |
Definition at line 69 of file upload.inc.
$notes colspan = 1 |
Definition at line 70 of file upload.inc.
$notes columns = 38 |
Definition at line 71 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 57 of file upload.inc.
if($method=="POST") | ( | $method = = "POST" | ) |
Definition at line 82 of file upload.inc.