Subversion-Projekte lars-tiefland.ci

Revision

Revision 2049 | Revision 2242 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2049 Revision 2107
Zeile 128... Zeile 128...
128
		 *
128
		 *
129
		 * postgre://username:password@localhost:5432/database?connect_timeout=5&sslmode=1
129
		 * postgre://username:password@localhost:5432/database?connect_timeout=5&sslmode=1
130
		 */
130
		 */
131
		foreach (array('connect_timeout', 'options', 'sslmode', 'service') as $key)
131
		foreach (array('connect_timeout', 'options', 'sslmode', 'service') as $key)
132
		{
132
		{
133
			if (isset($this->$key) && is_string($this->key) && $this->key !== '')
133
			if (isset($this->$key) && is_string($this->$key) && $this->$key !== '')
134
			{
134
			{
135
				$this->dsn .= $key."='".$this->key."' ";
135
				$this->dsn .= $key."='".$this->$key."' ";
136
			}
136
			}
137
		}
137
		}
Zeile 138... Zeile 138...
138
 
138
 
139
		$this->dsn = rtrim($this->dsn);
139
		$this->dsn = rtrim($this->dsn);
Zeile 297... Zeile 297...
297
	}
297
	}
Zeile 298... Zeile 298...
298
 
298
 
Zeile 299... Zeile 299...
299
	// --------------------------------------------------------------------
299
	// --------------------------------------------------------------------
300
 
300
 
301
	/**
301
	/**
302
	 * Platform-dependant string escape
302
	 * Platform-dependent string escape
303
	 *
303
	 *
304
	 * @param	string
304
	 * @param	string
305
	 * @return	string
305
	 * @return	string
Zeile 469... Zeile 469...
469
 
469
 
470
	/**
470
	/**
471
	 * Error
471
	 * Error
472
	 *
472
	 *
473
	 * Returns an array containing code and message of the last
473
	 * Returns an array containing code and message of the last
474
	 * database error that has occured.
474
	 * database error that has occurred.
475
	 *
475
	 *
476
	 * @return	array
476
	 * @return	array
477
	 */
477
	 */
478
	public function error()
478
	public function error()