|
dmBridge PHP API
|
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 abstract class DMFeedRepresentationTransformer 00014 extends DMAbstractRepresentationTransformer { 00015 00017 private $subtitle, $title; 00019 protected $dxml; 00020 00021 00025 public function __construct() { 00026 parent::__construct(); 00027 $this->dxml = new DOMDocument(); 00028 $this->dxml->preserveWhiteSpace = false; 00029 } 00030 00035 public function output() { 00036 $this->dxml->formatOutput = true; 00037 return $this->dxml->saveXML(); 00038 } 00039 00044 protected final function getSubtitle() { 00045 if (!$this->subtitle) { 00046 $this->subtitle = DMConfigXML::getInstance()->getFeedSubtitle(); 00047 } 00048 return $this->subtitle; 00049 } 00050 00055 protected final function getTitle() { 00056 if (!$this->title) { 00057 $this->title = DMConfigXML::getInstance()->getFeedTitle(); 00058 } 00059 return $this->title; 00060 } 00061 00062 } 00063