dmBridge PHP API
DMCPFeedController.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 DMCPFeedController extends DMCPAdminController {
00014 
00015    public function index() {
00016       $this->preFlightCheck();
00017 
00018       $form = new DMCPFeedSettingsForm();
00019       $this->setForm($form);
00020 
00021       if (DMHTTPRequest::getCurrent()->getMethod() == DMHTTPMethod::POST) {
00022          $this->handleForm();
00023       }
00024 
00025       $this->tpl_vars['copyright']
00026             = $form->getFieldByName('copyright')->getHTMLTag();
00027       $this->tpl_vars['title']
00028             = $form->getFieldByName('title')->getHTMLTag();
00029       $this->tpl_vars['subtitle']
00030             = $form->getFieldByName('subtitle')->getHTMLTag();
00031       $this->tpl_vars['language']
00032             = $form->getFieldByName('language')->getHTMLTag();
00033       $this->tpl_vars['managing_editor_name']
00034             = $form->getFieldByName('managing_editor_name')->getHTMLTag();
00035       $this->tpl_vars['managing_editor_email']
00036             = $form->getFieldByName('managing_editor_email')->getHTMLTag();
00037       $this->tpl_vars['webmaster_email']
00038             = $form->getFieldByName('webmaster_email')->getHTMLTag();
00039       $this->tpl_vars['webmaster_name']
00040             = $form->getFieldByName('webmaster_name')->getHTMLTag();
00041 
00042       $this->renderTemplate("/templates/feed/edit.html.php");
00043       die;
00044    }
00045 
00046 
00047    public function update() {
00048       $this->preFlightCheck();
00049       $this->index();
00050       $this->handleForm();
00051    }
00052 
00053 }
00054 
 All Data Structures Functions Variables