예제 #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->BackendUser = BackendUser::getInstance();
     parent::__construct();
     $this->Encryption = Encryption::getInstance();
     $this->Config = Config::getInstance();
     $this->objSyncCtoFiles = SyncCtoFiles::getInstance();
     $this->objSyncCtoDatabase = SyncCtoDatabase::getInstance();
     $this->objSyncCtoHelper = SyncCtoHelper::getInstance();
     $this->loadLanguageFile("default");
     $this->arrDebug = array();
 }
예제 #2
0
 /**
  * Constructor
  * 
  * @param DataContainer $objDc 
  */
 public function __construct(DataContainer $objDc = null)
 {
     parent::__construct($objDc);
     // Load helper
     $this->objSyncCtoDatabase = SyncCtoDatabase::getInstance();
     $this->objSyncCtoFiles = SyncCtoFiles::getInstance();
     // Load language
     $this->loadLanguageFile('tl_syncCto_backup');
     $this->loadLanguageFile('tl_syncCto_steps');
     // Load CSS
     $GLOBALS['TL_CSS'][] = 'system/modules/syncCto/assets/css/steps.css';
     // Import
     $this->import('BackendUser', 'User');
     // Choose template
     if (\Input::getInstance()->get("table") == "" && \Input::getInstance()->get("act") == "") {
         $this->strTemplate = "be_syncCto_backup";
     } else {
         if (\Input::getInstance()->get("table") != "" && \Input::getInstance()->get("act") != "") {
             $this->strTemplate = "be_syncCto_steps";
         } else {
             $this->strTemplate = "be_syncCto_backup";
         }
     }
 }
예제 #3
0
 /**
  * Constructor
  *
  * @param DataContainer $objDc
  */
 public function __construct(DataContainer $objDc = null)
 {
     parent::__construct($objDc);
     // Load helper
     $this->objSyncCtoDatabase = SyncCtoDatabase::getInstance();
     $this->objSyncCtoFiles = SyncCtoFiles::getInstance();
     $this->objSyncCtoCommunicationClient = SyncCtoCommunicationClient::getInstance();
     $this->objSyncCtoHelper = SyncCtoHelper::getInstance();
     // Load language
     $this->loadLanguageFile("tl_syncCto_steps");
     $this->loadLanguageFile("tl_syncCto_check");
     // Load CSS
     $GLOBALS['TL_CSS'][] = 'system/modules/syncCto/assets/css/steps.css';
     // Init classes.
     $this->User = \BackendUser::getInstance();
 }
예제 #4
0
 /**
  * Constructor 
  */
 protected function __construct()
 {
     parent::__construct();
     $this->objSyncCtoFiles = SyncCtoFiles::getInstance();
     $this->objSyncCtoDatabase = SyncCtoDatabase::getInstance();
 }
예제 #5
0
 /**
  * Get instance of SyncCtoDatabase
  * 
  * @return SyncCtoDatabase 
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new SyncCtoDatabase();
     }
     return self::$instance;
 }