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
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
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
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
4 matches
Mail list logo