Re: [PHP] __get() accessor question (a bug maybe?)

2006-11-15 Thread TemuriI
Hi Edward, What I am trying to do is to write a set of classes that generate HTML code for HTML form elements (input type=text, textarea, hidden, buttons, etc). Now I thought I'd define a base class that would have properties common to all form elements, like: value, name, id, title, css cla

[PHP] Re: __get() accessor question (a bug maybe?)

2006-11-15 Thread TemuriI
Barry, that did not work. Look, you said that $_id is of type private and that's why it cannot be accessed. However, I am trying to access it from checkID() that is a method of the same base class. Any clue why it does not work? Thx, Temuri Barry wrote: TemuriI schrieb: just a

[PHP] Re: __get() accessor question (a bug maybe?)

2006-11-15 Thread TemuriI
inherited by class inputText so I'd expect accessors work just the same in a class that extends any base class. Or am I wrong there? Thx, Temuri Barry wrote: TemuriI schrieb: Hi all, here is the code I am having problem with: class baseFor

[PHP] __get() accessor question (a bug maybe?)

2006-11-15 Thread TemuriI
Hi all, here is the code I am having problem with: class baseForm { private $_id = 10; function __get($member) { echo "Accessing member \"{$member}\" : \n"; return $this->$member; } function checkID() { echo $th