예제 #1
0
 //
 //====================================================================================================
 /// <summary>
 /// Constructor - Initialize the Main and Csv objects
 /// </summary>
 /// <param name="cp"></param>
 public CPBlockClass(CPClass cp)
 {
     try {
         accum   = "";
         this.cp = cp;
         try {
             htmlDoc = new Controllers.HtmlController(cp.core);
         } catch (Exception ex) {
             LogController.logError(cp.core, ex, "Error creating object Controllers.htmlToolsController during cp.block constructor.");
             throw;
         }
     } catch (Exception ex) {
         LogController.logError(cp.core, ex);
         throw;
     }
 }
예제 #2
0
 //
 // ====================================================================================================
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="cpParent"></param>
 //
 public CPHttpClass(CPClass cpParent)
 {
     cp = cpParent;
 }
예제 #3
0
 //
 //====================================================================================================
 //
 public CPSiteClass(CPClass cp)
 {
     this.cp = cp;
 }
예제 #4
0
 //
 //====================================================================================================
 // Constructor
 public CPRequestClass(CPClass cp)
 {
     this.cp = cp;
 }
예제 #5
0
 //
 //====================================================================================================
 //
 public CPContentClass(CPClass cp)
 {
     this.cp = cp;
 }
예제 #6
0
 //
 //==========================================================================================
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="core"></param>
 public CPFileClass(CPClass cp)
 {
     this.core = cp.core;
 }
예제 #7
0
 //
 //====================================================================================================
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="cp"></param>
 /// <remarks></remarks>
 public CPCacheClass(CPClass cp)
 {
     this.cp = cp;
 }
예제 #8
0
 //
 // ====================================================================================================
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="cp"></param>
 public CPAddonClass(CPClass cp) => this.cp = cp;
예제 #9
0
 //
 //====================================================================================================
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="cpParent"></param>
 public CPGroupClass(CPClass cpParent)
 {
     cp   = cpParent;
     core = cp.core;
 }
예제 #10
0
 //
 //====================================================================================================
 /// <summary>
 /// Construct. This object is just a wrapper to create a consistent API passed to addon execution. The
 /// actual code is all within coreController. During startup, core loads and uses the default datasource
 /// at core.db. That is the only Db implemention used internally.
 /// If an Addon uses CP.Db, a new Db controller is used (so there can be 2 DbControllers on the default datasource)
 /// If an addon creates a new DbController instance using CP.Db New(datasource) a new instance of this class
 /// creates a new instance of dbcontroller. There may be mulitple instances of dbcontroller pointing to the same Db,
 /// but this construct makes disposing more straight forward.
 /// </summary>
 /// <param name="cpParent"></param>
 public CPDbClass(CPClass cpParent, string dataSourceName)
 {
     cp = cpParent;
     db = new DbController(cp.core, dataSourceName);
 }
예제 #11
0
 //
 //====================================================================================================
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="cpParent"></param>
 public CPDocClass(CPClass cpParent)
 {
     cp = cpParent;
 }
예제 #12
0
 //
 //==========================================================================================
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="cp"></param>
 public CPEmailClass(CPClass cp)
 {
     this.cp = cp;
 }
예제 #13
0
 //
 //====================================================================================================
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="cp"></param>
 public CPResponseClass(CPClass cp)
 {
     this.cp = cp;
 }
예제 #14
0
 //
 //=======================================================================================================
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="cp"></param>
 public CPVisitorClass(CPClass cp)
 {
     this.cp = cp;
 }
예제 #15
0
 //
 // ====================================================================================================
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="cp"></param>
 public CPUtilsClass(CPClass cp)
 {
     this.cp = cp;
 }
예제 #16
0
 //
 //====================================================================================================
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="coreObj"></param>
 /// <param name="cp"></param>
 public CPUserClass(CPClass cp)
 {
     this.cp = cp;
 }
예제 #17
0
 //
 //====================================================================================================
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="cp"></param>
 public CPCSClass(CPBaseClass cp)
 {
     this.cp = (CPClass)cp;
     cs      = new CsModel(this.cp.core);
 }
예제 #18
0
 //
 // ====================================================================================================
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="cp"></param>
 public CPLogClass(CPClass cp)
 => this.cp = cp;
예제 #19
0
 //
 // ====================================================================================================
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="cpParent"></param>
 //
 public CPHtml5Class(CPClass cpParent)
 {
     cp = cpParent;
 }