/** * Constructor */ public function __construct() { /** @var backupBup $backup */ $backup = frameBup::_()->getModule('backup'); /** @var backupControllerBup $controller */ $controller = $backup->getController(); if ($this->filesystem === null) { $this->filesystem = $controller->getModel('filesystem'); } if ($this->database === null) { $this->database = $controller->getModel('database'); } /* Set configuration array in the database model. For backward compatibility */ $this->database->setConfig($this->getConfig()); }
/** * Constructor */ public function __construct() { /** @var backupBup $backup */ $backup = frameBup::_()->getModule('backup'); /** @var backupControllerBup $controller */ $controller = $backup->getController(); $this->maxExecutionTime = (int) ini_get('max_execution_time'); $this->startTime = time(); if ($this->filesystem === null) { $this->filesystem = $controller->getModel('filesystem'); } if ($this->database === null) { $this->database = $controller->getModel('database'); } if ($this->techLog === null) { $this->techLog = $controller->getModel('backupTechLog'); } if ($this->logTxt === null) { $this->logTxt = $controller->getModel('backupLogTxt'); } /* Set configuration array in the database model. For backward compatibility */ $this->database->setConfig($this->getConfig()); }