dmBridge PHP API
DMCPRatingController.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 DMCPRatingController extends DMCPAdminController {
00014 
00015    public function configure() {
00016       $this->preFlightCheck();
00017 
00018       $form = new DMCPRatingSettingsForm();
00019       $this->setForm($form);
00020 
00021       if (DMHTTPRequest::getCurrent()->getMethod() == DMHTTPMethod::POST) {
00022          $this->handleForm();
00023       }
00024 
00025       $this->tpl_vars['enable']
00026             = $form->getFieldByName("enable")->getHTMLTag();
00027 
00028       $this->renderTemplate("/templates/rating/edit.html.php");
00029       die;
00030    }
00031 
00032    public function statistics() {
00033       $this->preFlightCheck();
00034 
00035       $this->renderTemplate("/templates/rating/statistics.html.php");
00036       die;
00037    }
00038 
00039 }
00040 
 All Data Structures Functions Variables