dmBridge PHP API
DMCPBasicController.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 DMCPBasicController extends DMCPAdminController {
00014 
00015    public function index() {
00016       $this->preFlightCheck();
00017 
00018       $this->setForm(new DMCPBasicSettingsForm());
00019 
00020       if (DMHTTPRequest::getCurrent()->getMethod() == DMHTTPMethod::POST) {
00021          $this->handleForm();
00022       }
00023 
00024       $this->tpl_vars['institution_name'] = $this->getForm()
00025             ->getFieldByName('institution_name')->getHTMLTag();
00026 
00027       $this->renderTemplate("/templates/basic/index.html.php");
00028       die;
00029    }
00030 
00031 }
 All Data Structures Functions Variables