/** * Function to build the form * * @return None * @access public */ public function buildQuickForm() { CRM_Utils_System::setTitle(ts('Settings - Update Directory Path and URL')); require_once 'CRM/Core/BAO/Setting.php'; list($this->_oldBaseURL, $this->_oldBaseDir, $this->_oldSiteName) = CRM_Core_BAO_Setting::getConfigSettings(); $this->assign('oldBaseURL', $this->_oldBaseURL); $this->assign('oldBaseDir', $this->_oldBaseDir); $this->assign('oldSiteName', $this->_oldSiteName); $this->add('text', 'newBaseURL', ts('New Base URL'), null, true); $this->add('text', 'newBaseDir', ts('New Base Directory'), null, true); $this->add('text', 'newSiteName', ts('New Site Name'), null, true); $this->addFormRule(array('CRM_Admin_Form_Setting_UpdateConfigBackend', 'formRule')); parent::buildQuickForm(); }