C# Class SobekCM.Core.Settings.DbItemViewers.DbItemViewerTypes

ファイルを表示 Open project: MarkVSullivan/SobekCM-Web-Application Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Add_ViewerType ( int ID, string ViewType, int Order, bool DefaultView, decimal MenuOrder ) : void

Adds a new item viewer config, from the database, to the list of possible item viewers

DbItemViewerTypes ( ) : System

Constructor for a new instance of the DbItemViewerTypes class

Get_ViewerType ( string ViewerCode ) : DbItemViewerType

Get the viewer code information from the database, by viewer code

Method Details

Add_ViewerType() public method

Adds a new item viewer config, from the database, to the list of possible item viewers
public Add_ViewerType ( int ID, string ViewType, int Order, bool DefaultView, decimal MenuOrder ) : void
ID int Primary key to this item viewer from the database which is used /// to link an item, in the database, to this viewer
ViewType string Code for this view type, which is returned with each digital resource /// and links, via the UI configuration, to the class used to display this item /// within the user interface
Order int Default order, relative to the order on the other item viewers, that this /// should be displayed
DefaultView bool Flag indicates if this view should be automatically added to all new items /// that are added to the database
MenuOrder decimal Default order this viewer should be displayed on the item viewer menu
return void

DbItemViewerTypes() public method

Constructor for a new instance of the DbItemViewerTypes class
public DbItemViewerTypes ( ) : System
return System

Get_ViewerType() public method

Get the viewer code information from the database, by viewer code
public Get_ViewerType ( string ViewerCode ) : DbItemViewerType
ViewerCode string The viewer code.
return DbItemViewerType