dmBridge PHP API
DMObjectView Class Reference

Encapsulates "object view" within the HTML templates. More...

Inheritance diagram for DMObjectView:

Public Member Functions


Detailed Description

Encapsulates "object view" within the HTML templates.

Author:
Alex Dolski <alex.dolski@unlv.edu> http://www.opensource.org/licenses/mit-license.php

Definition at line 15 of file DMObjectView.php.


Constructor & Destructor Documentation

DMObjectView::__construct ( DMTemplate tpl,
DMSession session,
DMObject obj,
DMObjectQuery query = null 
)
Parameters:
DMTemplatetpl
DMSessionsession
DMObjectobj
DMObjectQueryquery
Exceptions:
DMClassNotFoundException

Definition at line 44 of file DMObjectView.php.


Member Function Documentation

DMObjectView::getCommentForm ( )
Returns:
DMObjectCommentForm

Definition at line 59 of file DMObjectView.php.

DMObjectView::getObject ( )
Returns:
DMObject

Definition at line 73 of file DMObjectView.php.

Referenced by getURI().

DMObjectView::getQuery ( )
Returns:
DMObjectQuery

Definition at line 87 of file DMObjectView.php.

Referenced by getViewForNextObject(), and getViewForPreviousObject().

DMObjectView::getResultsView ( )
Returns:
string
Since:
2.0
See also:
getViewForNextObject()
getViewForPreviousObject()

Definition at line 104 of file DMObjectView.php.

DMObjectView::getTagForm ( )
Returns:
DMTagForm

Definition at line 111 of file DMObjectView.php.

DMObjectView::getURI ( )
Returns:
DMInternalURI The URI of the view (which will be the same as the URI of the object represented by the view).

Implements DMURIAddressable.

Definition at line 126 of file DMObjectView.php.

DMObjectView::getViewerDefinitionForMediaType ( type)
Parameters:
DMMediaTypetype
Returns:
DMObjectViewerDefinition
Since:
2.0

Definition at line 187 of file DMObjectView.php.

DMObjectView::getViewForNextObject ( )

Returns the DMObjectView instance corresponding to the next object in the results, or null if there is no next object.

Returns:
DMObjectView
See also:
getViewForPreviousObject()
Since:
2.0

Definition at line 138 of file DMObjectView.php.

DMObjectView::getViewForPreviousObject ( )

Returns the DMObjectView instance corresponding to the next object in the results, or null if there is no next object.

Returns:
DMObjectView
See also:
getViewForNextObject()
Since:
2.0

Definition at line 164 of file DMObjectView.php.

DMObjectView::setCommentForm ( DMObjectCommentForm form)
Parameters:
DMObjectCommentFormform

Definition at line 66 of file DMObjectView.php.

Referenced by __construct().

DMObjectView::setObject ( DMObject obj)
Parameters:
DMObjectobj

Definition at line 80 of file DMObjectView.php.

DMObjectView::setQuery ( DMObjectQuery query)
Parameters:
DMObjectQueryquery

Definition at line 94 of file DMObjectView.php.

DMObjectView::setTagForm ( DMTagForm form)
Parameters:
DMTagFormform

Definition at line 118 of file DMObjectView.php.

Referenced by __construct().


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