Class CPBaseClass
- Namespace
- Contensive.BaseClasses
- Assembly
- CPBase.dll
CP - The object passed to an addon in the add-ons execute method. See the AddonBaseClass for details of the addon execute method.
public abstract class CPBaseClass
- Inheritance
-
CPBaseClass
- Inherited Members
Properties
Addon
The addon class handles access to an add-on's features. Use the Utils object to run an cpcore.addon. An instance of the Addon class is passed to the executing addon in the MyAddon object so it can access any features needed. See the CPAddonBaseClass for more details.
public abstract CPAddonBaseClass Addon { get; }
Property Value
AdminUI
Classes and methods to create forms for the admin user interface
public abstract CPAdminUIBaseClass AdminUI { get; }
Property Value
Cache
The Cache objects handles caching. Use this class to save blocks of data you will use again. See CPCacheBaseClass for more details.
public abstract CPCacheBaseClass Cache { get; }
Property Value
CdnFiles
read and write cdn files, like content uploads. Sites with static front-ends may put static files here.
public abstract CPFileSystemBaseClass CdnFiles { get; }
Property Value
Content
The Content class handles functions related to content meta such as determining the table used for a content definition, getting a recordid based on the name, or accessing the methods that control workflow publishing. See CPContentBaseClass for more details.
public abstract CPContentBaseClass Content { get; }
Property Value
Date
The Db object handles direct access to the Database. The ContentSet functions in the CPCSBaseClass are prefered for general use. See the CPDBBaseClass for more details.
public abstract CPDateBaseClass Date { get; }
Property Value
Db
The Db object handles direct access to the Database. The ContentSet functions in the CPCSBaseClass are prefered for general use. See the CPDBBaseClass for more details.
public abstract CPDbBaseClass Db { get; }
Property Value
Doc
The Doc object handles features related to the document (page) being contructed in the current call. See CPDocBaseClass for more details.
public abstract CPDocBaseClass Doc { get; }
Property Value
The Email object handles email functions. See CPEmailBaseClass for more information.
public abstract CPEmailBaseClass Email { get; }
Property Value
File
Legacy file object. Use FileCdn, FileAppRoot, FilePrivate and tempFiles.
[Obsolete("Deprecated. Use cp.CdnFiles, cp.wwwFiles, cp.privateFiles and cp.TempFiles.")]
public abstract CPFileBaseClass File { get; }
Property Value
Group
The Group Object accesses group features. Group Features generally associate people and roles. See CPGroupBaseClass for more details.
public abstract CPGroupBaseClass Group { get; }
Property Value
Html
The HTML class handles functions used to read and produce HTML elements. See CPHtmlBaseClass for more details.
public abstract CPHtmlBaseClass Html { get; }
Property Value
Html5
The HTML class handles functions used to read and produce HTML elements. See CPHtmlBaseClass for more details.
public abstract CPHtml5BaseClass Html5 { get; }
Property Value
Http
Helper class for common http request methods. For saving http verbs to files, see the file object
public abstract CPHttpBaseClass Http { get; }
Property Value
Image
Image controller
public abstract CPImageBaseClass Image { get; }
Property Value
JSON
utilities for json
public abstract CPJSONBaseClass JSON { get; }
Property Value
Layout
manage application layout records.
public abstract CPLayoutBaseClass Layout { get; }
Property Value
Log
The Log class manages server logs
public abstract CPLogBaseClass Log { get; }
Property Value
MQTT
publish to an mqtt broker
public abstract CPMQTTBaseClass MQTT { get; }
Property Value
MessageQueue
read and write messages to a standard message queue
public abstract CPMessageQueueBaseClass MessageQueue { get; }
Property Value
Mustache
Manage mustache compatible template language operations
public abstract CPMustacheBaseClass Mustache { get; }
Property Value
MyAddon
The MyAddon object is an instance of the Addon class created before an add-ons execute method is called. See CPAddonBaseClass for more details.
[Obsolete("Deprecated. Use CP.Addon.id to create a model.", false)]
public abstract CPAddonBaseClass MyAddon { get; }
Property Value
PrivateFiles
read and write files not available to the Internet
public abstract CPFileSystemBaseClass PrivateFiles { get; }
Property Value
Request
The Request object handles data associated with the request from the visitor. See CPRequestBaseClass for more details.
public abstract CPRequestBaseClass Request { get; }
Property Value
Response
The Response object handles the stream of data back to the visitor. See CPResponseBaseClass for more details.
public abstract CPResponseBaseClass Response { get; }
Property Value
SMS
Text messaging services
public abstract CPSMSBaseClass SMS { get; }
Property Value
Secrets
exposes base credentials and methods to get/set credentials
public abstract CPSecretsBaseClass Secrets { get; }
Property Value
Security
read and write files in a temporary location.
public abstract CPSecurityBaseClass Security { get; }
Property Value
ServerConfig
Server configuration
public abstract ServerConfigBaseModel ServerConfig { get; }
Property Value
Site
The Site Class handles features related to the current site. See CPSiteBaseClass for more details.
public abstract CPSiteBaseClass Site { get; }
Property Value
TempFiles
A local file system that automatically deletes files
public abstract CPFileSystemBaseClass TempFiles { get; }
Property Value
User
The User Class handles details related to the user and its related people record. See CPUserBaseClass for more details.
public abstract CPUserBaseClass User { get; }
Property Value
UserError
The UserError Class handles error handling for those conditions you want the user to know about or correct. For example an login error. See the CPUserErrorBaseClass for more details.
public abstract CPUserErrorBaseClass UserError { get; }
Property Value
Utils
The Utils class handles basic utilities and other features not classified. See CPUtilsBaseClass for more details.
public abstract CPUtilsBaseClass Utils { get; }
Property Value
Version
Contensive version
public abstract string Version { get; }
Property Value
Visit
The Visit Class handles details related to the visit. For instance it holds the number of pages hit so far and has methods for adding and modifying user defined visit properties. See CPVisitBaseClass for more details.
public abstract CPVisitBaseClass Visit { get; }
Property Value
Visitor
The Visitor Class handles details related to the visitor. For instance it holds the browser type used by the visitor. See CPVisitorBaseClass for more details.
public abstract CPVisitorBaseClass Visitor { get; }
Property Value
WwwFiles
read and write files in the root folder of the application (appRoot, wwwRoot,htdocs,etc)
public abstract CPFileSystemBaseClass WwwFiles { get; }
Property Value
Methods
BlockNew()
Construct new Block object. See CPBlockBaseClass for Block Details
public abstract CPBlockBaseClass BlockNew()
Returns
CSNew()
Construct new CS object. See CPCSBaseClass for CS object details
public abstract CPCSBaseClass CSNew()
Returns
DbNew(string)
Construct new Db object. CP.Db methods are for the default datasource. Use this method to create a db object for other datasources. See CPDbBaseClass for Db object details
public abstract CPDbBaseClass DbNew(string DataSourceName)
Parameters
DataSourceNamestring
Returns
- CPDbBaseClass
Returns a new Db class. If the Datasource cannot be opened an exception is thrown.
GetAppConfig()
The current application
public abstract AppConfigBaseModel GetAppConfig()
Returns
GetAppConfig(string)
Return the configuration of the app name specified. Use
public abstract AppConfigBaseModel GetAppConfig(string appName)
Parameters
appNamestring
Returns
GetAppNameList()
A list of the names (keys) for all apps on this server groups
public abstract List<string> GetAppNameList()