dmBridge PHP API
DMSearchView.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 #
00005 # Copyright © 2009, 2010, 2011 Board of Regents of the Nevada System of Higher
00006 # Education, on behalf of the University of Nevada, Las Vegas
00007 #
00008 
00013 class DMSearchView extends DMTemplateEngineView implements DMURIAddressable {
00014 
00020    public function __construct(DMTemplate $tpl, DMSession $session,
00021          DMCollection $col = null) {
00022       parent::__construct($tpl, $session, $col);
00023       $this->setHelper(new DMSearchTemplateHelper($this, $session));
00024    }
00025 
00029    public function getDateSearchBeginYear() {
00030       return $this->getCollection()->getDateSearchBeginYear();
00031    }
00032 
00036    public function getDateSearchEndYear() {
00037       return $this->getCollection()->getDateSearchEndYear();
00038    }
00039 
00043    public function getURI() {
00044       $params = "objects/search";
00045       if ($this->getCollection() && !$this->getCollection()->isDefault()) {
00046          $params = "objects" . $this->getCollection()->getAlias()
00047                . "/search";
00048       }
00049       return DMInternalURI::getURIWithParams($params);
00050    }
00051 
00052 }
 All Data Structures Functions Variables