Translations of this page:
/******
 * Gibt aktuelle Server-Zeit zurück.
 * Das format wird als String $dateFormat an den Konstrukt übergeben. (Syntax wie php-Funktion date())
 */

class timer_api {
	var $dateFormat;

	function __construct($dateFormat) {
		$this->dateFormat = $dateFormat;
	}

	function __sleep() {
		// wird aufgerufen, wenn das Objekt serialisiert wird
 		return (array_keys(get_object_vars($this)));
	}

	function __wakeup() {
		// wird aufgerufen, wenn das serialisierte Objekt unserialisiert wird
	}

	function getTime() {
		return date($this->dateFormat);
	}
}
 
dev/coreall/api.txt · Zuletzt geändert: 29.09.2005 11:02 (Externe Bearbeitung)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki