mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-24 02:31:58 +01:00
muh
This commit is contained in:
parent
345907bc67
commit
b5f9bfe6a5
@ -0,0 +1,186 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>imagettftext</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Erstellt ein beliebigen TTF-Text in einem Bild">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Image-Funktionen, imagettftext">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/image_funktionen/imagettftext.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Image-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Image-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>imagettftext</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">array <b>imagettftext</b>(int im, int
|
||||||
|
size, int angle, int x, int y, int col, string fontfile, string text)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 3, PHP 4 >= 4.0b1</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="452">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit imagettftext() können Sie einen beliebigen Text (text) auf einer
|
||||||
|
Arbeitsfläche<br>
|
||||||
|
(im) zeichnen. Dabei geben Sie mit x und y die Startkoordinaten des Textes
|
||||||
|
und<br>
|
||||||
|
mit angle den Grad der Ausrichtung an. Achten Sie bitte darauf, dass die<br>
|
||||||
|
Gradzahlen im Bereich von 0°-360° angegeben und gegen den Uhrzeigersinn<br>
|
||||||
|
dargestellt werden. Der Parameter col legt den Index der verwendeten<br>
|
||||||
|
Schriftfarbe fest; wenn Sie hier einen negativen Wert angeben, wird das<br>
|
||||||
|
Antialiasing deaktiviert. Durch den Parameter size bestimmen Sie die Größe
|
||||||
|
der<br>
|
||||||
|
Schrift, welche aus einer TTF-Datei (fontfile) gelesen wird. Sie können
|
||||||
|
innerhalb<br>
|
||||||
|
des Textes auch UTF-8-Zeichenfolgen nutzen - so wäre z.B. das Copyright-<br>
|
||||||
|
Zeichen "©" die Zeichenfolge "&#169". <br>
|
||||||
|
Als Rückgabewert der Funktion erhalten Sie ein Array, welches 8 Elemente<br>
|
||||||
|
besitzt; diese Elemente enthalten die X- und Y-Koordinaten der vier Eckpunkte<br>
|
||||||
|
des Textes. Bei der Ausgabe des unteren Bildbeispiels kamen folgende Werte<br>
|
||||||
|
heraus: 31,140,269,13,262,0,25,127 (dieses spiegelt die Eckkoordinaten
|
||||||
|
vom<br>
|
||||||
|
linken unteren Punkt gegen den Uhrzeigersinn zum oberen linken Punkt des<br>
|
||||||
|
Textes). <br>
|
||||||
|
Sie können diese Funktion nur in Zusammenhang mit der GD- und FreeType-<br>
|
||||||
|
Bibliothek nutzen.<br>
|
||||||
|
</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="imagecreate.html">imagecreate()</a></li>
|
||||||
|
<li> <a href="imagecolorallocate.html">imagecolorallocate()</a></li>
|
||||||
|
<li><a href="imagegif.html">imagegif()</a></li>
|
||||||
|
<li><a href="imagettfbbox.html">imagettfbbox()</a></li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="56">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>$image = imagecreate(300,150); <br>$farbe_body=imagecolorallocate($image,243,243,243);<br>$font_c = imagecolorallocate($image,10,36,106);<br>imagettftext($image, 20, 28, 30, 140, $font_c, "Schlbk.ttf", "PHP3/4 - Die Befehlsreferenz"); <br>header("Content-type: image/gif"); <br>imagegif($image); <br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="44">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p><img src="../funktionsgrafiken/imagettftext.gif" width="395" height="229"></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="imagetypes.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagetypes.html"><b>imagetypes</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="imagettfbbox.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagettfbbox.html"><b>imagettfbbox</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Image-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,170 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>imagetypes</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Gibt alle unterstützten Bildformate innerhalb von PHP aus">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Image-Funktionen, imagetypes">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/image_funktionen/imagetypes.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Image-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Image-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>imagetypes</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">int <b>imagetypes</b>(void)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 3 CVS only, PHP 4 >= 4.0.2</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="128">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit imagestypes() werden alle momentan unterstützten Grafikformate
|
||||||
|
innerhalb<br>
|
||||||
|
von PHP ermittelt. Rückgabewert der Funktion ist ein Integer-Wert,
|
||||||
|
in dem Bit-<br>
|
||||||
|
Flags gesetzt sind; um die Bit-Flags den Grafikformaten zuzuordnen, können
|
||||||
|
Sie<br>
|
||||||
|
die IMG_xxx-Konstanten verwenden (siehe Beispiel).</p>
|
||||||
|
<p>Folgende Formate sind möglich:<br>
|
||||||
|
GIF<br>
|
||||||
|
JPG<br>
|
||||||
|
PNG<br>
|
||||||
|
WBMP</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="56">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>if(imagetypes() & IMG_GIF)$type[0] = "GIF"; <br>if(imagetypes() & IMG_JPG)$type[1] = "JPG";<br>if(imagetypes() & IMG_PNG)$type[2] = "PNG";<br>if(imagetypes() & IMG_WBMP)$type[3] = "WBMP";<br>for($x=0;$x<4;$x++){<br> echo $type[$x] ."-Unterstützung ist aktiviert";<br> echo "<br>";<br>}<br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="44">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>GIF-Unterstützung ist aktiviert<br>
|
||||||
|
JPG-Unterstützung ist aktiviert<br>
|
||||||
|
PNG-Unterstützung ist aktiviert<br>
|
||||||
|
WBMP-Unterstützung ist aktiviert</p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="imagewbmp.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagewbmp.html"><b>imagewbmp</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="imagettftext.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagettftext.html"><b>imagettftext</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Image-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,175 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>imagetypes</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Gibt ein WBMP-Bild an den Browser oder in eine Datei aus">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Image-Funktionen, imagewbmp">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-19T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/image_funktionen/imagewbmp.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-19T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Image-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Image-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>imagewbmp</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">int <b>imagewbmp</b>(int im [, string
|
||||||
|
filename])</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 3 >= 3.0.15, PHP 4 >= 4.01</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="210">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit imagewbmp() wird ein zuvor mit imagecreate() erzeugtes Bild (im)
|
||||||
|
im<br>
|
||||||
|
WBMP-Format (Wireless BMP, hauptsächlich verwendet für WAP)
|
||||||
|
an den<br>
|
||||||
|
Browser gesendet. Der zweite Parameter (filename) ist optional; wenn Sie
|
||||||
|
ihn<br>
|
||||||
|
angeben, wird das zuvor erstellte Bild in eine Datei geschrieben:<br>
|
||||||
|
imagewbmp($image,"image.wbmp") .<br>
|
||||||
|
Die WBMP-Unterstützung kann nur genutzt werden, wenn Sie eine GD-<br>
|
||||||
|
Bibliothek ab der Version 1.8 haben.</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="imagegif.html">imagegif()</a></li>
|
||||||
|
<li><a href="imagejpeg.html">imagejpeg()</a></li>
|
||||||
|
<li><a href="imagepng.html">imagepng()</a></li>
|
||||||
|
<li><a href="imagetypes.html">imagetypes()</a></li>
|
||||||
|
<li><a href="imagecreate.html">imagecreate()</a></li>
|
||||||
|
<li><a href="imagecolorallocate.html">imagecolorallocate()</a></li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="75">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP <br>$image = imagecreate(100,100); <br>$farbe_body=imagecolorallocate($image,255,255,255); <br>header("Content-Type: image/vnd.wap.wbmp"); <br>imagewbmp($image,"test.wbmp"); <br>?></pre>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="44">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57"><p><img src="../funktionsgrafiken/imagewbmp.gif" width="395" height="229"></p>
|
||||||
|
<p><b>Achtung:</b> Alle rotgekennzeichneten Elemente gehören nicht
|
||||||
|
zur<br>
|
||||||
|
Ausgabe des gezeigten Beispiels, sondern dienen nur der<br>
|
||||||
|
Verständlichkeit.</p></td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="../klassen_und_objekt_funktionen/index.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="../klassen_und_objekt_funktionen/index.html"><b>Klassen und Objekt-Funktionen</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="imagetypes.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagetypes.html"><b>imagetypes</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Image-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,157 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Übersicht Image-Funktionen</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="In diesem Abschnitt werden Image-Funktionen beschrieben.">
|
||||||
|
<meta name="keywords" content="SELFPHP, Image-Funktionen, getimagesize, imagearc, imagechar, imagecharup, imagecolorallocate, imagecolorat, imagecolorclosest, imagecolordeallocate, imagecolorexact, imagecolorresolve, imagecolorset, imagecolorsforindex, imagecolorstotal, imagecolortransparent, imagecopy, imagecopyresized, imagecreate, imagecreatefromgif, imagecreatefromjpeg, imagecreatefrompng, imagedashedline, imagedestroy, imagefill, imagefilledpolygon, imagefilledrectangle, imagefilltoborder, imagefontheight, imagefontwidth, imagegammacorrect, imagegif, imageinterlace, imagejpeg, imageline, imageloadfont, imagepng, imagepolygon, imagepsbbox, imagepsencodefont, imagepsextendfont, imagepsfreefont, imagepsloadfont, imagepsslantfont, imagepstext, imagerectangle, imagesetpixel, imagestring, imagestringup, imagesx, imagesy, imagettfbbox, imagettftext, imagetypes, read_exif_data">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-03T08:00+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/image_funktionen/index.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-03T08:00+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Ordner">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.html">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body bgcolor=#FFFFFF text=#000000 link=#AA5522 vlink=#772200 alink=#000000>
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>Image-Funktionen</h2>
|
||||||
|
</td></td>
|
||||||
|
</tr> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/kapx.gif" width="30" height="26" vspace="6" border="0" alt="Kapitelseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" colspan="2">
|
||||||
|
<p> Sinnvolle Vorkenntnisse zum Verständnis: <img src="../../src/dok.gif" width="15" height="10">
|
||||||
|
<a href="vorkenntnisse_imagefunktionen.html">Vorkenntnisse Image-Funktionen</a><br>
|
||||||
|
In diesem Abschnitt werden Image-Funktionen beschrieben.<br>
|
||||||
|
Der Abschnitt besteht aus folgenden Seiten:</p>
|
||||||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||||||
|
<tr>
|
||||||
|
<td nowrap> <img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="getimagesize.html"><b>getimagesize</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagearc.html"><b>imagearc</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagechar.html"><b>imagechar</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecharup.html"><b>imagecharup</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolorallocate.html"><b>imagecolorallocate</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolorat.html"><b>imagecolorat</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolorclosest.html"><b>imagecolorclosest</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolordeallocate.html"><b>imagecolordeallocate</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolorexact.html"><b>imagecolorexact</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolorresolve.html"><b>imagecolorresolve</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolorset.html"><b>imagecolorset</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolorsforindex.html"><b>imagecolorsforindex</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolorstotal.html"><b>imagecolorstotal</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecolortransparent.html"><b>imagecolortransparent</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecopy.html"><b>imagecopy</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecopyresized.html"><b>imagecopyresized</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecreate.html"><b>imagecreate</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecreatefromgif.html"><b>imagecreatefromgif</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecreatefromjpeg.html"><b>imagecreatefromjpeg</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecreatefrompng.html"><b>imagecreatefrompng</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagecreatefromwbmp.html"><b>imagecreatefromwbmp</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagedashedline.html"><b>imagedashedline</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagedestroy.html"><b>imagedestroy</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagefill.html"><b>imagefill</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagefilledpolygon.html"><b>imagefilledpolygon</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagefilledrectangle.html"><b>imagefilledrectangle</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagefilltoborder.html"><b>imagefilltoborder</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagefontheight.html"><b>imagefontheight</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagefontwidth.html"><b>imagefontwidth</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagegammacorrect.html"><b>imagegammacorrect</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagegif.html"><b>imagegif</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imageinterlace.html"><b>imageinterlace</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagejpeg.html"><b>imagejpeg</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imageline.html"><b>imageline</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagepng.html"><b>imagepng</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagepolygon.html"><b>imagepolygon</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagerectangle.html"><b>imagerectangle</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagesetpixel.html"><b>imagesetpixel</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagestring.html"><b>imagestring</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagestringup.html"><b>imagestringup</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagesx.html"><b>imagesx</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagesy.html"><b>imagesy</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagettfbbox.html"><b>imagettfbbox</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagettftext.html"><b>imagettftext</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagetypes.html"><b>imagetypes</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="imagewbmp.html"><b>imagewbmp</b></a><br>
|
||||||
|
<br>
|
||||||
|
  </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><br> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,139 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Vorkenntnisse Image-Funktionen</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="In diesem Abschnitt werden Image-Funktionen beschrieben.">
