mySobek Home   |   Help
Skip Navigation Links.
Expand <a href='https://sobekrepository.org/sobekcm' title='Sobek home page'>Project Home</a>Project Home
Expand <a href='https://sobekrepository.org/help' title='Online user help'>User Help</a>User Help
Expand <a href='https://sobekrepository.org/sobekcm/technical' title='Sobek home page'>Technical Help</a>Technical Help
Expand <a href='https://sobekrepository.org/software' title='Center for downloading all SobekCM-related software'>Download Center</a>Download Center
Training Videos
Collapse <a href='https://sobekrepository.org/codehelp' title='Details on each of the different classes, interfaces, properties, etc..'>Code Details</a>Code Details
MISSING BANNER

ItemViewer_Factory.Get_Viewer Method



Accepts a simple View_Object from the digital resource object and returns the appropriate item viewer object which extends the [!:SobekCM.Library.ItemViewer.Viewers.abstractItemViewer_OLD] class for rendering the item to the web via HTML.


Namespace: SobekCM.Library.ItemViewer
Assembly: SobekCM_Library (in SobekCM_Library.dll) Version: 4.10.0.0 (4.10.0.0)

Syntax

C#
public static iItemViewerPrototyper Get_Viewer(
	View_Object ViewObject,
	string Resource_Type,
	SobekCM_Item Current_Object,
	User_Object Current_User,
	Navigation_Object Current_Mode
)

Parameters

ViewObject
Type: SobekCM.Resource_Object.Behaviors..::..View_Object
View object from the digital resource object
Resource_Type
Type: System..::..String
Resource type often impacts how an item viewer renders
Current_Object
Type: SobekCM.Resource_Object..::..SobekCM_Item
Current resource object
Current_User
Type: SobekCM.Core.Users..::..User_Object
Currently session's user
Current_Mode
Type: SobekCM.Core.Navigation..::..Navigation_Object
Navigation object with all the information about the current request

Return Value

Type: iItemViewerPrototyper
Genereated item viewer class for rendering the particular view of a digital resource via HTML.

See Also



Version 4.10.0 ( last generated Monday, March 7, 2016 )