[PHP] PHP5 Static Object Function Issue

2005-03-01 Thread Gavin Roy
I believe there is small problem in PHP5 with regard to static functions in uninstanced classes. From discussions in various php irc channels and what I've read about it in the docs, I can not call a static function in an uninstanced class via a variable. For example: $class = MyClass;

Re: [PHP] PHP5 Static Object Function Issue

2005-03-01 Thread Jochem Maas
Gavin Roy wrote: I believe there is small problem in PHP5 with regard to static functions in uninstanced classes. From discussions in various php irc channels and what I've read about it in the docs, I can not call a static function in an uninstanced class via a variable. For example: $class =

[PHP] php5 and object

2004-07-28 Thread Krzysztof Gorzelak
Hello, I'm trying to make this code to work: // start of code abstract class Strona { abstract public function generuj_strone(); function foo() { generuj_strone(); } } class Katalog extends Strona { public function generuj_strone() { echo OK; } } $bar =

Re: [PHP] php5 and object

2004-07-28 Thread Stephen Sadowski
http://us4.php.net/manual/en/language.oop5.abstract.php The short is that you can't do anything more than define a function in an abstract class. IIRC, change abstract to interface, and you'll probably be okay. On Wed, 28 Jul 2004 21:18:26 +0200, Krzysztof Gorzelak [EMAIL PROTECTED] wrote:

Re: [PHP] php5 and object

2004-07-28 Thread Krzysztof Gorzelak
A change to interface gives me such error : Interface function Strona::foo() cannot contain body Krzysztof Gorzelak [EMAIL PROTECTED] Uzytkownik Stephen Sadowski [EMAIL PROTECTED] napisal w wiadomosci news:[EMAIL PROTECTED] http://us4.php.net/manual/en/language.oop5.abstract.php The short

Re: [PHP] php5 and object

2004-07-28 Thread Curt Zirzow
* Thus wrote Stephen Sadowski: http://us4.php.net/manual/en/language.oop5.abstract.php The short is that you can't do anything more than define a function in an abstract class. Negative. It is perfectly fine to have code within an abstract class. The documentation needs to get expanded a

Re: Re: [PHP] php5 and object

2004-07-28 Thread holmes072000
From: Stephen Sadowski [EMAIL PROTECTED] Subject: Re: [PHP] php5 and object http://us4.php.net/manual/en/language.oop5.abstract.php The short is that you can't do anything more than define a function in an abstract class. IIRC, change abstract to interface, and you'll probably be okay

Re: [PHP] php5 and object

2004-07-28 Thread raditha dissanayake
Curt Zirzow wrote: * Thus wrote Stephen Sadowski: http://us4.php.net/manual/en/language.oop5.abstract.php The short is that you can't do anything more than define a function in an abstract class. Negative. It is perfectly fine to have code within an abstract class. The documentation needs