public function renderControl($writer) { if ($this instanceof IActiveControl || $this->getVisible(false)) { if (isset($this->_rf[self::RF_ADAPTER])) { $this->_rf[self::RF_ADAPTER]->render($writer); } else { $this->render($writer); } } }