cvs: phpdoc-pl /reference/classobj reference.xml
| From: | Leszek Krupinski | Date: | Tue, 24 Feb 2004 02:07:23 +0000 |
| Subject: | cvs: phpdoc-pl /reference/classobj reference.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-297@lists.php.net to get a copy of this message | ||
leszek Mon Feb 23 21:07:23 2004 EDT
Modified files:
/phpdoc-pl/reference/classobj reference.xml
Log:
[dombal] Made up-to-date...
http://cvs.php.net/diff.php/phpdoc-pl/reference/classobj/reference.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-pl/reference/classobj/reference.xml
diff -u phpdoc-pl/reference/classobj/reference.xml:1.3
phpdoc-pl/reference/classobj/reference.xml:1.4
--- phpdoc-pl/reference/classobj/reference.xml:1.3 Sun May 5 04:35:18 2002
+++ phpdoc-pl/reference/classobj/reference.xml Mon Feb 23 21:07:23 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.3 Maintainer: dombal Status: Ready -->
-<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.12 Maintainer: dombal Status: Ready -->
+<!-- $Revision: 1.4 $ -->
<reference id="ref.classobj">
<title>Klasy/Obiekty</title>
<titleabbrev>Klasy/Obiekty</titleabbrev>
@@ -16,6 +16,32 @@
ustaliæ jego przodków (np. jak± klasê rozszerza klasa tego obiektu).
</para>
</section>
+
+ <section id="classobj.requirements">
+ &reftitle.required;
+ &no.requirement;
+ </section>
+
+ <section id="classobj.installation">
+ &reftitle.install;
+ &no.install;
+ </section>
+
+ <section id="classobj.configuration">
+ &reftitle.runtime;
+ &no.config;
+ </section>
+
+ <section id="classobj.resources">
+ &reftitle.resources;
+ &no.resource;
+ </section>
+
+ <section id="classobj.constants">
+ &reftitle.constants;
+ &no.constants;
+ </section>
+
<section id="classobj.examples">
&reftitle.examples;
<para>
@@ -38,12 +64,12 @@
var $jadalne;
var $kolor;
- function Warzywo( $jadalne, $kolor="zielony" ) {
+ function Warzywo($jadalne, $kolor="zielony") {
$this->jadalne = $jadalne;
$this->kolor = $kolor;
}
- function jest_jadalne() {
+ function czy_jadalne() {
return $this->jadalne;
}
@@ -59,14 +85,14 @@
var $ugotowane = false;
function Szpinak() {
- $this->Warzywo( true, "zielone" );
+ $this->Warzywo(true, "zielone");
}
function ugotuj() {
$this->ugotowane = true;
}
- function jest_ugotowane() {
+ function czy_ugotowane() {
return $this->ugotowane;
}
@@ -109,9 +135,9 @@
function przodkowie_klasy($obj, $klasa) {
global $$obj;
- if (is_subclass_of($$obj, $klasa)) {
+ if (is_subclass_of($GLOBALS[$obj], $klasa)) {
echo "Obiekt $obj nale¿y do klasy ".get_class($$obj);
- echo ", podklasy $klass\n";
+ echo ", podklasy $klasa\n";
} else {
echo "Obiekt $obj nie nale¿y do podklasy $klass\n";
}
@@ -119,7 +145,7 @@
// tworzymy 2 egzemplarze obiektów
-$warzywko = new Warzywo(true,"niebieski");
+$warzywko = new Warzywo(true, "niebieski");
$lisciaste = new Szpinak();
// wydrukujemy informacjê o obiektach
@@ -127,7 +153,7 @@
echo "lisciaste: KLASA ".get_class($lisciaste);
echo ", PRZODEK ".get_parent_class($lisciaste)."\n";
-// poka¿ym w³a¶ciwo¶ci warzywka
+// poka¿my w³a¶ciwo¶ci warzywka
echo "\nwarzywko: W³a¶ciwo¶ci\n";
drukuj_wlasciwosci($warzywko);