dmBridge PHP API
DMLoginView.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 DMLoginView extends DMTemplateEngineView implements DMURIAddressable {
00014 
00020    public function __construct(DMTemplate $tpl, DMSession $session,
00021          DMCollection $col = null) {
00022       parent::__construct($tpl, $session, $col
00023             ? $col : DMCollectionFactory::getCollection("/dmdefault"));
00024       $this->setHelper(new DMSearchTemplateHelper($this, $session));
00025    }
00026 
00030    public function getURI() {
00031       $params = "objects/login";
00032       if ($this->getCollection() && !$this->getCollection()->isDefault()) {
00033          $params = "objects" . $this->getCollection()->getAlias() . "/login";
00034       }
00035       return DMInternalURI::getURIWithParams($params);
00036    }
00037 
00038 }
 All Data Structures Functions Variables