C# Class SobekCM.Library.HTML.Contact_HtmlSubwriter

Contact html subwriter renders the contact us screen and the subsequent 'Your message was sent' screen
This class extends the abstractHtmlSubwriter abstract class.
Inheritance: abstractHtmlSubwriter
ファイルを表示 Open project: MarkVSullivan/SobekCM-Web-Application Class Usage Examples

Public Methods

Method Description
Contact_HtmlSubwriter ( string Last_Mode, string UserHistoryRequestInfo, RequestCache RequestSpecificValues ) : System

Constructor for a new instance of the Contact_HtmlSubwriter class

Write_HTML ( TextWriter Output, Custom_Tracer Tracer ) : bool

Writes the HTML generated by this contact us html subwriter directly to the response stream

Write_Within_HTML_Head ( TextWriter Output, Custom_Tracer Tracer ) : void

Write any additional values within the HTML Head of the final served page

By default this does nothing, but can be overwritten by all the individual html subwriters

Private Methods

Method Description
DomainMapper ( Match MatchValue ) : string
IsValidEmail ( string StrIn ) : bool

Method Details

Contact_HtmlSubwriter() public method

Constructor for a new instance of the Contact_HtmlSubwriter class
public Contact_HtmlSubwriter ( string Last_Mode, string UserHistoryRequestInfo, RequestCache RequestSpecificValues ) : System
Last_Mode string URL for the last mode this user was in before selecting contact us
UserHistoryRequestInfo string Some history and user information to include in the final email
RequestSpecificValues RequestCache All the necessary, non-global data specific to the current request
return System

Write_HTML() public method

Writes the HTML generated by this contact us html subwriter directly to the response stream
public Write_HTML ( TextWriter Output, Custom_Tracer Tracer ) : bool
Output System.IO.TextWriter Stream to which to write the HTML for this subwriter
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return bool

Write_Within_HTML_Head() public method

Write any additional values within the HTML Head of the final served page
By default this does nothing, but can be overwritten by all the individual html subwriters
public Write_Within_HTML_Head ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Output stream currently within the HTML head tags
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void