PFPageContext Class |
Namespace: Packflow.Interface
public class PFPageContext : PFContext
The PFPageContext type exposes the following members.
Name | Description | |
---|---|---|
PFPageContext(HttpRequest, PFView) |
Initializes a new instance of the PFPageContext class.
| |
PFPageContext(HttpRequest, RouteData) |
Initializes a new instance of the PFPageContext class.
| |
PFPageContext(HttpRequest, Boolean, RouteData) |
Initializes a new instance of the PFPageContext class.
|
Name | Description | |
---|---|---|
Application |
Gets the current application.
(Inherited from PFContext.) | |
ApplicationContext |
Gets the current application context.
| |
CanGetSiteFromRequestContext |
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.
| |
ContentType |
Gets the current content-type.
(Inherited from PFContext.) | |
DateObjectCreation |
Gets the date of the creation of this object in memory.
(Inherited from PFManagedObject.) | |
Item |
Gets the current item.
(Inherited from PFContext.) | |
ItemLocks |
Gets the locks of the current item.
(Inherited from PFContext.) | |
Logger |
Gets the logger, used to log any useful warning, error or information in the database.
(Inherited from PFManagedObject.) | |
LogIdentification |
Gets a technical text representing this object.
(Inherited from PFManagedObject.) | |
Site |
Gets the current site.
(Inherited from PFContext.) | |
Theme |
Gets the current theme.
| |
Translations |
Gets the contextual translations provided by Packflow.
| |
Url |
Gets or sets the page URL.
| |
User |
Gets the current user.
(Inherited from PFContext.) | |
View |
Gets the current view.
(Inherited from PFContext.) |
Name | Description | |
---|---|---|
GetSite(String) |
Gets a PFSite based on the current process and request user.
| |
GetSite(String, Boolean) |
Gets a PFSite based on the current process and request user.
| |
InitializeLogger |
Gets a new instance of a PFLogger.
(Inherited from PFContext.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetView(HttpRequest) |
Tries to get the contextual PFView of the specified request.
| |
TryGetView(HttpRequest, Boolean) |
Tries to get the contextual PFView of the specified request.
|
Name | Description | |
---|---|---|
ParameterName_ApplicationName |
Name of the request parameter containing the application name.
| |
ParameterName_ContentTypeName |
Name of the request parameter containing the content-type name.
| |
ParameterName_ItemId |
Name of the request parameter containing the item id.
| |
ParameterName_ViewId |
Name of the request parameter containing the view id.
|
Name | Description | |
---|---|---|
AsT |
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.) | |
EqualsAll |
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.) | |
EqualsAny |
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.) | |
GetString |
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.) | |
IsGenericList | Overloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.) | |
IsGenericList(Type) | Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.) | |
Serialize | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
Serialize(String) | Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.) | |
SerializeJson | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
SerializeJson(ListType) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) | |
SerializeJson(DataContractJsonSerializerSettings) | Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.) |