Click or drag to resize

PFPageContext Class

Represents a context of Packflow objects in a web page.
Inheritance Hierarchy

Namespace:  Packflow.Interface
Assembly:  MicaSystems.Packflow.Interface (in MicaSystems.Packflow.Interface.dll) Version: 1.0.0.0 (2.0.0.223)
Syntax
C#
public class PFPageContext : PFContext

The PFPageContext type exposes the following members.

Constructors
  NameDescription
Public methodPFPageContext(HttpRequest, PFView)
Initializes a new instance of the PFPageContext class.
Public methodPFPageContext(HttpRequest, RouteData)
Initializes a new instance of the PFPageContext class.
Public methodPFPageContext(HttpRequest, Boolean, RouteData)
Initializes a new instance of the PFPageContext class.
Top
Properties
  NameDescription
Public propertyApplication
Gets the current application.
(Inherited from PFContext.)
Public propertyApplicationContext
Gets the current application context.
Public propertyCanGetSiteFromRequestContext
Gets a value indicating whether this instance can get the PFSite from the request context. This avoids to load the site multiple times, e.g. from the controller factory and the binder. But in that case, creating a new context from another identity will not return the PFSite with the expected authentication. To be enabled carefully for optimization purpose. Default value: False.
Public propertyContentType
Gets the current content-type.
(Inherited from PFContext.)
Public propertyDateObjectCreation
Gets the date of the creation of this object in memory.
(Inherited from PFManagedObject.)
Public propertyItem
Gets the current item.
(Inherited from PFContext.)
Public propertyItemLocks
Gets the locks of the current item.
(Inherited from PFContext.)
Public propertyLogger
Gets the logger, used to log any useful warning, error or information in the database.
(Inherited from PFManagedObject.)
Public propertyLogIdentification
Gets a technical text representing this object.
(Inherited from PFManagedObject.)
Public propertySite
Gets the current site.
(Inherited from PFContext.)
Public propertyTheme
Gets the current theme.
Public propertyTranslations
Gets the contextual translations provided by Packflow.
Public propertyUrl
Gets or sets the page URL.
Public propertyUser
Gets the current user.
(Inherited from PFContext.)
Public propertyView
Gets the current view.
(Inherited from PFContext.)
Top
Methods
  NameDescription
Public methodStatic memberGetSite(String)
Gets a PFSite based on the current process and request user.
Public methodStatic memberGetSite(String, Boolean)
Gets a PFSite based on the current process and request user.
Protected methodInitializeLogger
Gets a new instance of a PFLogger.
(Inherited from PFContext.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodTryGetView(HttpRequest)
Tries to get the contextual PFView of the specified request.
Protected methodTryGetView(HttpRequest, Boolean)
Tries to get the contextual PFView of the specified request.
Top
Fields
  NameDescription
Public fieldStatic memberParameterName_ApplicationName
Name of the request parameter containing the application name.
Public fieldStatic memberParameterName_ContentTypeName
Name of the request parameter containing the content-type name.
Public fieldStatic memberParameterName_ItemId
Name of the request parameter containing the item id.
Public fieldStatic memberParameterName_ViewId
Name of the request parameter containing the view id.
Top
Extension Methods
  NameDescription
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also
Inheritance Hierarchy