dmBridge PHP API
DMAbstractDMBridgeModule.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 # Copyright © 2009, 2010 Board of Regents of the Nevada System of Higher
00005 # Education, on behalf of the University of Nevada, Las Vegas
00006 #
00007 
00015 abstract class DMAbstractDMBridgeModule {
00016 
00017    const BOOTSTRAP_FILENAME = "bootstrap.php";
00018 
00023    public function __construct() {
00024    }
00025 
00029    public function getAbsolutePathname() {
00030       $reflector = new ReflectionObject($this);
00031       return dirname($reflector->getFilename());
00032    }
00033 
00037    public function getHTTPAPIDocumentation() {
00038       $dxml = new DOMDocument("1.0", "utf-8");
00039       $pathname = $this->getAbsolutePathname() . "/http_api_doc.xml";
00040       if (file_exists($pathname)) {
00041          $dxml->load($pathname);
00042       }
00043       return $dxml;
00044    }
00045 
00046 }
 All Data Structures Functions Variables