CMS  Version 3.9
DocumentLibraryListView Class Reference
+ Inheritance diagram for DocumentLibraryListView:

Public Member Functions

 DocumentLibraryListView ($libraries)
 
 buildTable ($libraries)
 
 formatTitleLink ($library)
 
 writeScript ()
 
 drawView ()
 

Public Attributes

 $table
 

Detailed Description

Definition at line 168 of file document_view.inc.

Member Function Documentation

◆ buildTable()

DocumentLibraryListView::buildTable (   $libraries)

Definition at line 177 of file document_view.inc.

178  {
179  $table = new DataListView($libraries, "libraries");
180  $table->column("Library", array($this, formatTitleLink), true, "width: 50%")
181  ->column("Identifier", "{identifier}", true, "width: 15%")
182  ->column("Owner", "{getOwnerName()}", true, "width: 20%")
183  ->column("# Docs", "{countDocuments()}", true, "width: 15%;text-align: right");
184 
185  $table->sortable = true;
186  $table->filter = true;
187  $table->pageSize = 10;
188  $table->emptyMessage = "No Document Libraries have been created.";
189 
190  return $table;
191  }

◆ DocumentLibraryListView()

DocumentLibraryListView::DocumentLibraryListView (   $libraries)

Definition at line 172 of file document_view.inc.

173  {
174  $this->table = $this->buildTable($libraries);
175  }

◆ drawView()

DocumentLibraryListView::drawView ( )

Definition at line 203 of file document_view.inc.

204  {
205  $this->table->drawView();
206  }

◆ formatTitleLink()

DocumentLibraryListView::formatTitleLink (   $library)

Reimplemented in AdminDocumentLibraryListView.

Definition at line 193 of file document_view.inc.

194  {
195  return $library->format("<a href='document_library_form?document_library_id={document_library_id}'>{name}</a>{description}");
196  }
if(! $document_library_id) $library

◆ writeScript()

DocumentLibraryListView::writeScript ( )

Definition at line 198 of file document_view.inc.

199  {
200  return $this->table->writeScript();
201  }

Member Data Documentation

◆ $table

DocumentLibraryListView::$table

Definition at line 170 of file document_view.inc.


The documentation for this class was generated from the following file: