Go to the source code of this file.
|
| $document_id = checkNumeric($_GET["document_id"]) |
|
if(! $document_id) | $document = new Document($document_id) |
|
| $library = $document->DocumentLibrary() |
|
if(!checkRole($library->allow_access) &&! $library->allowAccess()) $document | filter = new InclusionFilter("document_id", "title", "notes", "keywords", "image_id", "author", "file", "url", "allow_access", "publication_date", "publication") |
|
| $form = new AutoForm($document, "POST", "/action/document/edit?document_id=$document_id") |
|
| $fileUpload = new FileUploadFieldRenderer($form, "file_upload", "Replace File", replaceLibraryFile) |
|
$form | allowDelete = true |
|
$form | onDelete = onDeleteDocument |
|
| $notes = $form->getRenderer("notes") |
|
$notes | colspan = 1 |
|
$notes | columns = 38 |
|
| $allowAccessList = new CheckListFieldRenderer($form, "allow_access", "Allow Access", DocumentManager::getRoleOptions()) |
|
| if ( $method=="POST") |
|
◆ onDeleteDocument()
onDeleteDocument |
( |
& |
$document | ) |
|
Definition at line 88 of file edit.inc.
The DocumentManager class provides the core API and management functions for uploading documents and ...
if(! $document_id) $document
◆ replaceLibraryFile()
replaceLibraryFile |
( |
|
$field, |
|
|
|
$document |
|
) |
| |
◆ $allowAccessList
$allowAccessList = new CheckListFieldRenderer($form, "allow_access", "Allow Access", DocumentManager::getRoleOptions()) |
◆ $document
◆ $document_id
◆ $fileUpload
$fileUpload = new FileUploadFieldRenderer($form, "file_upload", "Replace File", replaceLibraryFile) |
◆ $form
◆ $library
◆ $notes
$notes = $form->getRenderer("notes") |
◆ allowDelete
◆ colspan
◆ columns
◆ filter
if (!checkRole( $library->allow_access) &&! $library->allowAccess()) $document filter = new InclusionFilter("document_id", "title", "notes", "keywords", "image_id", "author", "file", "url", "allow_access", "publication_date", "publication") |
◆ if
if($method=="POST") |
( |
|
$method = = "POST" | ) |
|
◆ onDelete