C# Class CalendarAggregator.CalendarRenderer

显示文件 Open project: judell/elmcity Class Usage Examples

Public Properties

Property Type Description
calinfo Calinfo
category_images string>.Dictionary
default_args object>.Dictionary
default_args_json string
default_js_url string
default_template_html string
is_region bool
max_events int
source_images string>.Dictionary
template_html string
timestamp System.DateTime

Public Methods

Method Description
CalendarRenderer ( string id ) : System
DescriptionFromHash ( string hash, string jsonp ) : string
DescriptionFromTitleAndDtstart ( string title, string dtstart, string jsonp ) : string
DescriptionFromUid ( int uid, string jsonp ) : string
FeedComesFrom ( CalendarAggregator.ZonelessEvent evt, string source ) : bool
Filter ( string view, int count, System.DateTime from, System.DateTime to, string source, CalendarAggregator.ZonelessEventStore es, object>.Dictionary args ) : List
FindTodayEvents ( ) : CalendarAggregator.ZonelessEventStore
GetCssUrl ( object>.Dictionary args ) : string
GetDayAnchorsAsJson ( CalendarAggregator.ZonelessEventStore es, string view ) : string
GetTags ( CalendarAggregator.ZonelessEventStore es ) : List
InsertRegionTagAndHubSelectors ( string html, CalendarAggregator.ZonelessEventStore es, string view, string hub, bool eventsonly ) : string
InsertTagSelector ( string html, CalendarAggregator.ZonelessEventStore es, string view, bool eventsonly ) : string
MakeEventTitle ( string view ) : string
MakeTagCloud ( CalendarAggregator.ZonelessEventStore es ) : int>>.List
MakeTitleForRDFa ( CalendarAggregator.ZonelessEvent evt, string dom_id, object>.Dictionary args ) : string
MaybeUseAlternateTemplate ( object>.Dictionary args ) : void
RenderCsv ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderDynamicViewWithCaching ( ControllerContext context, string view_key, ViewRenderer view_renderer, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderDynamicViewWithoutCaching ( ControllerContext context, ViewRenderer view_renderer, String view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderEventAsIcs ( string elmcity_id, string summary, string start, string end, string description, string location, string url ) : string
RenderEventsAsHtml ( CalendarAggregator.ZonelessEventStore es, StringBuilder builder, object>.Dictionary args ) : void
RenderEventsAsHtmlList ( CalendarAggregator.ZonelessEventStore es ) : string
RenderEvtAsCsv ( CalendarAggregator.ZonelessEvent evt, Calinfo calinfo, object>.Dictionary args ) : string
RenderEvtAsHtml ( CalendarAggregator.ZonelessEvent evt, Calinfo calinfo, object>.Dictionary args ) : string
RenderEvtAsListItem ( CalendarAggregator.ZonelessEvent evt ) : string
RenderEvtAsText ( CalendarAggregator.ZonelessEvent evt, Calinfo calinfo, object>.Dictionary args ) : string
RenderFeedAsJson ( string source, string view ) : string
RenderHtml ( ) : string
RenderHtml ( CalendarAggregator.ZonelessEventStore es ) : string
RenderHtml ( CalendarAggregator.ZonelessEventStore es, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderHtmlEventsOnly ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderHtmlForMobile ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderIcs ( ) : string
RenderIcs ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderIcs ( int count ) : string
RenderIcs ( string view ) : string
RenderJsWidget ( ) : string
RenderJson ( ) : string
RenderJson ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderJson ( int count ) : string
RenderJson ( string view ) : string
RenderRss ( ) : string
RenderRss ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderRss ( int count ) : string
RenderRss ( string view ) : string
RenderTagCloudAsHtml ( ) : string
RenderTagCloudAsJson ( ) : string
RenderText ( CalendarAggregator.ZonelessEventStore eventstore, EventRenderer event_renderer, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderText ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderTodayAsHtml ( ) : string
RenderXml ( ) : string
RenderXml ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
RenderXml ( int count ) : string
RenderXml ( string view ) : string

Private Methods

Method Description
AddTagOptions ( string selector, CalendarAggregator.ZonelessEventStore es, List tags, int>.Dictionary counts, StringBuilder sb, bool squigglies ) : void
AppendEvent ( StringBuilder eventstring, EventRenderer event_renderer, CalendarAggregator.ZonelessEvent evt, object>.Dictionary args ) : void
AssembleMetadata ( CalendarAggregator.ZonelessEventStore es ) : string
BuildCoalescedLinks ( CalendarAggregator.ZonelessEvent evt, string dom_id ) : string
BuildSourcesDict ( CalendarAggregator.ZonelessEventStore es, bool announce_time_of_day, int>.Dictionary sources_dict ) : void
CountFilter ( int count, List events ) : List
GetDayAnchors ( CalendarAggregator.ZonelessEventStore es, string view ) : List
GetEventStore ( CalendarAggregator.ZonelessEventStore es, System.DateTime from, System.DateTime to, object>.Dictionary args ) : CalendarAggregator.ZonelessEventStore
GetEventStore ( CalendarAggregator.ZonelessEventStore es, int count, object>.Dictionary args ) : CalendarAggregator.ZonelessEventStore
GetEventStore ( CalendarAggregator.ZonelessEventStore es, string view, object>.Dictionary args ) : CalendarAggregator.ZonelessEventStore
GetEventStore ( CalendarAggregator.ZonelessEventStore es, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : CalendarAggregator.ZonelessEventStore
GetEventStoreWithCaching ( ICache cache ) : CalendarAggregator.ZonelessEventStore
GetEventStoreWithoutCaching ( ICache cache ) : CalendarAggregator.ZonelessEventStore
GetImages ( string image_type ) : void
HandleBareEvents ( System.DateTime from ) : DateTime>.Dictionary
HandleClothedEvents ( List events ) : DateTime>.Dictionary
HandleDefaultArgs ( string html ) : string
HandleJsUrl ( string html, object>.Dictionary args ) : string
InsertImageJson ( string html ) : string
IsDefaultThemeDict ( string>.Dictionary theme_dict ) : bool
MakeGeoForRDFa ( CalendarAggregator.ZonelessEvent evt ) : string
MakeSourceAttr ( CalendarAggregator.ZonelessEvent evt ) : string
MakeSourceKey ( TimeOfDay current_time_of_day, string datekey, CalendarAggregator.ZonelessEvent evt ) : string
MakeTagOption ( string selector, CalendarAggregator.ZonelessEventStore es, int>.Dictionary counts, string tag ) : string
MassageDescription ( CalendarAggregator.ZonelessEvent evt ) : string
MaybeAddHubTagToView ( string view, object>.Dictionary args ) : string
MaybeBuildTagStructures ( CalendarAggregator.ZonelessEventStore es ) : void
OptionsForSelectedHub ( string view, string hub, StringBuilder sb_tags, StringBuilder sb_hubs, CalendarAggregator.ZonelessEventStore es ) : void
RenderBadges ( string html ) : string
RenderEvtAsXml ( CalendarAggregator.ZonelessEvent evt, Calinfo calinfo, object>.Dictionary args ) : string
ResetCounters ( ) : void
SourceFilter ( string source, List events ) : List
TimeFilter ( System.DateTime from, System.DateTime to, List events ) : List
UpdateSourcesDict ( int>.Dictionary sources_dict, TimeOfDay current_time_of_day, CalendarAggregator.ZonelessEvent evt, string datekey ) : void
ViewFilter ( string view, List events ) : List

Method Details

CalendarRenderer() public method

public CalendarRenderer ( string id ) : System
id string
return System

DescriptionFromHash() public method

public DescriptionFromHash ( string hash, string jsonp ) : string
hash string
jsonp string
return string

DescriptionFromTitleAndDtstart() public method

public DescriptionFromTitleAndDtstart ( string title, string dtstart, string jsonp ) : string
title string
dtstart string
jsonp string
return string

DescriptionFromUid() public method

public DescriptionFromUid ( int uid, string jsonp ) : string
uid int
jsonp string
return string

FeedComesFrom() public static method

public static FeedComesFrom ( CalendarAggregator.ZonelessEvent evt, string source ) : bool
evt CalendarAggregator.ZonelessEvent
source string
return bool

Filter() public method

public Filter ( string view, int count, System.DateTime from, System.DateTime to, string source, CalendarAggregator.ZonelessEventStore es, object>.Dictionary args ) : List
view string
count int
from System.DateTime
to System.DateTime
source string
es CalendarAggregator.ZonelessEventStore
args object>.Dictionary
return List

FindTodayEvents() public method

public FindTodayEvents ( ) : CalendarAggregator.ZonelessEventStore
return CalendarAggregator.ZonelessEventStore

GetCssUrl() public method

public GetCssUrl ( object>.Dictionary args ) : string
args object>.Dictionary
return string

GetDayAnchorsAsJson() public method

public GetDayAnchorsAsJson ( CalendarAggregator.ZonelessEventStore es, string view ) : string
es CalendarAggregator.ZonelessEventStore
view string
return string

GetTags() public method

public GetTags ( CalendarAggregator.ZonelessEventStore es ) : List
es CalendarAggregator.ZonelessEventStore
return List

InsertRegionTagAndHubSelectors() public method

public InsertRegionTagAndHubSelectors ( string html, CalendarAggregator.ZonelessEventStore es, string view, string hub, bool eventsonly ) : string
html string
es CalendarAggregator.ZonelessEventStore
view string
hub string
eventsonly bool
return string

InsertTagSelector() public method

public InsertTagSelector ( string html, CalendarAggregator.ZonelessEventStore es, string view, bool eventsonly ) : string
html string
es CalendarAggregator.ZonelessEventStore
view string
eventsonly bool
return string

MakeEventTitle() public method

public MakeEventTitle ( string view ) : string
view string
return string

MakeTagCloud() public method

public MakeTagCloud ( CalendarAggregator.ZonelessEventStore es ) : int>>.List
es CalendarAggregator.ZonelessEventStore
return int>>.List

MakeTitleForRDFa() public static method

public static MakeTitleForRDFa ( CalendarAggregator.ZonelessEvent evt, string dom_id, object>.Dictionary args ) : string
evt CalendarAggregator.ZonelessEvent
dom_id string
args object>.Dictionary
return string

MaybeUseAlternateTemplate() public method

public MaybeUseAlternateTemplate ( object>.Dictionary args ) : void
args object>.Dictionary
return void

RenderCsv() public method

public RenderCsv ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
eventstore CalendarAggregator.ZonelessEventStore
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderDynamicViewWithCaching() public method

public RenderDynamicViewWithCaching ( ControllerContext context, string view_key, ViewRenderer view_renderer, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
context ControllerContext
view_key string
view_renderer ViewRenderer
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderDynamicViewWithoutCaching() public method

public RenderDynamicViewWithoutCaching ( ControllerContext context, ViewRenderer view_renderer, String view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
context ControllerContext
view_renderer ViewRenderer
view String
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderEventAsIcs() public static method

public static RenderEventAsIcs ( string elmcity_id, string summary, string start, string end, string description, string location, string url ) : string
elmcity_id string
summary string
start string
end string
description string
location string
url string
return string

RenderEventsAsHtml() public method

public RenderEventsAsHtml ( CalendarAggregator.ZonelessEventStore es, StringBuilder builder, object>.Dictionary args ) : void
es CalendarAggregator.ZonelessEventStore
builder StringBuilder
args object>.Dictionary
return void

RenderEventsAsHtmlList() public method

public RenderEventsAsHtmlList ( CalendarAggregator.ZonelessEventStore es ) : string
es CalendarAggregator.ZonelessEventStore
return string

RenderEvtAsCsv() public method

public RenderEvtAsCsv ( CalendarAggregator.ZonelessEvent evt, Calinfo calinfo, object>.Dictionary args ) : string
evt CalendarAggregator.ZonelessEvent
calinfo Calinfo
args object>.Dictionary
return string

RenderEvtAsHtml() public method

public RenderEvtAsHtml ( CalendarAggregator.ZonelessEvent evt, Calinfo calinfo, object>.Dictionary args ) : string
evt CalendarAggregator.ZonelessEvent
calinfo Calinfo
args object>.Dictionary
return string

RenderEvtAsListItem() public method

public RenderEvtAsListItem ( CalendarAggregator.ZonelessEvent evt ) : string
evt CalendarAggregator.ZonelessEvent
return string

RenderEvtAsText() public method

public RenderEvtAsText ( CalendarAggregator.ZonelessEvent evt, Calinfo calinfo, object>.Dictionary args ) : string
evt CalendarAggregator.ZonelessEvent
calinfo Calinfo
args object>.Dictionary
return string

RenderFeedAsJson() public method

public RenderFeedAsJson ( string source, string view ) : string
source string
view string
return string

RenderHtml() public method

public RenderHtml ( ) : string
return string

RenderHtml() public method

public RenderHtml ( CalendarAggregator.ZonelessEventStore es ) : string
es CalendarAggregator.ZonelessEventStore
return string

RenderHtml() public method

public RenderHtml ( CalendarAggregator.ZonelessEventStore es, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
es CalendarAggregator.ZonelessEventStore
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderHtmlEventsOnly() public method

public RenderHtmlEventsOnly ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
eventstore CalendarAggregator.ZonelessEventStore
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderHtmlForMobile() public method

public RenderHtmlForMobile ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
eventstore CalendarAggregator.ZonelessEventStore
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderIcs() public method

public RenderIcs ( ) : string
return string

RenderIcs() public method

public RenderIcs ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
eventstore CalendarAggregator.ZonelessEventStore
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderIcs() public method

public RenderIcs ( int count ) : string
count int
return string

RenderIcs() public method

public RenderIcs ( string view ) : string
view string
return string

RenderJsWidget() public method

public RenderJsWidget ( ) : string
return string

RenderJson() public method

public RenderJson ( ) : string
return string

RenderJson() public method

public RenderJson ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
eventstore CalendarAggregator.ZonelessEventStore
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderJson() public method

public RenderJson ( int count ) : string
count int
return string

RenderJson() public method

public RenderJson ( string view ) : string
view string
return string

RenderRss() public method

public RenderRss ( ) : string
return string

RenderRss() public method

public RenderRss ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
eventstore CalendarAggregator.ZonelessEventStore
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderRss() public method

public RenderRss ( int count ) : string
count int
return string

RenderRss() public method

public RenderRss ( string view ) : string
view string
return string

RenderTagCloudAsHtml() public method

public RenderTagCloudAsHtml ( ) : string
return string

RenderTagCloudAsJson() public method

public RenderTagCloudAsJson ( ) : string
return string

RenderText() public method

public RenderText ( CalendarAggregator.ZonelessEventStore eventstore, EventRenderer event_renderer, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
eventstore CalendarAggregator.ZonelessEventStore
event_renderer EventRenderer
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderText() public method

public RenderText ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
eventstore CalendarAggregator.ZonelessEventStore
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderTodayAsHtml() public method

public RenderTodayAsHtml ( ) : string
return string

RenderXml() public method

public RenderXml ( ) : string
return string

RenderXml() public method

public RenderXml ( CalendarAggregator.ZonelessEventStore eventstore, string view, int count, System.DateTime from, System.DateTime to, string source, object>.Dictionary args ) : string
eventstore CalendarAggregator.ZonelessEventStore
view string
count int
from System.DateTime
to System.DateTime
source string
args object>.Dictionary
return string

RenderXml() public method

public RenderXml ( int count ) : string
count int
return string

RenderXml() public method

public RenderXml ( string view ) : string
view string
return string

Property Details

calinfo public_oe property

public Calinfo,CalendarAggregator calinfo
return Calinfo

category_images public_oe property

public Dictionary category_images
return string>.Dictionary

default_args public_oe property

public Dictionary default_args
return object>.Dictionary

default_args_json public_oe property

public string default_args_json
return string

default_js_url public_oe property

public string default_js_url
return string

default_template_html public_oe property

public string default_template_html
return string

is_region public_oe property

public bool is_region
return bool

max_events public_oe property

public int max_events
return int

source_images public_oe property

public Dictionary source_images
return string>.Dictionary

template_html public_oe property

public string template_html
return string

timestamp public_oe property

public DateTime,System timestamp
return System.DateTime