C# Class SobekCM.Library.AggregationViewer.Viewers.Usage_Statistics_AggregationViewer

Renders the usage statistics for a single aggregation
This class implements the iAggregationViewer interface and extends the abstractAggregationViewer class.

Aggregation viewers are used when displaying aggregation home pages, searches, browses, and information pages.

During a valid html request to display the usage statistics page, the following steps occur:
  • Application state is built/verified by the Application_State_Builder
  • Request is analyzed by the QueryString_Analyzer and output as a Navigation_Object
  • Main writer is created for rendering the output, in this case the Html_MainWriter
  • The HTML writer will create the necessary subwriter. For a collection-level request, an instance of the Aggregation_HtmlSubwriter class is created.
  • To display the requested collection view, the collection subwriter will creates an instance of this class
Inheritance: abstractAggregationViewer
ファイルを表示 Open project: MarkVSullivan/SobekCM-Web-Application

Public Methods

Method Description
Add_Search_Box_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void

Add the HTML to be displayed in the search box

This adds the title of the into the box

Add_Secondary_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void

Add the HTML to be displayed below the search box

This writes the HTML from the static browse or info page here

Usage_Statistics_AggregationViewer ( RequestCache RequestSpecificValues, AggregationViewBag ViewBag ) : System

Constructor for a new instance of the Usage_Statistics_AggregationViewer class

Private Methods

Method Description
Month_From_Int ( int Month_Int ) : string
add_collection_usage_history ( TextWriter Output, DataTable StatsCount, Custom_Tracer Tracer ) : void
add_item_usage_history ( TextWriter Output, DataTable StatsCount, Custom_Tracer Tracer ) : void
add_items_by_collection ( TextWriter Output, string Collection, Custom_Tracer Tracer ) : void
add_titles_by_collection ( TextWriter Output, string Collection, Custom_Tracer Tracer ) : void
add_usage_definitions ( TextWriter Output, Custom_Tracer Tracer ) : void

Method Details

Add_Search_Box_HTML() public method

Add the HTML to be displayed in the search box
This adds the title of the into the box
public Add_Search_Box_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Textwriter to write the HTML for this viewer
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void

Add_Secondary_HTML() public method

Add the HTML to be displayed below the search box
This writes the HTML from the static browse or info page here
public Add_Secondary_HTML ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Textwriter to write the HTML for this viewer
Tracer SobekCM.Tools.Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void

Usage_Statistics_AggregationViewer() public method

Constructor for a new instance of the Usage_Statistics_AggregationViewer class
public Usage_Statistics_AggregationViewer ( RequestCache RequestSpecificValues, AggregationViewBag ViewBag ) : System
RequestSpecificValues RequestCache All the necessary, non-global data specific to the current request
ViewBag AggregationViewBag Aggregation-specific request information, such as aggregation object and any browse object requested
return System