dmBridge PHP API
DMObjectResultsView.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 
00015 class DMObjectResultsView extends DMTemplateEngineView
00016 implements DMURIAddressable {
00017 
00021    private $query;
00022 
00029    public function __construct(DMTemplate $tpl, DMSession $session,
00030          DMObject $obj, DMQuery $query) {
00031       parent::__construct($tpl, $session, $obj->getCollection());
00032       $this->setHelper(new DMObjectResultsTemplateHelper($this, $session));
00033       $this->query = $query;
00034    }
00035 
00039    public function getQuery() {
00040       return $this->query;
00041    }
00042 
00046    public function getURI() {
00047       $params = "objects" . $this->getCollection()->getAlias() . "/search";
00048       return DMInternalURI::getURIWithParams($params);
00049    }
00050 
00051 }
00052 
 All Data Structures Functions Variables