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

Public Member Functions

 __construct ($library)
 
 buildView ()
 
 drawView ()
 

Static Public Member Functions

static create ($library)
 

Public Attributes

 $library
 
 $view
 

Detailed Description

Definition at line 64 of file link_library_view.inc.

Constructor & Destructor Documentation

◆ __construct()

LinkLibraryView::__construct (   $library)

Reimplemented in ListLinkLibraryView, and TabularLinkLibraryView.

Definition at line 69 of file link_library_view.inc.

70  {
71  $this->library = $library;
72  $this->links = $this->library->Links("WHERE published=1 ORDER BY sort_order, title, url");
73  $this->view = $this->buildView();
74 
75  $this->facetManager = new FacetManager('facet_manager', $this->view);
76  TaxonomyManager::addFacets($this->facetManager, LinkRecord, true, "160px", "200px", "200px");
77  }
static addFacets($manager, $classes, $dropdown=true, $max_width="200px", $width="200px", $height="120px")

Member Function Documentation

◆ buildView()

LinkLibraryView::buildView ( )
abstract

◆ create()

static LinkLibraryView::create (   $library)
static

Definition at line 79 of file link_library_view.inc.

80  {
81  $format = Settings::getValue("link_library", "display_format");
82 
83  switch($format)
84  {
85  case "Tabular":
86  return new TabularLinkLibraryView($library);
87 
88  default:
89  return new ListLinkLibraryView($library);
90  }
91  }
static getValue($component, $name)
Retrieve the value of the specified Setting.
Definition: settings.inc:104

◆ drawView()

LinkLibraryView::drawView ( )
abstract

Member Data Documentation

◆ $library

LinkLibraryView::$library

Definition at line 66 of file link_library_view.inc.

◆ $view

LinkLibraryView::$view

Definition at line 67 of file link_library_view.inc.


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