CMS  Version 3.9
document_picker.inc File Reference

Go to the source code of this file.

Variables

 $editor = $_GET["Editor"]
 
 $document_library_id = checkNumeric($_GET["document_library_id"])
 
 $libraries = Query::create(DocumentLibrary, "WHERE hidden=0 ORDER BY name")->execute()
 
if(! $document_library_id &&count($libraries) > 0) $library = new DocumentLibrary()
 
 $docMgr = new DocumentManager($library)
 
 $table = new DataListView($docMgr->documents, "library_documents")
 
$table sortable = false
 
$table filter = false
 
$table paginate = false
 
$table emptyMessage = "There are no files in {$library->name}."
 
$table cssStyle = "width: 100%; padding-top: 8px;"
 
 foreach ( $libraries as $library)
 

Variable Documentation

◆ $docMgr

$docMgr = new DocumentManager($library)

Definition at line 50 of file document_picker.inc.

◆ $document_library_id

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

Definition at line 38 of file document_picker.inc.

◆ $editor

$editor = $_GET["Editor"]

Definition at line 37 of file document_picker.inc.

◆ $libraries

$libraries = Query::create(DocumentLibrary, "WHERE hidden=0 ORDER BY name")->execute()

Definition at line 40 of file document_picker.inc.

◆ $library

if (! $document_library_id &&count( $libraries) > 0) $library = new DocumentLibrary()

Definition at line 47 of file document_picker.inc.

◆ $table

$table = new DataListView($docMgr->documents, "library_documents")

Definition at line 52 of file document_picker.inc.

◆ cssStyle

$table cssStyle = "width: 100%; padding-top: 8px;"

Definition at line 64 of file document_picker.inc.

◆ emptyMessage

$table emptyMessage = "There are no files in {$library->name}."

Definition at line 63 of file document_picker.inc.

◆ filter

$table filter = false

Definition at line 61 of file document_picker.inc.

◆ foreach

foreach($libraries as $library) (   $libraries as)

Definition at line 73 of file document_picker.inc.

◆ paginate

$table paginate = false

Definition at line 62 of file document_picker.inc.

◆ sortable

$table sortable = false

Definition at line 60 of file document_picker.inc.