dmBridge PHP API
DMHTTPAPIRepresentationTransformer.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 
00016 interface DMHTTPAPIRepresentationTransformer {
00017 
00022    function nullResponse();
00023 
00028    function transformCollection(DMCollection $col);
00029 
00034    function transformCollections(array $collections);
00035 
00040    function transformComment(DMComment $comment);
00041 
00049    function transformComments(array $comments, $page, $rpp, $total);
00050 
00055    function transformException(Exception $e);
00056 
00061    function transformObject(DMObject $obj);
00062 
00069    function transformObjectComments(DMObject $obj, $page, $rpp);
00070 
00075    function transformObjectRating(DMObject $obj);
00076 
00081    function transformObjectTags(DMObject $obj);
00082 
00088    function transformResults(DMObjectQuery $query);
00089 
00093    function transformStatus();
00094 
00099    function transformTag(DMTag $tag);
00100 
00108    function transformTagCounts(array $tags, $page, $rpp, $total);
00109 
00114    function transformVocabularyFrequencies(array $freqs);
00115 
00120    function transformVocabularySuggestions(array $words);
00121 
00122 }
 All Data Structures Functions Variables