parent = $this->activeRecord; } public function __set($strKey, $varValue) { switch ($strKey) { case 'rows': $this->intRows = $varValue; break; case 'cols': $this->intCols = $varValue; break; default: parent::__set($strKey, $varValue); break; } } public function generate() { return $this->parse(); } }