Source for file class.MULTI.php
Documentation is available at class.MULTI.php
* @author Kay Koch, <kay.koch@gmx.de>
die('This file was generated for PHP 5');
/* user defined includes */
// section -64--88-122--2--52a182bd:1038e11d8ad:-7fe4-includes begin
// section -64--88-122--2--52a182bd:1038e11d8ad:-7fe4-includes end
/* user defined constants */
// section -64--88-122--2--52a182bd:1038e11d8ad:-7fe4-constants begin
// section -64--88-122--2--52a182bd:1038e11d8ad:-7fe4-constants end
* @author Kay Koch, <kay.koch@gmx.de>
* Feld mit Umlauten, die geändert werden sollen
private static $umlaute =
Array (
* Feld mit Ersatzwerten, die geändert werden sollen
private static $replace =
Array (
* tauscht umlaute und schreibt klein
* @author Kay Koch, <kay.koch@gmx.de>
return (string)
preg_replace(self :: $umlaute, self :: $replace, strtolower($name));
* liefert ein OptionList mit den Tagen eines Monats aus
* @author Kay Koch, <kay.koch@gmx.de>
* @param int $vNr Wert der bei übereinstimmung SELECTED wird
* @param int $maxNr max. Wert bis zu dem das Menü erstellt wird
public static function getNrOL($vNr, $maxNr) {
$returnValue = (string)
'';
for ($nr =
0; $nr <=
$maxNr; $nr++
) {
$selected =
($nr ==
$vNr) ?
"SELECTED" :
"";
$returnValue .=
"<option $selected value='$nr'>$nr</option>\n";
return (string)
$returnValue;
* speichert Inhalt unter Dateinamen ab
* @param string $content Inhalt
* @param string $filename Dateiname
public static function saveFile($content, $filename) {
if (!($fp =
fopen($filename, "w")))
throw
new Exception("Fehler beim Dateianlegen (" .
$filename .
")");
} /* end of class src_tools_MULTI */
Documentation generated on Sat, 24 Mar 2007 09:59:39 +0100 by phpDocumentor 1.3.1