|
||||||
|
<meta name="keywords" content="SELFPHP, Image-Funktionen, getimagesize, imagearc, imagechar, imagecharup, imagecolorallocate, imagecolorat, imagecolorclosest, imagecolordeallocate, imagecolorexact, imagecolorresolve, imagecolorset, imagecolorsforindex, imagecolorstotal, imagecolortransparent, imagecopy, imagecopyresized, imagecreate, imagecreatefromgif, imagecreatefromjpeg, imagecreatefrompng, imagedashedline, imagedestroy, imagefill, imagefilledpolygon, imagefilledrectangle, imagefilltoborder, imagefontheight, imagefontwidth, imagegammacorrect, imagegif, imageinterlace, imagejpeg, imageline, imageloadfont, imagepng, imagepolygon, imagepsbbox, imagepsencodefont, imagepsextendfont, imagepsfreefont, imagepsloadfont, imagepsslantfont, imagepstext, imagerectangle, imagesetpixel, imagestring, imagestringup, imagesx, imagesy, imagettfbbox, imagettftext, imagetypes, read_exif_data">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-03T08:00+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/image_funktionen/index.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-03T08:00+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Ordner">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.html">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body bgcolor=#FFFFFF text=#000000 link=#AA5522 vlink=#772200 alink=#000000>
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a>
|
||||||
|
<img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Image-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>Vorkenntnisse Image-Funktionen</h2>
|
||||||
|
</td></td>
|
||||||
|
</tr> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Kapitelseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" colspan="2">
|
||||||
|
<p> Mit den Grafikfunktionen können Sie nicht nur Informationen über
|
||||||
|
die Größe eines Bildes<br>
|
||||||
|
erhalten, sondern zur Laufzeit des Skripts auch Grafiken erzeugen. Für
|
||||||
|
die Erzeugung von <br>
|
||||||
|
Grafiken müssen Sie die GD-Bibliothek in Ihrer PHP-Version eingebunden
|
||||||
|
haben, welche Sie <br>
|
||||||
|
im Internet unter > <a href="http://www.boutell.com" target="_blank" >www.boutell.com</a>
|
||||||
|
< erhalten. Dort finden Sie auch genaue Anleitungen zum <br>
|
||||||
|
Einbinden dieser Bibliothek. Sie sollten sich im Vorfeld genau überlegen,
|
||||||
|
welche <br>
|
||||||
|
Grafikformate Sie benötigen, da die angebotenen Versionen auch unterschiedliche
|
||||||
|
<br>
|
||||||
|
Grafikformate unterstützen. Aus rechtlichen Gründen musste die
|
||||||
|
GIF-Unterstützung ab der <br>
|
||||||
|
Version 1.6 aus der GD-Bibliothek entfernt werden, da die Rechte des Algorithmus
|
||||||
|
für die <br>
|
||||||
|
LZW-Komprimierung bei der Firma Unisys liegen. Falls Sie dennoch eine
|
||||||
|
GIF-Unterstützung <br>
|
||||||
|
benötigen, so werden Sie diese auch sicherlich im Internet finden.
|
||||||
|
Ab der Version 1.6 der GD-<br>
|
||||||
|
Bibliothek wird das PNG-Grafikformat unterstützt. Folgende Grafikformate
|
||||||
|
werden je nach <br>
|
||||||
|
Version unterstützt:<br>
|
||||||
|
<ul>
|
||||||
|
<li>JPEG</li>
|
||||||
|
<li>GIF</li>
|
||||||
|
<li>PNG</li>
|
||||||
|
<li>WBMP</li>
|
||||||
|
</ul>
|
||||||
|
Falls Sie ein Windows-System nutzen, müssen Sie zum Einbinden der GD-Bibliothek
|
||||||
|
in der php.ini die <br>
|
||||||
|
Unterstützung aktivieren (extension=php_gd.dll). <br>
|
||||||
|
<br>
|
||||||
|
Zusätzlich haben Sie die Möglichkeit, falls Sie "jpeg-6b"
|
||||||
|
auf Ihrem System haben, JPEG-<br>
|
||||||
|
Grafiken zu lesen und zu schreiben. Eine aktuelle Version von jpeg-6b finden
|
||||||
|
Sie im Internet <br>
|
||||||
|
unter < <a href="ftp://ftp.uu.net/graphics/jpeg/" target="_blank">ftp://ftp.uu.net/graphics/jpeg/</a>
|
||||||
|
>.<br>
|
||||||
|
<br>
|
||||||
|
Weiterhin haben Sie die Möglichkeit, eine Unterstützung von Type1-Fonts
|
||||||
|
einzubauen. Dafür <br>
|
||||||
|
benötigen Sie eine Version von t1lib, welche Sie im Internet unter<br>
|
||||||
|
< <a href="ftp://ftp.neuroinformatik.ruhr-uni-bochum.de/pub/software/t1lib/" target="_blank">ftp://ftp.neuroinformatik.ruhr-uni-bochum.de/pub/software/t1lib/</a>
|
||||||
|
> erhalten.
|
||||||
|
<p>Bei der Erzeugung von Grafiken mit der GD-Bibliothek können Sie
|
||||||
|
beliebige Formen auf <br>
|
||||||
|
einer rechtwinkligen Arbeitsfläche erzeugen, welche Sie von den Abmessungen
|
||||||
|
frei bestimmen <br>
|
||||||
|
können. Jede Grafik wird erst im Speicher des Servers erzeugt, bevor
|
||||||
|
sie ausgegeben wird. <br>
|
||||||
|
Bei der Ausgabe der Grafiken stehen Ihnen mehrere Möglichkeiten zur
|
||||||
|
Verfügung. Sie können das <br>
|
||||||
|
Bild virtuell erzeugen und an den Browser schicken, aber spätestens
|
||||||
|
beim Skriptende ist die <br>
|
||||||
|
Grafik wieder gelöscht. Sie haben aber natürlich auch die Möglichkeit,
|
||||||
|
ein Bild auf dem Server <br>
|
||||||
|
zu speichern.<br>
|
||||||
|
<br>
|
||||||
|
Bei der Ausgabe der Grafiken müssen Sie darauf achten, dass diese
|
||||||
|
mit der Header-Funktion <br>
|
||||||
|
eingeleitet wird und vorher keine andere Ausgabe stattgefunden hat, da
|
||||||
|
sonst ein unleserlicher <br>
|
||||||
|
Code gesendet wird.<br>
|
||||||
|
<br>
|
||||||
|
Die meisten Grafikfunktionen benötigen als Parameter Koordinatenangaben.
|
||||||
|
Diese Koordinaten <br>
|
||||||
|
sind in der Einheit Pixel (px) angegeben. Der Ursprung des Koordinatensystems
|
||||||
|
(0/0) ist <br>
|
||||||
|
die linke obere Ecke der Arbeitsfläche.<br>
|
||||||
|
<br>
|
||||||
|
Die Abbildungen zu den Beispielen dieses Kapitels enthalten meist Legenden,
|
||||||
|
die <br>
|
||||||
|
Eigenschaften der ausgegebenen Grafiken erläutern sollen. Oft finden
|
||||||
|
Sie in den Bildern zum <br>
|
||||||
|
Beispiel Koordinatenangaben. Diese Legenden wurden nachträglich hinzugefügt
|
||||||
|
und sind nicht <br>
|
||||||
|
Resultat des Beispielcodes.<br>
|
||||||
|
<br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><br> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,176 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>call_user_method</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Ruft eine benutzerdefinierte Methode eines Objekts auf">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, call_user_method">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/call_user_method.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>call_user_method</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">mixed <b>call_user_method</b>(string
|
||||||
|
method_name, object obj [, mixed parameter [, mixed ...]])</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 3>= 3.0.3, PHP 4 >= 4.0b1</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="247">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit call_user_method() kann man eine benutzerdefinierte Methode eines<br>
|
||||||
|
Objektes aufrufen. Dabei ist diese Funktion als eine zusätzliche
|
||||||
|
Möglichkeit zu<br>
|
||||||
|
sehen, um eine Funktion innerhalb einer Klasse aufzurufen.<br>
|
||||||
|
Die Funktion method_name innerhalb einer Klasse wird über das Objekt
|
||||||
|
obj,<br>
|
||||||
|
welches eine Klasse repräsentiert, angesprochen. Die optionalen Parameter
|
||||||
|
ab<br>
|
||||||
|
parameter übergeben Argumente an die Methode. Sollten Sie mehr als
|
||||||
|
einen<br>
|
||||||
|
Wert übergeben wollen, so trennen Sie die Werte durch ein Komma.<br>
|
||||||
|
Im unteren Beispiel sehen Sie zuerst den Aufruf einer Methode mit<br>
|
||||||
|
call_user_method() und danach den normalen und üblichen Aufruf ($korb
|
||||||
|
-><br>
|
||||||
|
weg()).</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="../functions_funktionen/call_user_func.html">call_user_func()</a></li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>if(!isset($menge))$menge = 0;<br>class warenkorb{ <br> function hinzu($zahl, $menge){ <br> $menge += $zahl; <br> return $menge; <br> } <br> function weg($zahl, $menge){ <br> $menge -= $zahl;<br> return $menge; <br> }<br>} <br>$korb = new warenkorb(); <br>$menge = call_user_method("hinzu",$korb,5,$menge); <br>echo "$menge<br>"; <br>echo $korb -> weg(2,$menge); <br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>5<br>
|
||||||
|
3</p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="call_user_method_array.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="call_user_method_array.html"><b>call_user_method_array</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="index.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,193 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>call_user_method_array</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="call_user_method_array">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, call_user_method_array">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/call_user_method_array.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>call_user_method_array</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">mixed <b>call_user_method_array</b>(string
|
||||||
|
method_name, object obj [, array paramarr])</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 4 >= 4.0.5</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="187">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit call_user_method_array() kann man ein Array (paramarr) mit Werten
|
||||||
|
an<br>
|
||||||
|
eine Methode (method_name) eines Objekts (obj) übergeben. <br>
|
||||||
|
Im unteren Beispiel wurde die Methode zuerst mit einem Array aufgerufen,
|
||||||
|
dann<br>
|
||||||
|
mit einer Variablen, danach auf die normale (übliche) Art und zum
|
||||||
|
Schluss ohne<br>
|
||||||
|
Werte. <br>
|
||||||
|
Sie sollten allerdings diese Funktion nicht mit den unten stehenden Beispielen<br>
|
||||||
|
(außer Arrays) benutzen, da sie eigentlich für Arrays bestimmt
|
||||||
|
ist. Ihnen soll<br>
|
||||||
|
hiermit die Möglichkeiten dieser Funktion aufgezeigt werden.<br>
|
||||||
|
</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="../functions_funktionen/call_user_func_array.html">call_user_func_array()</a></li>
|
||||||
|
<li><a href="../functions_funktionen/call_user_func.html">call_user_func()</a></li>
|
||||||
|
<li><a href="call_user_method.html">call_user_method()</a></li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>class database{ <br> function first($a,$b,$c){<br> $d = $a . $b . $c;<br> return $d;<br> }<br><br> function second($x){
|
||||||
|
return $x;
|
||||||
|
}<br><br> function third(){
|
||||||
|
echo "HALLO";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$klasse = new database;
|
||||||
|
$array = array("SELF","PHP"," 3");
|
||||||
|
$var = "SELFPHP 4";
|
||||||
|
echo call_user_method_array("first", $klasse, $array);
|
||||||
|
echo "<br>";
|
||||||
|
echo call_user_method_array ("second", $klasse, $var);
|
||||||
|
echo "<br>";
|
||||||
|
echo $klasse -> second("SELFPHP");
|
||||||
|
echo "<br>";
|
||||||
|
call_user_method_array ("third", $klasse,"");
|
||||||
|
?></pre>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>SELFPHP 3<br>
|
||||||
|
SELFPHP 4<br>
|
||||||
|
SELFPHP<br>
|
||||||
|
PHP4</p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="class_exists.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="class_exists.html"><b>class_exists</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="call_user_method.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="call_user_method.html"><b>call_user_method</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,160 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>class_exists</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Überprüft, ob eine Klasse deklariert wurde">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, class_exists">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/class_exists.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>class_exists</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">bool <b>class_exists</b>(string class_name)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 4 >= 4.0b4</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="53">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit class_exists() kann man überprüfen, ob eine Klasse deklariert
|
||||||
|
wurde. Im<br>
|
||||||
|
Erfolgsfall gibt diese Funktion true, sonst false zurück.</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>$array = array("einkauf","warenkorb","verkauf");<br>class warenkorb{ <br> //<br> // Programmcode<br> // <br>} <br>for($x=0;$x<count($array);$x++){<br> if(class_exists($array[$x]))<br> echo "Klasse " . $array[$x] ." wurde deklariert<br>";<br> else<br> echo "Klasse " . $array[$x] ." wurde nicht deklariert<br>";<br>}<br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Klasse einkauf wurde nicht deklariert<br>
|
||||||
|
Klasse warenkorb wurde deklariert<br>
|
||||||
|
Klasse verkauf wurde nicht deklariert</p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="get_class.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_class.html"><b>get_class</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="call_user_method_array.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="call_user_method_array.html"><b>call_user_method_array</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,162 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>get_class</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Gibt den Namen der Klasse eines Objektes aus">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, get_class">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/get_class.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>get_class</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">string <b>get_class</b>(object obj)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 4</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="144">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit get_class() kann man sich den Namen der Klasse eines Objektes zurückgeben<br>
|
||||||
|
lassen.</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="get_parent_class.html">get_parent_class()</a></li>
|
||||||
|
<li><a href="is_subclass_of.html">is_subclass_of()</a></li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>class database{<br> function first(){<br> }<br> function second(){<br> }<br>}<br>$connect_to_base = new database;<br>echo get_class($connect_to_base); <br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>database</p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="get_class_methods.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_class_methods.html"><b>get_class_methods</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="class_exists.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="class_exists.html"><b>class_exists</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,167 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>get_class_methods</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Gibt die Namen aller Methoden einer Klasse aus">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, get_class_methods">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/get_class_methods.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>get_class_methods</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">array <b>get_class_methods</b>(string
|
||||||
|
class_name)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 4 >= 4.0RC1</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="153">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit get_class_methods() kann man sich alle Methoden in einer Klasse<br>
|
||||||
|
(class_name) zurückgeben lassen. Als Rückgabewert erhält
|
||||||
|
man ein Array mit<br>
|
||||||
|
den Namen der Methoden.</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="get_class_vars.html">get_class_vars()</a></li>
|
||||||
|
<li><a href="get_object_vars.html">get_object_vars()</a><br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>class database{<br> function first(){<br> }<br> function second(){<br> }<br>}<br>$connect_to_base = new database;<br>$name = get_class($connect_to_base);<br>$array = get_class_vars($name);<br>for($x=0;$x< count($array);$x++){<br> echo $array[$x] . "<br>";<br>}<br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>first<br>
|
||||||
|
second</p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="get_class_vars.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_class_vars.html"><b>get_class_vars</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="get_class.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_class.html"><b>get_class</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,173 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>get_class_vars</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Gibt die Standard-Elemente einer Klasse aus">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, get_class_vars">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/get_class_vars.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>get_class_vars</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">array <b>get_class_vars</b>(string class_name)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 4 >= 4.0RC1</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="182">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit get_class_vars() kann man sich alle Standardelemente einer Klasse<br>
|
||||||
|
(class_name) zurückgeben lassen. Als Standardelemente ist alles zu
|
||||||
|
sehen, was<br>
|
||||||
|
mit "var" in der Klassendefinition deklariert wurde.<br>
|
||||||
|
Als Rückgabewert erhalten Sie ein Array mit dem Namen der Variablen
|
||||||
|
und<br>
|
||||||
|
deren Inhalt.</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="get_class_methods.html">get_class_methods()</a></li>
|
||||||
|
<li><a href="get_object_vars.html">get_object_vars()</a><br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>class database{<br> var $db_server = "localhost";<br> var $db_name = "container";<br> var $db_user = "root";<br> var $db_passwort = "xkLjsdes";<br> var $vari = 20;<br> function first(){<br> }<br> function second(){<br> }<br>}<br>$connect_to_base = new database;<br>$name = get_class($connect_to_base);<br>$array = get_class_vars($name);<br>while (list($key, $val) = each($array)) {<br> echo "$key => $val";<br> echo "<br>";<br>}<br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>db_server => localhost<br>
|
||||||
|
db_name => container<br>
|
||||||
|
db_user => root<br>
|
||||||
|
db_passwort => xkLjsdes<br>
|
||||||
|
vari => 20</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="get_declared_classes.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_declared_classes.html"><b>get_declared_classes</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="get_class_methods.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_class_methods.html"><b>get_class_methods</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,168 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>get_declared_classes</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Liefert ein Array mit den Namen der deklarierten Klassen">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, get_declared_classes">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/get_declared_classes.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>get_declared_classes</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">array <b>get_declared_classes</b>(void)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 4 >= 4.0RC2</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="122">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit get_declared_classes() kann man sich innerhalb eines Skripts alle
|
||||||
|
deklarierten<br>
|
||||||
|
Klassen zurückgeben lassen. Als Rückgabewert erhalten Sie ein
|
||||||
|
Array mit den<br>
|
||||||
|
Namen der Klassen.</p>
|
||||||
|
<p>Folgende Klassen werden am Anfang des Arrays zurückgegeben:</p>
|
||||||
|
<p>stdClass (deklariert in Zend/zend.c)<br>
|
||||||
|
OverloadedTestClass (deklariert in ext/standard/basic_functions.c)<br>
|
||||||
|
Directory (deklariert in ext/standard/dir.c)</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>class database{<br> function first(){<br> }<br> function second(){<br> }<br>}<br>class base_data{<br> function first(){<br> }<br> function second(){<br> }<br>}<br>$connect_to_base = new database;<br>$connect_to_base = new base_data;<br>$name = get_declared_classes ();<br>while (list($key, $val) = each($name)) {<br> echo "$key => $val";<br> echo "<br>";<br>}<br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>0 => stdClass<br>
|
||||||
|
1 => OverloadedTestClass<br>
|
||||||
|
2 => Directory<br>
|
||||||
|
3 => database<br>
|
||||||
|
4 => base_data</p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="get_object_vars.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_object_vars.html"><b>get_object_vars</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="get_class_vars.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_class_vars.html"><b>get_class_vars</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,183 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>get_object_vars</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Gibt die Elemente eines Objekts aus">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, get_object_vars">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/get_object_vars.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>get_object_vars</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">array <b>get_object_vars</b>(object
|
||||||
|
obj)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 4 >= 4.0RC1</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="122">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit get_object_vars() kann man sich alle Mitgliedsvariablen (Eigenschaften)<br>
|
||||||
|
eines Objekts (obj) zurückgeben lassen.<br>
|
||||||
|
Als Rückgabewert erhalten Sie ein Array mit dem Namen der Variablen
|
||||||
|
und<br>
|
||||||
|
deren Inhalt. Die Instanz der Klasse muss vorhanden sein, da es sonst
|
||||||
|
zu einer<br>
|
||||||
|
Fehlermeldung kommt.</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="get_class_methods.html">get_class_methods()</a></li>
|
||||||
|
<li><a href="get_class_vars.html">get_class_vars()</a><br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>class database{ <br> var $db_server = "localhost"; <br> var $db_name = "container"; <br> var $db_user = "root"; <br> var $db_passwort = "xkLjsdes"; <br> var $vari = 20;</pre>
|
||||||
|
<pre> function first(){
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$connect_to_base = new database;
|
||||||
|
$array = get_object_vars($connect_to_base);
|
||||||
|
while (list($key, $val) = each($array)) {
|
||||||
|
echo "$key => $val";
|
||||||
|
echo "<br>";
|
||||||
|
}
|
||||||
|
?></pre>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>db_server => localhost<br>
|
||||||
|
db_name => container<br>
|
||||||
|
db_user => root<br>
|
||||||
|
db_passwort => xkLjsdes<br>
|
||||||
|
vari => 20</p>
|
||||||
|
<p></p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="get_parent_class.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_parent_class.html"><b>get_parent_class</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="get_declared_classes.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_declared_classes.html"><b>get_declared_classes</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,165 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>get_parent_class</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Liefert anhand eines Objekts, welches eine Subklasse ist,den Namen der Hauptklasse">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, get_parent_class">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/get_parent_class.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>get_parent_class</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">string <b>get_parent_class</b>(object
|
||||||
|
obj)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 4 >= 4.0b2</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="122">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit get_parent_class() kann man anhand eines Objekts (obj), das Instanz
|
||||||
|
einer<br>
|
||||||
|
Subklasse ist, den Namen der Basisklasse ermitteln.</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="get_class.html">get_class()</a></li>
|
||||||
|
<li><a href="is_subclass_of.html">is_subclass_of()</a><br>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>class database{ <br> function first(){<br> }<br>}<br>class secure extends database{<br> function second(){<br> }<br>} <br>$connect = new secure;<br>echo get_parent_class($connect); <br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>database</p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="is_subclass_of.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="is_subclass_of.html"><b>is_subclass_of</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="get_object_vars.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_object_vars.html"><b>get_object_vars</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,85 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Übersicht Klassen und Objekt-Funktionen</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="In diesem Abschnitt werden Klassen und Objekt-Funktionen beschrieben.">
|
||||||
|
<meta name="keywords" content="SELFPHP, Klassen und Objekt-Funktionen, call_user_method, call_user_method_array, class_exists, get_class, get_class_methods, get_class_vars, get_declared_classes, get_object_vars, get_parent_class, is_subclass_of, method_exists">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-03T08:00+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/index.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-03T08:00+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Ordner">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.html">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body bgcolor=#FFFFFF text=#000000 link=#AA5522 vlink=#772200 alink=#000000>
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>Klassen und Objekt-Funktionen</h2>
|
||||||
|
</td></td>
|
||||||
|
</tr> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/kapx.gif" width="30" height="26" vspace="6" border="0" alt="Kapitelseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" colspan="2">
|
||||||
|
<p> In diesem Abschnitt werden Klassen und Objekt-Funktionen beschrieben.<br>
|
||||||
|
Der Abschnitt besteht aus folgenden Seiten:</p>
|
||||||
|
<table cellpadding="0" cellspacing="0" border="0">
|
||||||
|
<tr>
|
||||||
|
<td nowrap> <img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="call_user_method.html"><b>call_user_method</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="call_user_method_array.html"><b>call_user_method_array</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="class_exists.html"><b>class_exists</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_class.html"><b>get_class</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_class_methods.html"><b>get_class_methods</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_class_vars.html"><b>get_class_vars</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_declared_classes.html"><b>get_declared_classes</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_object_vars.html"><b>get_object_vars</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_parent_class.html"><b>get_parent_class</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="is_subclass_of.html"><b>is_subclass_of</b></a><br>
|
||||||
|
<img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="method_exists.html"><b>method_exists</b></a><br>
|
||||||
|
<br>
|
||||||
|
  </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><br> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,165 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>is_subclass_of</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="../../src/self.css">
|
||||||
|
<meta name="description" content="Überprüft, ob ein Objekt zu einer Subklasse der angegebenen Hauptklasse gehört">
|
||||||
|
<meta name="keywords" content="SELFPHP, PHP, Klassen und Objekt-Funktionen, is_subclass_of">
|
||||||
|
<meta name="author" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Contributer" content="Matthias Hupp, m.hupp@selfphp3.de">
|
||||||
|
<meta name="DC.Publisher" content="Damir Enseleit, mail@selfphp.info">
|
||||||
|
<meta name="DC.Date" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="DC.Identifier" content="http://www.selfphp3.de/funktionsreferenz/klassen_und_objekt_funktionen/is_subclass_of.html">
|
||||||
|
<meta name="DC.Language" content="de">
|
||||||
|
<meta name="DC.Rights" content="../../editorial/index.html">
|
||||||
|
<meta name="SELF.Firstdate" content="2001-08-20T12:18+01:00">
|
||||||
|
<meta name="SELF.Version" content="1">
|
||||||
|
<meta name="SELF.Pagetype" content="Information">
|
||||||
|
<meta name="SELF.Path" content="SELFPHP == ../../index.php // Funktionsreferenz == ../index.php // Klassen und Objekt-Funktionen == index.html">
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFFF" text="#000000" link="#AA5522" vlink="#772200" alink="#000000">
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="top"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a> <a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"> <a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" width="110"><img src="../../src/logo.gif" width="106" height="109" border="0" alt="SEL.html"></td>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="bottom" width="100%">
|
||||||
|
<h2>is_subclass_of</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" valign="top" align="center"> <img src="../../src/dokx.gif" width="30" height="20" vspace="6" border="0" alt="Informationsseite">
|
||||||
|
</td>
|
||||||
|
<td bgcolor="#FFFFFF" valign="top" nowrap colspan="2">
|
||||||
|
<p> <img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#befehl"><b>Befehl</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#version"><b>Version</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beschreibung"><b>Beschreibung</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#beispiel"><b>Beispiel</b></a><br>
|
||||||
|
<img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"> <a href="#ausgabe"><b>Ausgabe</b></a><br>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 bgcolor="#EEEEEE" class="doc"><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="befehl">Befehl</a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10><tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">bool <b>is_subclass_of</b>(object obj,
|
||||||
|
string superclass)</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="version">Version</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="32">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="20">
|
||||||
|
<p>PHP 4 >= 4.0b4</p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beschreibung">Beschreibung</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="122">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Mit is_subclass_of() kann man überprüfen, ob es sich bei dem
|
||||||
|
zu untersuchenden<br>
|
||||||
|
Objekt (obj) um die Instanz einer Subklasse der Basisklasse superclass
|
||||||
|
handelt.</p>
|
||||||
|
<p>Siehe auch:</p>
|
||||||
|
<ul>
|
||||||
|
<li><a href="get_class.html">get_class()</a></li>
|
||||||
|
<li><a href="get_parent_class.html">get_parent_class()</a></li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="beispiel">Beispiel</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="66">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF">
|
||||||
|
<pre><?PHP<br>class database{ <br> function first(){<br> }<br>}<br>class secure extends database{<br> function second(){<br> }<br>} <br>$klasse = new secure;<br>if(is_subclass_of($klasse,"database")) <br> echo "Das Objekt ist eine Subklasse"; <br>else <br> echo "Das Objekt ist keine Subklasse";<br>?></pre>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table bgcolor="#EEEEEE" class="doc" width="100%"><tr><td>
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a><a href="#bottom"><img src="../../src/down.gif" width="14" height="10" border="0" alt="nach unten"></a> 
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="Sh2"><a class="an" name="ausgabe">Ausgabe</a></h2>
|
||||||
|
|
||||||
|
<table width="100%" cellpadding=10 height="45">
|
||||||
|
<tr>
|
||||||
|
<td class="xmpcode" bgcolor="#E4EEFF" height="57">
|
||||||
|
<p>Das Objekt ist eine Subklasse</p>
|
||||||
|
<p></p>
|
||||||
|
</td>
|
||||||
|
</tr></table>
|
||||||
|
|
||||||
|
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc">
|
||||||
|
<a href="#top"><img src="../../src/up.gif" width="14" height="10" border="0" alt="nach oben"></a>
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">weiter:<a href="method_exists.html"><img src="../../src/next.gif" width="10" height="10" border="0" hspace="10" alt="weiter"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="method_exists.html"><b>method_exists</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#EEEEEE" class="doc" align="right" width="110">zurück:<a href="get_parent_class.html"><img src="../../src/prev.gif" width="10" height="10" border="0" hspace="10" alt="zurück"></a></td>
|
||||||
|
<td bgcolor="#FFFFFF" width="100%"><img src="../../src/dok.gif" width="15" height="10" border="0" alt="Seite">
|
||||||
|
<a href="get_parent_class.html"><b>get_parent_class</b></a> </td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan=2 bgcolor="#EEEEEE" class="doc"> </td></tr>
|
||||||
|
</table><table cellpadding="4" cellspacing="0" border="0" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#FFEEDD" class="nav"><a class="an" name="bottom"><img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von"></a>
|
||||||
|
<a href="../../index.html"><b>SELFPHP</b></a>/<a href="../../navigation/index.html">Navigationshilfen</a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="../index.html"><b>Funktionsreferenz</b></a> <img src="../../src/refkap.gif" width="16" height="13" border="0" alt="Teil von">
|
||||||
|
<a href="index.html"><b>Klassen und Objekt-Funktionen</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p><a class="an" name="bottom">© 2001, 2002, 2003</A> <img src="../../src/mail.gif" width="15" height="10" border="0" alt="E-Mail"> <a href="mailto:mail@selfphp.info">Damir Enseleit, mail@selfphp.info</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -14,7 +14,7 @@ am Tag 4 (17.3.2022)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## LB2 (65%) Projekt
|
## LB2 (65%) Projektabgabe
|
||||||
[M133_LB2_Projekt_Vorgabe_Bewertung_V21.pdf](./1_Beurteilungskriterien-und-Projektauftrag/M133_LB2_Projekt_Vorgabe_Bewertung_V21.pdf)
|
[M133_LB2_Projekt_Vorgabe_Bewertung_V21.pdf](./1_Beurteilungskriterien-und-Projektauftrag/M133_LB2_Projekt_Vorgabe_Bewertung_V21.pdf)
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
Loading…
Reference in New Issue
Block a user