fieldset_types[$nsname] = $className; } function getHandler($nsname) { if (!array_key_exists($nsname, $this->fieldset_types)) { // unfortunately, we need to do a bit more spelunking here. // if its conditional, we use a different item. ns is unsufficient. // // FIXME this is slightly wasteful from a performance POV, though DB caching should make it OK. $oFieldset =& KTFieldset::getByNamespace ($nsname); if ($oFieldset->getIsConditional()) { return 'ConditionalFieldsetDisplay'; } else { return 'SimpleFieldsetDisplay'; } } else { return $this->fieldset_types[$nsname]; } } } ?>