$var = $value;
// echo $var." = ".$this->$var."
\n";
}
function getvar($var="") {
if ($var=="" || !isset($this->$var)) {
global $phpgw;
echo 'Programming Error: '.$this->classname().'->getvar('.$var.')!
\n';
$phpgw->common->phpgw_exit();
}
//echo "Var = ".$var."
\n";
//echo $var." = ".$this->$var."
\n";
return $this->$var;
}
/*
This is the constructor for the object.
*/
function portalbox($title="", $primary="", $secondary="", $tertiary="") {
$this->setvar("title",$title);
// echo "After SetVar Title = ".$this->getvar("title")."
\n";
$this->setvar("outerborderwidth",1);
$this->setvar("titlebgcolor",$primary);
$this->setvar("innerbgcolor",$secondary);
$this->setvar("outerbordercolor",$tertiary);
}
// Methods
}