dmBridge PHP API
DMAbstractTemplateHelper.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 DMAbstractTemplateHelper implements DMTemplateHelper {
00016 
00020    private $session;
00021 
00025    private $view;
00026 
00030    public function __construct(DMAbstractView $view, DMSession $session) {
00031       $this->setView($view);
00032       $this->setSession($session);
00033       $this->helperWillRender();
00034    }
00035 
00040    public function helperWillRender() {
00041    }
00042 
00046    public function getSession() {
00047       return $this->session;
00048    }
00049 
00053    public function setSession(DMSession $session) {
00054       $this->session = $session;
00055    }
00056 
00060    public function getView() {
00061       return $this->view;
00062    }
00063 
00067    public function setView(DMAbstractView $view) {
00068       $this->view = $view;
00069    }
00070 
00071 }
00072 
 All Data Structures Functions Variables