Hello,
I want to check some variables from another class.
Like these:
class other
{
var $value=0;
var $size=1;
var $type=1;
var $name=1;
var $label=1;
var $maxlenght=2;
}
I want to know which vars are in the other class.
I am calling the class with:
class main
{
$url='PHP_Form_Element_'.$this->type.'';
$this->element=new $url;
I know how to check a if a special variable has a value.
$this->exist=$this->element->value;
if ($this->exist == '1' OR '2')
{
$this->opt[$op]=$val;
if (empty($this->opt[$op]))
{
if ($this->exist == '1')
{
throw new Exception("Set element $key");
}
}
}
}
But now I want to check which vars are in the other class, which are not in the main class. So I have to get the vars out of the other class. In an array or what ever...
Somebody any idea how to do that?