MySQL support for jobs
This commit is contained in:
		
							parent
							
								
									75e7924770
								
							
						
					
					
						commit
						801f80ed47
					
				| 
						 | 
				
			
			@ -519,8 +519,18 @@ class LAMConfig {
 | 
			
		|||
	private $jobsBindUser = null;
 | 
			
		||||
	/** LDAP password for jobs */
 | 
			
		||||
	private $jobsBindPassword = null;
 | 
			
		||||
	/** database for jobs */
 | 
			
		||||
	/** database type for jobs */
 | 
			
		||||
	private $jobsDatabase = null;
 | 
			
		||||
	/** host of job database */
 | 
			
		||||
	private $jobsDBHost = null;
 | 
			
		||||
	/** port of job database */
 | 
			
		||||
	private $jobsDBPort = null;
 | 
			
		||||
	/** user of job database */
 | 
			
		||||
	private $jobsDBUser = null;
 | 
			
		||||
	/** password of job database */
 | 
			
		||||
	private $jobsDBPassword = null;
 | 
			
		||||
	/** name of job database */
 | 
			
		||||
	private $jobsDBName = null;
 | 
			
		||||
	/** random job token */
 | 
			
		||||
	private $jobToken = null;
 | 
			
		||||
	/** job configuration */
 | 
			
		||||
| 
						 | 
				
			
			@ -532,7 +542,9 @@ class LAMConfig {
 | 
			
		|||
		"modules", "activeTypes", "types", "tools", "accessLevel", 'loginMethod', 'loginSearchSuffix',
 | 
			
		||||
		'loginSearchFilter', 'searchLimit', 'lamProMailFrom', 'lamProMailReplyTo', 'lamProMailSubject',
 | 
			
		||||
		'lamProMailText', 'lamProMailIsHTML', 'lamProMailAllowAlternateAddress', 'httpAuthentication', 'loginSearchDN',
 | 
			
		||||
		'loginSearchPassword', 'timeZone', 'jobsBindUser', 'jobsBindPassword', 'jobsDatabase', 'jobToken', 'jobs');
 | 
			
		||||
		'loginSearchPassword', 'timeZone', 'jobsBindUser', 'jobsBindPassword', 'jobsDatabase', 'jobToken', 'jobs',
 | 
			
		||||
		'jobsDBHost', 'jobsDBPort', 'jobsDBUser', 'jobsDBPassword', 'jobsDBName'
 | 
			
		||||
	);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
| 
						 | 
				
			
			@ -742,6 +754,11 @@ class LAMConfig {
 | 
			
		|||
			if (!in_array("jobsBindPassword", $saved)) array_push($file_array, "\n" . "jobsBindPassword: " . $this->jobsBindPassword . "\n");
 | 
			
		||||
			if (!in_array("jobsBindUser", $saved)) array_push($file_array, "\n" . "jobsBindUser: " . $this->jobsBindUser . "\n");
 | 
			
		||||
			if (!in_array("jobsDatabase", $saved)) array_push($file_array, "\n" . "jobsDatabase: " . $this->jobsDatabase . "\n");
 | 
			
		||||
			if (!in_array("jobsDBHost", $saved)) array_push($file_array, "\n" . "jobsDBHost: " . $this->jobsDBHost . "\n");
 | 
			
		||||
			if (!in_array("jobsDBPort", $saved)) array_push($file_array, "\n" . "jobsDBPort: " . $this->jobsDBPort . "\n");
 | 
			
		||||
			if (!in_array("jobsDBUser", $saved)) array_push($file_array, "\n" . "jobsDBUser: " . $this->jobsDBUser . "\n");
 | 
			
		||||
			if (!in_array("jobsDBPassword", $saved)) array_push($file_array, "\n" . "jobsDBPassword: " . $this->jobsDBPassword . "\n");
 | 
			
		||||
			if (!in_array("jobsDBName", $saved)) array_push($file_array, "\n" . "jobsDBName: " . $this->jobsDBName . "\n");
 | 
			
		||||
			if (!in_array("jobToken", $saved)) array_push($file_array, "\n" . "jobToken: " . $this->getJobToken() . "\n");
 | 
			
		||||
			// check if all module settings were added
 | 
			
		||||
			$m_settings = array_keys($this->moduleSettings);
 | 
			
		||||
| 
						 | 
				
			
			@ -1685,6 +1702,96 @@ class LAMConfig {
 | 
			
		|||
		$this->jobsDatabase = $jobsDatabase;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Returns the host.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @return String host
 | 
			
		||||
	 */
 | 
			
		||||
	public function getJobsDBHost() {
 | 
			
		||||
		return $this->jobsDBHost;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Sets the host.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param String $jobsDBHost host
 | 
			
		||||
	 */
 | 
			
		||||
	public function setJobsDBHost($jobsDBHost) {
 | 
			
		||||
		$this->jobsDBHost = $jobsDBHost;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Returns the port.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @return String port
 | 
			
		||||
	 */
 | 
			
		||||
	public function getJobsDBPort() {
 | 
			
		||||
		return $this->jobsDBPort;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Sets the port.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param int $jobsDBPort port
 | 
			
		||||
	 */
 | 
			
		||||
	public function setJobsDBPort($jobsDBPort) {
 | 
			
		||||
		$this->jobsDBPort = $jobsDBPort;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Returns the DB user.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @return String user name
 | 
			
		||||
	 */
 | 
			
		||||
	public function getJobsDBUser() {
 | 
			
		||||
		return $this->jobsDBUser;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Sets the DB user.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param String $jobsDBUser user name
 | 
			
		||||
	 */
 | 
			
		||||
	public function setJobsDBUser($jobsDBUser) {
 | 
			
		||||
		$this->jobsDBUser = $jobsDBUser;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Returns the DB password.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @return String password
 | 
			
		||||
	 */
 | 
			
		||||
	public function getJobsDBPassword() {
 | 
			
		||||
		return $this->jobsDBPassword;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Sets the DB password.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param String $jobsDBPassword password
 | 
			
		||||
	 */
 | 
			
		||||
	public function setJobsDBPassword($jobsDBPassword) {
 | 
			
		||||
		$this->jobsDBPassword = $jobsDBPassword;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Returns the database name.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @return String DB name
 | 
			
		||||
	 */
 | 
			
		||||
	public function getJobsDBName() {
 | 
			
		||||
		return $this->jobsDBName;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Sets the database name
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param String $jobsDBName DB name
 | 
			
		||||
	 */
 | 
			
		||||
	public function setJobsDBName($jobsDBName) {
 | 
			
		||||
		$this->jobsDBName = $jobsDBName;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	* Sets the settings for the jobs.
 | 
			
		||||
	*
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue