#33029 [Opn]: Bug in translation of constructor example
| From: | goba@php.net | Date: | Sat, 14 May 2005 15:44:57 +0000 |
| Subject: | #33029 [Opn]: Bug in translation of constructor example | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969368258@lists.php.net to get a copy of this message | ||
ID: 33029
Updated by: goba@php.net
Reported By: aiv at intertop dot pl
Status: Open
-Bug Type: Website problem
+Bug Type: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
New Comment:
This is a Polish documentation problem
Previous Comments:
------------------------------------------------------------------------
[2005-05-13 21:32:07] aiv at intertop dot pl
Description:
------------
http://www.php.net/manual/pl/language.oop.php
You have to change Cart() in second example to Koszyk() becouse is not
working exmaple of constructor
Reproduce code:
---------------
class Koszyk
{
var $dzisiejsza_data;
var $nazwa;
var $wlasciciel;
var $artykuly;
function Cart()
{
$this->dzisiejsza_data = date("Y-m-d");
$this->nazwa = $GLOBALS['imie'];
/* itp. . . */
}
}
Expected result:
----------------
class Koszyk
{
var $dzisiejsza_data;
var $nazwa;
var $wlasciciel;
var $artykuly;
function Koszyk()
{
$this->dzisiejsza_data = date("Y-m-d");
$this->nazwa = $GLOBALS['imie'];
/* itp. . . */
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33029&edit=1