QueryHelper Class |
Namespace: CMS.Helpers
public class QueryHelper : IDataContainer, ISimpleDataContainer
The QueryHelper type exposes the following members.
Name | Description | |
---|---|---|
QueryHelper |
Name | Description | |
---|---|---|
BuildQuery |
Build the query from the given items
| |
BuildQueryWithHash(String) |
Build the query from the given items and adds the hash to the query. The hash is user-specific.
| |
BuildQueryWithHash(Boolean, String) |
Build the query from the given items and adds the hash to the query
| |
Contains |
Returns true if query parameter is present in the query string.
| |
ContainsColumn |
Returns true if the object contains specified column.
| |
GetBoolean |
Returns the boolean representation of a query parameter or default value
if parameter is not boolean.
| |
GetColor |
Returns the color representation of a query parameter or default value
if parameter is not a valid color.
| |
GetDouble |
Returns the double representation of a query parameter or default value
if parameter is not an integer number.
| |
GetGuid |
Returns the GUID representation of a query parameter or default value
if parameter is not GUID.
| |
GetHash(String) |
Generates hash for given QueryString.
| |
GetHash(String, Boolean, Boolean) |
Generates hash for given QueryString.
| |
GetInteger |
Returns the integer representation of a query parameter or default value
if parameter is not an integer number.
| |
GetSQLSafeText | Obsolete.
Returns the value of the specified query string parameter, with dangerous SQL characters (' or patterns) encoded. Returns the default value if the parameter is not present in the URL.
| |
GetString |
Returns query string parameter or default value if query string is not defined.
| |
GetText |
Returns HTML encoded query string parameter or default value if query string is not defined.
| |
GetValue |
Gets the value from QueryString.
| |
SetValue |
Not implemented.
| |
ToString |
Returns the string representation of the query string
(Overrides ObjectToString.) | |
TryGetValue |
Returns value of column.
| |
ValidateHash(String, String, HashSettings, Boolean) |
Validates given QueryString against hash.
| |
ValidateHash(String, String, Boolean, Boolean, Boolean, String) | Obsolete.
Validates given QueryString against hash.
| |
ValidateHashString(String, String, HashSettings) |
Validates given value against hash.
| |
ValidateHashString(String, String, Boolean, Boolean, String) | Obsolete.
Validates given value against hash.
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
CopyTo |
Copies the data of specified columns of the source object to the target object.
(Defined by DataExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
CheckRequiredColumns |
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToJSON |
Returns JSON representation of current instance of IDataContainer.
(Defined by DataExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToXML |
Returns XML representation of current instance of IDataContainer.
(Defined by DataExtensions.) |
Name | Description | |
---|---|---|
ColumnNames |
Column names.
| |
EncodedQueryString |
Returns html encoded query string.
| |
HashEnabled |
If true, the hash check is enabled.
| |
Instance |
Singleton Instance of the query helper.
| |
Item |
Gets or sets the value of the column.
| |
QueryString |
Query string
|