dmBridge PHP API
DMJSONRepresentationTransformerV1 Class Reference
Inheritance diagram for DMJSONRepresentationTransformerV1:

Public Member Functions

Protected Member Functions

Protected Attributes


Detailed Description


Member Function Documentation

DMJSONRepresentationTransformerV1::nullResponse ( )
Returns:
JSON-encoded string
Since:
0.3

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 25 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformCollection ( DMCollection col)
Parameters:
DMCollectioncol
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 33 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformCollections ( array $  collections)
Parameters:
arraycollections Array of DMCollection objects
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 68 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformComment ( DMComment comment)
Parameters:
DMCommentcomment
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 87 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformComments ( array $  comments,
page,
rpp,
total 
)
Parameters:
arraycomments Array of DMComment objects
intpage
intrpp Comments per page
inttotal
Returns:
XML-encoded string
Since:
0.3

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 115 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformException ( Exception $  ex)
Parameters:
Exceptionex
Returns:
JSON-encoded string
Since:
0.4

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 141 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformObject ( DMObject obj)
Parameters:
DMObjectobj
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 159 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformObjectComments ( DMObject obj,
page,
rpp 
)
Parameters:
DMObjectobj
intpage
intResults per page
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 258 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformObjectRating ( DMObject obj)
Parameters:
DMObjectobj
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 294 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformObjectTags ( DMObject obj)
Parameters:
DMObjectobj
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 314 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformRatings ( DMObjectQuery q)
Parameters:
DMObjectQueryq
Returns:
string JSON-encoded string
Since:
1.0

Definition at line 343 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformResults ( DMObjectQuery q)
Parameters:
DMObjectQueryq
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 366 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformStatus ( )
Returns:
JSON-encoded string
Since:
0.5

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 407 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformTag ( DMTag tag)
Parameters:
DMTagtag
Returns:
JSON-encoded string
Since:
0.4

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 436 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformTagCounts ( array $  tags,
page,
rpp,
total 
)
Parameters:
arraytags
intpage
intrpp
inttotal
Returns:
JSON-encoded string
Since:
0.4

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 459 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformVocabularyFrequencies ( array $  freqs)
Parameters:
arrayfreqs Associative array in value => count format
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 476 of file DMJSONRepresentationTransformerV1.php.

DMJSONRepresentationTransformerV1::transformVocabularySuggestions ( array $  words)
Parameters:
arraywords Indexed array of strings
Returns:
string JSON-encoded string

Implements DMHTTPAPIRepresentationTransformer.

Definition at line 489 of file DMJSONRepresentationTransformerV1.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables