Re: [PHP] PHP5 Class problem

2005-01-28 Thread Jochem Maas
Richard Lynch wrote: [EMAIL PROTECTED] wrote: ... how odd, i have assumed having a class static you could still throw around variables inside it, or its only meant to stay in the one static method so executing it like As I understand it... It's not that you can't use any variables at all -- It's t

Re: [PHP] PHP5 Class problem

2005-01-28 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > >> >> 1. you are calling the method on a object >> (i.e. not as a static call like SessionHandler::getOrgSession()) >> >> 2. the function (method) you are calling is _NOT_ defined as static. >> >> in your case you have defined all your methods as static so the >> engi

Re: [PHP] PHP5 Class problem

2005-01-28 Thread Jochem Maas
electroteque wrote: On 29/01/2005, at 12:02 AM, Jochem Maas wrote: classes cannot be defined as static - defining them as abstract has the effect of being able to only use a given class statically (unless you subclass it and the subclass is not abstract). abstract as in it is the final base cla

Re: [PHP] PHP5 Class problem

2005-01-28 Thread Jochem Maas
[EMAIL PROTECTED] wrote: 1. you are calling the method on a object (i.e. not as a static call like SessionHandler::getOrgSession()) 2. the function (method) you are calling is _NOT_ defined as static. in your case you have defined all your methods as static so the engine will not make $this ava

Re: [PHP] PHP5 Class problem

2005-01-28 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: 1. you are calling the method on a object (i.e. not as a static call like SessionHandler::getOrgSession()) 2. the function (method) you are calling is _NOT_ defined as static. in your case you have defined all your methods as static so the engine will not make $this ava

Re: [PHP] PHP5 Class problem

2005-01-28 Thread daniel
> > 1. you are calling the method on a object > (i.e. not as a static call like SessionHandler::getOrgSession()) > > 2. the function (method) you are calling is _NOT_ defined as static. > > in your case you have defined all your methods as static so the > engine will not make $this available e

Re: [PHP] PHP5 Class problem

2005-01-28 Thread Jochem Maas
Thomas Munz wrote: I'm using PHP 5.0.3 and if a problem if a class method. I'm initializing a class like that: $o_SessionHandler = new SessionHandler(); var_dump($o_SessionHandler->getOrgSession());exit; ... //-- returns the original login static public function getOrgSession() {